Package com.vmware.nsx_policy.model
Class LBSnatIpElement.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBSnatIpElement.Builder
-
- Enclosing class:
- LBSnatIpElement
public static final class LBSnatIpElement.Builder extends java.lang.Object
Builder class forLBSnatIpElement
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBSnatIpElement
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBSnatIpElement
build()
LBSnatIpElement.Builder
setIpAddress(java.lang.String ipAddress)
Ip address or ip range such as 1.1.1.1 or 1.1.1.101-1.1.1.160.LBSnatIpElement.Builder
setPrefixLength(java.lang.Long prefixLength)
Subnet prefix length should be not specified if there is only one single IP address or IP range.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBSnatIpElement
.
-
-
Method Detail
-
setIpAddress
public LBSnatIpElement.Builder setIpAddress(java.lang.String ipAddress)
Ip address or ip range such as 1.1.1.1 or 1.1.1.101-1.1.1.160. format: address-or-block-or-range- Parameters:
ipAddress
- New value for the property.
-
setPrefixLength
public LBSnatIpElement.Builder setPrefixLength(java.lang.Long prefixLength)
Subnet prefix length should be not specified if there is only one single IP address or IP range. format: int64- Parameters:
prefixLength
- New value for the property.
-
build
public LBSnatIpElement build()
-
-