Package com.vmware.nsx_policy.model
Class UnidirectionalServicePath.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.UnidirectionalServicePath.Builder
-
- Enclosing class:
- UnidirectionalServicePath
public static final class UnidirectionalServicePath.Builder extends java.lang.Object
Builder class forUnidirectionalServicePath
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofUnidirectionalServicePath
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnidirectionalServicePath
build()
UnidirectionalServicePath.Builder
setHops(java.util.List<ServicePathHop> hops)
List of service path hops that constitutes the forward or reverse service path.UnidirectionalServicePath.Builder
setHostCrossCount(java.lang.Long hostCrossCount)
The number of times the traffic needs to cross hosts for the given forward or reverse service path.UnidirectionalServicePath.Builder
setInMaintenanceMode(java.lang.Boolean inMaintenanceMode)
Is forward or revserse service path in maintenance mode or not.UnidirectionalServicePath.Builder
setIsActive(java.lang.Boolean isActive)
Is forward or revserse service path active or not.UnidirectionalServicePath.Builder
setUnidirServicePathId(java.lang.Long unidirServicePathId)
Unique identifier of one directional service path.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofUnidirectionalServicePath
.
-
-
Method Detail
-
setHops
public UnidirectionalServicePath.Builder setHops(java.util.List<ServicePathHop> hops)
List of service path hops that constitutes the forward or reverse service path. 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:
hops
- New value for the property.
-
setHostCrossCount
public UnidirectionalServicePath.Builder setHostCrossCount(java.lang.Long hostCrossCount)
The number of times the traffic needs to cross hosts for the given forward or reverse service path. 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:
hostCrossCount
- New value for the property.
-
setInMaintenanceMode
public UnidirectionalServicePath.Builder setInMaintenanceMode(java.lang.Boolean inMaintenanceMode)
Is forward or revserse service path in maintenance mode or not. 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:
inMaintenanceMode
- New value for the property.
-
setIsActive
public UnidirectionalServicePath.Builder setIsActive(java.lang.Boolean isActive)
Is forward or revserse service path active or not. 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:
isActive
- New value for the property.
-
setUnidirServicePathId
public UnidirectionalServicePath.Builder setUnidirServicePathId(java.lang.Long unidirServicePathId)
Unique identifier of one directional service path. 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:
unidirServicePathId
- New value for the property.
-
build
public UnidirectionalServicePath build()
-
-