Package com.vmware.nsx_policy.model
Class LBPoolMemberStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBPoolMemberStatus.Builder
-
- Enclosing class:
- LBPoolMemberStatus
public static final class LBPoolMemberStatus.Builder extends java.lang.Object
Builder class forLBPoolMemberStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBPoolMemberStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBPoolMemberStatus
build()
LBPoolMemberStatus.Builder
setFailureCause(java.lang.String failureCause)
If multiple active monitors are configured, the failure_cause contains failure cause for each monitors.LBPoolMemberStatus.Builder
setIpAddress(java.lang.String ipAddress)
Pool member IP address.LBPoolMemberStatus.Builder
setLastCheckTime(java.lang.Long lastCheckTime)
If multiple active monitors are configured, the property value is the latest last_check_time among all the monitors.LBPoolMemberStatus.Builder
setLastStateChangeTime(java.lang.Long lastStateChangeTime)
If multiple active monitors are configured, the property value is the latest last_state_change_time among all the monitors.LBPoolMemberStatus.Builder
setPort(java.lang.String port)
The port is configured in pool member.LBPoolMemberStatus.Builder
setStatus(java.lang.String status)
Possible values are:LBPoolMemberStatus.STATUS_UP
LBPoolMemberStatus.STATUS_DOWN
LBPoolMemberStatus.STATUS_DISABLED
LBPoolMemberStatus.STATUS_GRACEFUL_DISABLED
LBPoolMemberStatus.STATUS_UNUSED
LBPoolMemberStatus.STATUS_UNKNOWN
UP means that pool member is enabled and monitors have marked the pool member as UP.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBPoolMemberStatus
.
-
-
Method Detail
-
setFailureCause
public LBPoolMemberStatus.Builder setFailureCause(java.lang.String failureCause)
If multiple active monitors are configured, the failure_cause contains failure cause for each monitors. Like \"Monitor_1:failure_cause_1. Monitor_2:failure_cause_2.\" 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:
failureCause
- New value for the property.
-
setIpAddress
public LBPoolMemberStatus.Builder setIpAddress(java.lang.String ipAddress)
Pool member IP address. format: ip 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:
ipAddress
- New value for the property.
-
setLastCheckTime
public LBPoolMemberStatus.Builder setLastCheckTime(java.lang.Long lastCheckTime)
If multiple active monitors are configured, the property value is the latest last_check_time among all the monitors. 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:
lastCheckTime
- New value for the property.
-
setLastStateChangeTime
public LBPoolMemberStatus.Builder setLastStateChangeTime(java.lang.Long lastStateChangeTime)
If multiple active monitors are configured, the property value is the latest last_state_change_time among all the monitors. 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:
lastStateChangeTime
- New value for the property.
-
setPort
public LBPoolMemberStatus.Builder setPort(java.lang.String port)
The port is configured in pool member. For virtual server port range case, pool member port must be null. format: port-or-range 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:
port
- New value for the property.
-
setStatus
public LBPoolMemberStatus.Builder setStatus(java.lang.String status)
Possible values are: UP means that pool member is enabled and monitors have marked the pool member as UP. If the pool member has no monitor configured, it would be treated as UP. DOWN means that pool member is enabled and monitors have marked the pool member as DOWN. DISABLED means that admin state of pool member is set to DISABLED. GRACEFUL_DISABLED means that admin state of pool member is set to GRACEFUL_DISABLED. UNUSED means that the pool member is not used when the IP list size of member group exceeds the maximum setting. The remaining IP addresses would not be used as available backend servers, hence mark the status as UNUSED. UNKNOWN means that the related pool is not associated to any enabled virtual servers, or no status reported from transport-nodes, the associated load balancer service may be working(or not working). 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:
status
- New value for the property.
-
build
public LBPoolMemberStatus build()
-
-