Package com.vmware.nsx_policy.model
Class AntreaControllerStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.AntreaControllerStatus.Builder
-
- Enclosing class:
- AntreaControllerStatus
public static final class AntreaControllerStatus.Builder extends java.lang.Object
Builder class forAntreaControllerStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofAntreaControllerStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AntreaControllerStatus
build()
AntreaControllerStatus.Builder
setConditions(java.util.List<ComponentConditionItem> conditions)
Collection of controller related conditions.AntreaControllerStatus.Builder
setConnectedAgentNum(java.lang.Long connectedAgentNum)
If status is UNKNOWN, this number is meaningless.AntreaControllerStatus.Builder
setStatus(java.lang.String status)
Possible values are:AntreaControllerStatus.STATUS_HEALTHY
AntreaControllerStatus.STATUS_DEGRADED
AntreaControllerStatus.STATUS_FAILED
AntreaControllerStatus.STATUS_UNKNOWN
Indicate overall healthy status.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofAntreaControllerStatus
.
-
-
Method Detail
-
setConditions
public AntreaControllerStatus.Builder setConditions(java.util.List<ComponentConditionItem> conditions)
Collection of controller related conditions. 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:
conditions
- New value for the property.
-
setConnectedAgentNum
public AntreaControllerStatus.Builder setConnectedAgentNum(java.lang.Long connectedAgentNum)
If status is UNKNOWN, this number is meaningless. format: int32 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:
connectedAgentNum
- New value for the property.
-
setStatus
public AntreaControllerStatus.Builder setStatus(java.lang.String status)
Possible values are: Indicate overall healthy status. 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 AntreaControllerStatus build()
-
-