Package com.vmware.nsx_policy.model
Class ServiceChainMapping.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ServiceChainMapping.Builder
-
- Enclosing class:
- ServiceChainMapping
public static final class ServiceChainMapping.Builder extends java.lang.Object
Builder class forServiceChainMapping
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofServiceChainMapping
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceChainMapping
build()
ServiceChainMapping.Builder
setDirection(java.lang.String direction)
Possible values are:ServiceChainMapping.DIRECTION_FORWARD
ServiceChainMapping.DIRECTION_REVERSE
Each ServiceChain has forward_path_service_profiles and reverse_path_service_profiles.ServiceChainMapping.Builder
setServiceChainId(java.lang.String serviceChainId)
A unique id generated for every ServiceChain.ServiceChainMapping.Builder
setServiceIndex(java.lang.Long serviceIndex)
Service Index represents a numerical position of a ServiceInsertionServiceProfile in a ServiceChain.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofServiceChainMapping
.
-
-
Method Detail
-
setDirection
public ServiceChainMapping.Builder setDirection(java.lang.String direction)
Possible values are: Each ServiceChain has forward_path_service_profiles and reverse_path_service_profiles. This property will indicate which of them being used. FORWARD - forward_path_service_profiles REVERSE - reverse_path_service_profiles 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:
direction
- New value for the property.
-
setServiceChainId
public ServiceChainMapping.Builder setServiceChainId(java.lang.String serviceChainId)
A unique id generated for every ServiceChain. This is not a uuid. 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:
serviceChainId
- New value for the property.
-
setServiceIndex
public ServiceChainMapping.Builder setServiceIndex(java.lang.Long serviceIndex)
Service Index represents a numerical position of a ServiceInsertionServiceProfile in a ServiceChain. It will be in reverse order. Service Index can point to either forward_path_service_profiles or reverse_path_service_profiles indicated by direction property. Example - For a ServiceChain A-B-C, A will have index of 3, B will have index of 2 and C will have index of 1. 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:
serviceIndex
- New value for the property.
-
build
public ServiceChainMapping build()
-
-