Package com.vmware.nsx_policy.model
Class SegmentPortStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentPortStatus.Builder
-
- Enclosing class:
- SegmentPortStatus
public static final class SegmentPortStatus.Builder extends java.lang.Object
Builder class forSegmentPortStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentPortStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentPortStatus
build()
SegmentPortStatus.Builder
setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated; unset if data source has never updated the data.SegmentPortStatus.Builder
setLogicalPortId(java.lang.String logicalPortId)
The id of the logical port This property may be present in responses from the server, but if it is present in a request to server it will be ignored.SegmentPortStatus.Builder
setStatus(java.lang.String status)
Possible values are:SegmentPortStatus.STATUS_UP
SegmentPortStatus.STATUS_DOWN
SegmentPortStatus.STATUS_UNKNOWN
The Operational status of the logical port
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentPortStatus
.
-
-
Method Detail
-
setLastUpdateTimestamp
public SegmentPortStatus.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated; unset if data source has never updated the data. 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.
-
setLogicalPortId
public SegmentPortStatus.Builder setLogicalPortId(java.lang.String logicalPortId)
The id of the logical port 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:
logicalPortId
- New value for the property.
-
setStatus
public SegmentPortStatus.Builder setStatus(java.lang.String status)
Possible values are: The Operational status of the logical port- Parameters:
status
- New value for the property.
-
build
public SegmentPortStatus build()
-
-