public static final class ServicePathHop.Builder
extends java.lang.Object
ServicePathHop
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ServicePathHop . |
Modifier and Type | Method and Description |
---|---|
ServicePathHop |
build() |
ServicePathHop.Builder |
setAction(java.lang.String action)
Possible values are:
ServicePathHop.ACTION_SERVICE_ACTION_INVALID
ServicePathHop.ACTION_COPY ServicePathHop.ACTION_REDIRECT Action that will
be taken by the corresponding service VM of the hop. |
ServicePathHop.Builder |
setCanDecrementSi(java.lang.Boolean canDecrementSi)
Indicating whether service is configured to decrement SI field in NSH metadata.
|
ServicePathHop.Builder |
setInMaintenanceMode(java.lang.Boolean inMaintenanceMode)
Indicating the maintenance mode of the corresponding service VM.
|
ServicePathHop.Builder |
setIsActiveFromCcp(java.lang.Boolean isActiveFromCcp)
Indicating whether the corresponding service VM is active or not per CCP.
|
ServicePathHop.Builder |
setIsActiveFromDp(java.lang.Boolean isActiveFromDp)
Indicating whether the corresponding service VM is active or not per DP.
|
ServicePathHop.Builder |
setIsActiveFromMp(java.lang.Boolean isActiveFromMp)
Indicating whether the corresponding service VM is active or not per MP.
|
ServicePathHop.Builder |
setMacAddress(java.lang.String macAddress)
MAC address of the virtual network interface.
|
ServicePathHop.Builder |
setNshLivenessSupport(java.lang.Boolean nshLivenessSupport)
Indicating whether NSH liveness is supported or not by the corresponding service
VM.
|
ServicePathHop.Builder |
setVif(java.lang.String vif)
ID of the virtual network interface.
|
public Builder()
ServicePathHop
.public ServicePathHop.Builder setAction(java.lang.String action)
action
- New value for the property.public ServicePathHop.Builder setCanDecrementSi(java.lang.Boolean canDecrementSi)
canDecrementSi
- New value for the property.public ServicePathHop.Builder setInMaintenanceMode(java.lang.Boolean inMaintenanceMode)
inMaintenanceMode
- New value for the property.public ServicePathHop.Builder setIsActiveFromCcp(java.lang.Boolean isActiveFromCcp)
isActiveFromCcp
- New value for the property.public ServicePathHop.Builder setIsActiveFromDp(java.lang.Boolean isActiveFromDp)
isActiveFromDp
- New value for the property.public ServicePathHop.Builder setIsActiveFromMp(java.lang.Boolean isActiveFromMp)
isActiveFromMp
- New value for the property.public ServicePathHop.Builder setMacAddress(java.lang.String macAddress)
macAddress
- New value for the property.public ServicePathHop.Builder setNshLivenessSupport(java.lang.Boolean nshLivenessSupport)
nshLivenessSupport
- New value for the property.public ServicePathHop.Builder setVif(java.lang.String vif)
vif
- New value for the property.public ServicePathHop build()