Package com.vmware.nsx_policy.model
Class ServicePathHop.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ServicePathHop.Builder
-
- Enclosing class:
- ServicePathHop
public static final class ServicePathHop.Builder extends java.lang.ObjectBuilder class forServicePathHop.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofServicePathHop.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServicePathHopbuild()ServicePathHop.BuildersetAction(java.lang.String action)Possible values are:ServicePathHop.ACTION_SERVICE_ACTION_INVALIDServicePathHop.ACTION_COPYServicePathHop.ACTION_REDIRECTAction that will be taken by the corresponding service VM of the hop.ServicePathHop.BuildersetCanDecrementSi(java.lang.Boolean canDecrementSi)Indicating whether service is configured to decrement SI field in NSH metadata.ServicePathHop.BuildersetInMaintenanceMode(java.lang.Boolean inMaintenanceMode)Indicating the maintenance mode of the corresponding service VM.ServicePathHop.BuildersetIsActiveFromCcp(java.lang.Boolean isActiveFromCcp)Indicating whether the corresponding service VM is active or not per CCP.ServicePathHop.BuildersetIsActiveFromDp(java.lang.Boolean isActiveFromDp)Indicating whether the corresponding service VM is active or not per DP.ServicePathHop.BuildersetIsActiveFromMp(java.lang.Boolean isActiveFromMp)Indicating whether the corresponding service VM is active or not per MP.ServicePathHop.BuildersetMacAddress(java.lang.String macAddress)MAC address of the virtual network interface.ServicePathHop.BuildersetNshLivenessSupport(java.lang.Boolean nshLivenessSupport)Indicating whether NSH liveness is supported or not by the corresponding service VM.ServicePathHop.BuildersetVif(java.lang.String vif)ID of the virtual network interface.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofServicePathHop.
-
-
Method Detail
-
setAction
public ServicePathHop.Builder setAction(java.lang.String action)
Possible values are: Action that will be taken by the corresponding service VM of the hop. 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:
action- New value for the property.
-
setCanDecrementSi
public ServicePathHop.Builder setCanDecrementSi(java.lang.Boolean canDecrementSi)
Indicating whether service is configured to decrement SI field in NSH metadata. 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:
canDecrementSi- New value for the property.
-
setInMaintenanceMode
public ServicePathHop.Builder setInMaintenanceMode(java.lang.Boolean inMaintenanceMode)
Indicating the maintenance mode of the corresponding service VM. 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.
-
setIsActiveFromCcp
public ServicePathHop.Builder setIsActiveFromCcp(java.lang.Boolean isActiveFromCcp)
Indicating whether the corresponding service VM is active or not per CCP. 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:
isActiveFromCcp- New value for the property.
-
setIsActiveFromDp
public ServicePathHop.Builder setIsActiveFromDp(java.lang.Boolean isActiveFromDp)
Indicating whether the corresponding service VM is active or not per DP. 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:
isActiveFromDp- New value for the property.
-
setIsActiveFromMp
public ServicePathHop.Builder setIsActiveFromMp(java.lang.Boolean isActiveFromMp)
Indicating whether the corresponding service VM is active or not per MP. 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:
isActiveFromMp- New value for the property.
-
setMacAddress
public ServicePathHop.Builder setMacAddress(java.lang.String macAddress)
MAC address of the virtual network interface. 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:
macAddress- New value for the property.
-
setNshLivenessSupport
public ServicePathHop.Builder setNshLivenessSupport(java.lang.Boolean nshLivenessSupport)
Indicating whether NSH liveness is supported or not by the corresponding service VM. 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:
nshLivenessSupport- New value for the property.
-
setVif
public ServicePathHop.Builder setVif(java.lang.String vif)
ID of the virtual network interface. 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:
vif- New value for the property.
-
build
public ServicePathHop build()
-
-