Package com.vmware.nsx_policy.model
Class ForwardingRuleStats.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ForwardingRuleStats.Builder
-
- Enclosing class:
- ForwardingRuleStats
public static final class ForwardingRuleStats.Builder extends java.lang.ObjectBuilder class forForwardingRuleStats.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofForwardingRuleStats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardingRuleStatsbuild()ForwardingRuleStats.BuildersetByteCount(java.lang.Long byteCount)Aggregated number of bytes processed by the rule.ForwardingRuleStats.BuildersetHitCount(java.lang.Long hitCount)Aggregated number of hits received by the rule.ForwardingRuleStats.BuildersetInternalRuleId(java.lang.String internalRuleId)Realized id of the rule on NSX MP.ForwardingRuleStats.BuildersetL7AcceptCount(java.lang.Long l7AcceptCount)Aggregated number of L7 Profile Accepted counters received by the rule.ForwardingRuleStats.BuildersetL7RejectCount(java.lang.Long l7RejectCount)Aggregated number of L7 Profile Rejected counters received by the rule.ForwardingRuleStats.BuildersetL7RejectWithResponseCount(java.lang.Long l7RejectWithResponseCount)Aggregated number of L7 Profile Rejected with Response counters received by the rule.ForwardingRuleStats.BuildersetLinks(java.util.List<ResourceLink> links)The server will populate this field when returing the resource.ForwardingRuleStats.BuildersetLrPath(java.lang.String lrPath)Path of the LR on which the section is applied in case of Edge FW.ForwardingRuleStats.BuildersetMaxPopularityIndex(java.lang.Long maxPopularityIndex)Maximum value of popularity index of all rules of the type.ForwardingRuleStats.BuildersetMaxSessionCount(java.lang.Long maxSessionCount)Maximum value of sessions count of all rules of the type.ForwardingRuleStats.BuildersetPacketCount(java.lang.Long packetCount)Aggregated number of packets processed by the rule.ForwardingRuleStats.BuildersetPopularityIndex(java.lang.Long popularityIndex)This is calculated by sessions count divided by age of the rule.ForwardingRuleStats.BuildersetRule(java.lang.String rule)Path of the rule.ForwardingRuleStats.BuildersetSchema(java.lang.String schema)Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ForwardingRuleStats.BuildersetSelf(SelfResourceLink self)ForwardingRuleStats.BuildersetSessionCount(java.lang.Long sessionCount)Aggregated number of sessions processed by the rule.ForwardingRuleStats.BuildersetTotalSessionCount(java.lang.Long totalSessionCount)Aggregated number of sessions processed by all the rules This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofForwardingRuleStats.
-
-
Method Detail
-
setLinks
public ForwardingRuleStats.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links- New value for the property.
-
setSchema
public ForwardingRuleStats.Builder setSchema(java.lang.String schema)
Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
schema- New value for the property.
-
setSelf
public ForwardingRuleStats.Builder setSelf(SelfResourceLink self)
- Parameters:
self- New value for the property.
-
setByteCount
public ForwardingRuleStats.Builder setByteCount(java.lang.Long byteCount)
Aggregated number of bytes processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
byteCount- New value for the property.
-
setHitCount
public ForwardingRuleStats.Builder setHitCount(java.lang.Long hitCount)
Aggregated number of hits received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
hitCount- New value for the property.
-
setInternalRuleId
public ForwardingRuleStats.Builder setInternalRuleId(java.lang.String internalRuleId)
Realized id of the rule on NSX MP. Policy Manager can create more than one rule per policy rule, in which case this identifier helps to distinguish between the multple rules created. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
internalRuleId- New value for the property.
-
setL7AcceptCount
public ForwardingRuleStats.Builder setL7AcceptCount(java.lang.Long l7AcceptCount)
Aggregated number of L7 Profile Accepted counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
l7AcceptCount- New value for the property.
-
setL7RejectCount
public ForwardingRuleStats.Builder setL7RejectCount(java.lang.Long l7RejectCount)
Aggregated number of L7 Profile Rejected counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
l7RejectCount- New value for the property.
-
setL7RejectWithResponseCount
public ForwardingRuleStats.Builder setL7RejectWithResponseCount(java.lang.Long l7RejectWithResponseCount)
Aggregated number of L7 Profile Rejected with Response counters received by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
l7RejectWithResponseCount- New value for the property.
-
setLrPath
public ForwardingRuleStats.Builder setLrPath(java.lang.String lrPath)
Path of the LR on which the section is applied in case of Edge FW. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
lrPath- New value for the property.
-
setMaxPopularityIndex
public ForwardingRuleStats.Builder setMaxPopularityIndex(java.lang.Long maxPopularityIndex)
Maximum value of popularity index of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
maxPopularityIndex- New value for the property.
-
setMaxSessionCount
public ForwardingRuleStats.Builder setMaxSessionCount(java.lang.Long maxSessionCount)
Maximum value of sessions count of all rules of the type. This is aggregated statistic which are computed with lower frequency compared to generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
maxSessionCount- New value for the property.
-
setPacketCount
public ForwardingRuleStats.Builder setPacketCount(java.lang.Long packetCount)
Aggregated number of packets processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
packetCount- New value for the property.
-
setPopularityIndex
public ForwardingRuleStats.Builder setPopularityIndex(java.lang.Long popularityIndex)
This is calculated by sessions count divided by age of the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
popularityIndex- New value for the property.
-
setRule
public ForwardingRuleStats.Builder setRule(java.lang.String rule)
Path of the rule. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
rule- New value for the property.
-
setSessionCount
public ForwardingRuleStats.Builder setSessionCount(java.lang.Long sessionCount)
Aggregated number of sessions processed by the rule. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
sessionCount- New value for the property.
-
setTotalSessionCount
public ForwardingRuleStats.Builder setTotalSessionCount(java.lang.Long totalSessionCount)
Aggregated number of sessions processed by all the rules This is aggregated statistic which are computed with lower frequency compared to individual generic rule statistics. It may have a computation delay up to 15 minutes in response to this API. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
totalSessionCount- New value for the property.
-
build
public ForwardingRuleStats build()
-
-