Package com.vmware.nsx_policy.model
Class PoolMemberSetting.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PoolMemberSetting.Builder
-
- Enclosing class:
- PoolMemberSetting
public static final class PoolMemberSetting.Builder extends java.lang.Object
Builder class forPoolMemberSetting
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPoolMemberSetting
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolMemberSetting
build()
PoolMemberSetting.Builder
setAdminState(java.lang.String adminState)
Possible values are:PoolMemberSetting.ADMIN_STATE_ENABLED
PoolMemberSetting.ADMIN_STATE_DISABLED
PoolMemberSetting.ADMIN_STATE_GRACEFUL_DISABLED
Member admin statePoolMemberSetting.Builder
setDisplayName(java.lang.String displayName)
Only applicable to static pool members.PoolMemberSetting.Builder
setIpAddress(java.lang.String ipAddress)
Pool member IP address format: ipPoolMemberSetting.Builder
setPort(java.lang.String port)
Pool member port number format: port-or-rangePoolMemberSetting.Builder
setWeight(java.lang.Long weight)
Only applicable to static pool members.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPoolMemberSetting
.
-
-
Method Detail
-
setAdminState
public PoolMemberSetting.Builder setAdminState(java.lang.String adminState)
Possible values are: Member admin state- Parameters:
adminState
- New value for the property.
-
setDisplayName
public PoolMemberSetting.Builder setDisplayName(java.lang.String displayName)
Only applicable to static pool members. If supplied for a pool defined by a grouping object, update API would fail.- Parameters:
displayName
- New value for the property.
-
setIpAddress
public PoolMemberSetting.Builder setIpAddress(java.lang.String ipAddress)
Pool member IP address format: ip- Parameters:
ipAddress
- New value for the property.
-
setPort
public PoolMemberSetting.Builder setPort(java.lang.String port)
Pool member port number format: port-or-range- Parameters:
port
- New value for the property.
-
setWeight
public PoolMemberSetting.Builder setWeight(java.lang.Long weight)
Only applicable to static pool members. If supplied for a pool defined by a grouping object, update API would fail. format: int64- Parameters:
weight
- New value for the property.
-
build
public PoolMemberSetting build()
-
-