Package com.vmware.nsx_policy.model
Class StatusCount.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.StatusCount.Builder
-
- Enclosing class:
- StatusCount
public static final class StatusCount.Builder extends java.lang.Object
Builder class forStatusCount
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofStatusCount
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCount
build()
StatusCount.Builder
setDegradedCount(java.lang.Long degradedCount)
Degraded count format: int32StatusCount.Builder
setDownCount(java.lang.Long downCount)
Down count format: int32StatusCount.Builder
setDownPnics(java.util.List<PnicBondStatus> downPnics)
List Down or Degraded pnicsStatusCount.Builder
setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64StatusCount.Builder
setStatus(java.lang.String status)
Possible values are:StatusCount.STATUS_UP
StatusCount.STATUS_DOWN
StatusCount.STATUS_DEGRADED
StatusCount.STATUS_UNKNOWN
Roll-up statusStatusCount.Builder
setStatusDescription(java.lang.String statusDescription)
Describe what makes the status not UPStatusCount.Builder
setUpCount(java.lang.Long upCount)
Up count format: int32
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofStatusCount
.
-
-
Method Detail
-
setDegradedCount
public StatusCount.Builder setDegradedCount(java.lang.Long degradedCount)
Degraded count format: int32- Parameters:
degradedCount
- New value for the property.
-
setDownCount
public StatusCount.Builder setDownCount(java.lang.Long downCount)
Down count format: int32- Parameters:
downCount
- New value for the property.
-
setDownPnics
public StatusCount.Builder setDownPnics(java.util.List<PnicBondStatus> downPnics)
List Down or Degraded pnics- Parameters:
downPnics
- New value for the property.
-
setLastStatusChangedTime
public StatusCount.Builder setLastStatusChangedTime(java.lang.Long lastStatusChangedTime)
Timestamp of the last status change, in epoch milliseconds format: int64- Parameters:
lastStatusChangedTime
- New value for the property.
-
setStatus
public StatusCount.Builder setStatus(java.lang.String status)
Possible values are: Roll-up status- Parameters:
status
- New value for the property.
-
setStatusDescription
public StatusCount.Builder setStatusDescription(java.lang.String statusDescription)
Describe what makes the status not UP- Parameters:
statusDescription
- New value for the property.
-
setUpCount
public StatusCount.Builder setUpCount(java.lang.Long upCount)
Up count format: int32- Parameters:
upCount
- New value for the property.
-
build
public StatusCount build()
-
-