Package com.vmware.nsx_policy.model
Class LBPoolStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBPoolStatus.Builder
-
- Enclosing class:
- LBPoolStatus
public static final class LBPoolStatus.Builder extends java.lang.Object
Builder class forLBPoolStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBPoolStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBPoolStatus
build()
LBPoolStatus.Builder
setAlarm(PolicyRuntimeAlarm alarm)
LBPoolStatus.Builder
setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy Path referencing the enforcement point where the info is fetched.LBPoolStatus.Builder
setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated.LBPoolStatus.Builder
setMembers(java.util.List<LBPoolMemberStatus> members)
Status of load balancer pool members.LBPoolStatus.Builder
setPoolPath(java.lang.String poolPath)
Load balancer pool object path.LBPoolStatus.Builder
setStatus(java.lang.String status)
Possible values are:LBPoolStatus.STATUS_UP
LBPoolStatus.STATUS_PARTIALLY_UP
LBPoolStatus.STATUS_PRIMARY_DOWN
LBPoolStatus.STATUS_DOWN
LBPoolStatus.STATUS_DETACHED
LBPoolStatus.STATUS_UNKNOWN
UP means that all primary members are in UP status.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBPoolStatus
.
-
-
Method Detail
-
setLastUpdateTimestamp
public LBPoolStatus.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.
-
setMembers
public LBPoolStatus.Builder setMembers(java.util.List<LBPoolMemberStatus> members)
Status of load balancer pool members. 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:
members
- New value for the property.
-
setPoolPath
public LBPoolStatus.Builder setPoolPath(java.lang.String poolPath)
Load balancer pool object path. 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:
poolPath
- New value for the property.
-
setStatus
public LBPoolStatus.Builder setStatus(java.lang.String status)
Possible values are: UP means that all primary members are in UP status. PARTIALLY_UP means that some(not all) primary members are in UP status, the number of these active members is larger or equal to certain number(min_active_members) which is defined in LBPool. When there are no backup members which are in the UP status, the number(min_active_members) would be ignored. PRIMARY_DOWN means that less than certain(min_active_members) primary members are in UP status but backup members are in UP status, connections to this pool would be dispatched to backup members. DOWN means that all primary and backup members are DOWN. DETACHED means that the pool is not bound to any virtual server. UNKOWN means that 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.
-
setAlarm
public LBPoolStatus.Builder setAlarm(PolicyRuntimeAlarm alarm)
- Parameters:
alarm
- New value for the property.
-
setEnforcementPointPath
public LBPoolStatus.Builder setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy Path referencing the enforcement point where the info is fetched. 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:
enforcementPointPath
- New value for the property.
-
build
public LBPoolStatus build()
-
-