Package com.vmware.nsx_policy.model
Class AgentStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.AgentStatus.Builder
-
- Enclosing class:
- AgentStatus
public static final class AgentStatus.Builder extends java.lang.Object
Builder class forAgentStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofAgentStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentStatus
build()
AgentStatus.Builder
setComponents(java.util.List<AgentSubStatus> components)
List of agent subcomponent statusesAgentStatus.Builder
setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64AgentStatus.Builder
setName(java.lang.String name)
Possible values are:AgentStatus.NAME_AGENT
AgentStatus.NAME_OPSAGENT
AgentStatus.NAME_CFGAGENT
AgentStatus.NAME_NESTDB
AgentStatus.NAME_EXPORTER
AgentStatus.NAME_VDPI
Agent nameAgentStatus.Builder
setResourceUsage(AgentResource resourceUsage)
AgentStatus.Builder
setStatus(java.lang.String status)
Possible values are:AgentStatus.STATUS_UP
AgentStatus.STATUS_DOWN
AgentStatus.STATUS_UNKNOWN
AgentStatus.STATUS_DEGRADED
Agent statusAgentStatus.Builder
setStatusDescription(java.lang.String statusDescription)
Describe what makes the status not UP
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofAgentStatus
.
-
-
Method Detail
-
setComponents
public AgentStatus.Builder setComponents(java.util.List<AgentSubStatus> components)
List of agent subcomponent statuses- Parameters:
components
- New value for the property.
-
setLastStatusChangedTime
public AgentStatus.Builder setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64- Parameters:
lastStatusChangedTime
- New value for the property.
-
setName
public AgentStatus.Builder setName(java.lang.String name)
Possible values are: Agent name- Parameters:
name
- New value for the property.
-
setResourceUsage
public AgentStatus.Builder setResourceUsage(AgentResource resourceUsage)
- Parameters:
resourceUsage
- New value for the property.
-
setStatus
public AgentStatus.Builder setStatus(java.lang.String status)
Possible values are: Agent status- Parameters:
status
- New value for the property.
-
setStatusDescription
public AgentStatus.Builder setStatusDescription(java.lang.String statusDescription)
Describe what makes the status not UP- Parameters:
statusDescription
- New value for the property.
-
build
public AgentStatus build()
-
-