Package com.vmware.nsx_policy.model
Class PolicyNatRuleStatistics.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyNatRuleStatistics.Builder
-
- Enclosing class:
- PolicyNatRuleStatistics
public static final class PolicyNatRuleStatistics.Builder extends java.lang.ObjectBuilder class forPolicyNatRuleStatistics.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyNatRuleStatistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyNatRuleStatisticsbuild()PolicyNatRuleStatistics.BuildersetActiveSessions(java.lang.Long activeSessions)Gives the total number of active sessions.PolicyNatRuleStatistics.BuildersetLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)Timestamp when the data was last updated.PolicyNatRuleStatistics.BuildersetTotalBytes(java.lang.Long totalBytes)Gives the total number of bytes.PolicyNatRuleStatistics.BuildersetTotalPackets(java.lang.Long totalPackets)Gives the total number of packets.PolicyNatRuleStatistics.BuildersetWarningMessage(java.lang.String warningMessage)The warning message about the NAT Rule Statistics.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyNatRuleStatistics.
-
-
Method Detail
-
setActiveSessions
public PolicyNatRuleStatistics.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 PolicyNatRuleStatistics.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 PolicyNatRuleStatistics.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.
-
setLastUpdateTimestamp
public PolicyNatRuleStatistics.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated. 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:
lastUpdateTimestamp- New value for the property.
-
setWarningMessage
public PolicyNatRuleStatistics.Builder setWarningMessage(java.lang.String warningMessage)
The warning message about the NAT Rule Statistics. 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:
warningMessage- New value for the property.
-
build
public PolicyNatRuleStatistics build()
-
-