Package com.vmware.nsx_policy.model
Class AgentStatusCount.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.AgentStatusCount.Builder
-
- Enclosing class:
- AgentStatusCount
public static final class AgentStatusCount.Builder extends java.lang.Object
Builder class forAgentStatusCount
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofAgentStatusCount
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentStatusCount
build()
AgentStatusCount.Builder
setAgents(java.util.List<AgentStatus> agents)
List of agent statuses belonging to the transport nodeAgentStatusCount.Builder
setDegradedCount(java.lang.Long degradedCount)
Degraded count format: int32AgentStatusCount.Builder
setDownCount(java.lang.Long downCount)
Down count format: int32AgentStatusCount.Builder
setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64AgentStatusCount.Builder
setSmartnicAgents(java.util.List<SmartnicAgentStatus> smartnicAgents)
List of Smartnic agent statusesAgentStatusCount.Builder
setStatus(java.lang.String status)
Possible values are:AgentStatusCount.STATUS_UP
AgentStatusCount.STATUS_DOWN
AgentStatusCount.STATUS_UNKNOWN
AgentStatusCount.STATUS_DEGRADED
Roll-up agent statusAgentStatusCount.Builder
setUpCount(java.lang.Long upCount)
Up count format: int32
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofAgentStatusCount
.
-
-
Method Detail
-
setAgents
public AgentStatusCount.Builder setAgents(java.util.List<AgentStatus> agents)
List of agent statuses belonging to the transport node- Parameters:
agents
- New value for the property.
-
setDegradedCount
public AgentStatusCount.Builder setDegradedCount(java.lang.Long degradedCount)
Degraded count format: int32- Parameters:
degradedCount
- New value for the property.
-
setDownCount
public AgentStatusCount.Builder setDownCount(java.lang.Long downCount)
Down count format: int32- Parameters:
downCount
- New value for the property.
-
setLastStatusChangedTime
public AgentStatusCount.Builder setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64- Parameters:
lastStatusChangedTime
- New value for the property.
-
setSmartnicAgents
public AgentStatusCount.Builder setSmartnicAgents(java.util.List<SmartnicAgentStatus> smartnicAgents)
List of Smartnic agent statuses- Parameters:
smartnicAgents
- New value for the property.
-
setStatus
public AgentStatusCount.Builder setStatus(java.lang.String status)
Possible values are: Roll-up agent status- Parameters:
status
- New value for the property.
-
setUpCount
public AgentStatusCount.Builder setUpCount(java.lang.Long upCount)
Up count format: int32- Parameters:
upCount
- New value for the property.
-
build
public AgentStatusCount build()
-
-