Package com.vmware.nsx_policy.model
Class PolicyNATRuleCounters.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyNATRuleCounters.Builder
-
- Enclosing class:
- PolicyNATRuleCounters
public static final class PolicyNATRuleCounters.Builder extends java.lang.ObjectBuilder class forPolicyNATRuleCounters.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyNATRuleCounters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyNATRuleCountersbuild()PolicyNATRuleCounters.BuildersetActiveSessions(java.lang.Long activeSessions)Gives the total number of active sessions.PolicyNATRuleCounters.BuildersetTotalBytes(java.lang.Long totalBytes)Gives the total number of bytes.PolicyNATRuleCounters.BuildersetTotalPackets(java.lang.Long totalPackets)Gives the total number of packets.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyNATRuleCounters.
-
-
Method Detail
-
setActiveSessions
public PolicyNATRuleCounters.Builder setActiveSessions(java.lang.Long activeSessions)
Gives the total number of active sessions. 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:
activeSessions- New value for the property.
-
setTotalBytes
public PolicyNATRuleCounters.Builder setTotalBytes(java.lang.Long totalBytes)
Gives the total number of bytes. 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:
totalBytes- New value for the property.
-
setTotalPackets
public PolicyNATRuleCounters.Builder setTotalPackets(java.lang.Long totalPackets)
Gives the total number of packets. 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:
totalPackets- New value for the property.
-
build
public PolicyNATRuleCounters build()
-
-