Package com.vmware.nsx_policy.model
Class LBVirtualServerStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBVirtualServerStatus.Builder
-
- Enclosing class:
- LBVirtualServerStatus
public static final class LBVirtualServerStatus.Builder extends java.lang.Object
Builder class forLBVirtualServerStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBVirtualServerStatus
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBVirtualServerStatus
.
-
-
Method Detail
-
setLastUpdateTimestamp
public LBVirtualServerStatus.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.
-
setStatus
public LBVirtualServerStatus.Builder setStatus(java.lang.String status)
Possible values are: UP means that all primary members in default pool are in UP status. For L7 virtual server, if there is no default pool, the virtual server would be treated as UP. PARTIALLY_UP means that some(not all) primary members in default pool are in UP status. The size of these active primary members should be larger than or equal to the 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 in default pool are in UP status but backup members are in UP status, the connections would be dispatched to backup members. DOWN means that all primary and backup members are in DOWN status. DETACHED means that the virtual server is not bound to any service. DISABLED means that the admin state of the virtual server is disabled. 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.
-
setVirtualServerPath
public LBVirtualServerStatus.Builder setVirtualServerPath(java.lang.String virtualServerPath)
load balancer virtual server 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:
virtualServerPath
- New value for the property.
-
setAlarm
public LBVirtualServerStatus.Builder setAlarm(PolicyRuntimeAlarm alarm)
- Parameters:
alarm
- New value for the property.
-
setEnforcementPointPath
public LBVirtualServerStatus.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 LBVirtualServerStatus build()
-
-