Package com.vmware.nsx_policy.model
Class LBPoolMember.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBPoolMember.Builder
-
- Enclosing class:
- LBPoolMember
public static final class LBPoolMember.Builder extends java.lang.Object
Builder class forLBPoolMember
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBPoolMember
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBPoolMember
build()
LBPoolMember.Builder
setAdminState(java.lang.String adminState)
Possible values are:LBPoolMember.ADMIN_STATE_ENABLED
LBPoolMember.ADMIN_STATE_DISABLED
LBPoolMember.ADMIN_STATE_GRACEFUL_DISABLED
Member admin state.LBPoolMember.Builder
setBackupMember(java.lang.Boolean backupMember)
Backup servers are typically configured with a sorry page indicating to the user that the application is currently unavailable.LBPoolMember.Builder
setDisplayName(java.lang.String displayName)
Pool member name.LBPoolMember.Builder
setIpAddress(java.lang.String ipAddress)
Pool member IP address.LBPoolMember.Builder
setMaxConcurrentConnections(java.lang.Long maxConcurrentConnections)
To ensure members are not overloaded, connections to a member can be capped by the load balancer.LBPoolMember.Builder
setPort(java.lang.String port)
If port is specified, all connections will be sent to this port.LBPoolMember.Builder
setWeight(java.lang.Long weight)
Pool member weight is used for WEIGHTED_ROUND_ROBIN balancing algorithm.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBPoolMember
.
-
-
Method Detail
-
setAdminState
public LBPoolMember.Builder setAdminState(java.lang.String adminState)
Possible values are: Member admin state.- Parameters:
adminState
- New value for the property.
-
setBackupMember
public LBPoolMember.Builder setBackupMember(java.lang.Boolean backupMember)
Backup servers are typically configured with a sorry page indicating to the user that the application is currently unavailable. While the pool is active (a specified minimum number of pool members are active) BACKUP members are skipped during server selection. When the pool is inactive, incoming connections are sent to only the BACKUP member(s).- Parameters:
backupMember
- New value for the property.
-
setDisplayName
public LBPoolMember.Builder setDisplayName(java.lang.String displayName)
Pool member name.- Parameters:
displayName
- New value for the property.
-
setIpAddress
public LBPoolMember.Builder setIpAddress(java.lang.String ipAddress)
Pool member IP address. format: ip- Parameters:
ipAddress
- New value for the property.
-
setMaxConcurrentConnections
public LBPoolMember.Builder setMaxConcurrentConnections(java.lang.Long maxConcurrentConnections)
To ensure members are not overloaded, connections to a member can be capped by the load balancer. When a member reaches this limit, it is skipped during server selection. If it is not specified, it means that connections are unlimited. format: int64- Parameters:
maxConcurrentConnections
- New value for the property.
-
setPort
public LBPoolMember.Builder setPort(java.lang.String port)
If port is specified, all connections will be sent to this port. Only single port is supported. If unset, the same port the client connected to will be used, it could be overrode by default_pool_member_port setting in virtual server. The port should not specified for port range case. format: port-or-range- Parameters:
port
- New value for the property.
-
setWeight
public LBPoolMember.Builder setWeight(java.lang.Long weight)
Pool member weight is used for WEIGHTED_ROUND_ROBIN balancing algorithm. The weight value would be ignored in other algorithms. format: int64- Parameters:
weight
- New value for the property.
-
build
public LBPoolMember build()
-
-