Package com.vmware.nsx_policy.model
Class ServicePathHop
- java.lang.Object
-
- com.vmware.nsx_policy.model.ServicePathHop
-
- All Implemented Interfaces:
com.vmware.vapi.bindings.StaticStructure,com.vmware.vapi.bindings.Structure,java.io.Serializable
public final class ServicePathHop extends java.lang.Object implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructureRepresents a service VM implementing a particular service in a service chain- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServicePathHop.BuilderBuilder class forServicePathHop.
-
Field Summary
Fields Modifier and Type Field Description protected com.vmware.vapi.data.StructValue__dynamicStructureFieldsstatic java.lang.StringACTION_COPYstatic java.lang.StringACTION_REDIRECTstatic java.lang.StringACTION_SERVICE_ACTION_INVALID
-
Constructor Summary
Constructors Modifier Constructor Description ServicePathHop()Default constructor.protectedServicePathHop(com.vmware.vapi.data.StructValue __dynamicStructureFields)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.vmware.vapi.bindings.Structure>
T_convertTo(java.lang.Class<T> clazz)java.lang.String_getCanonicalName()static java.lang.String_getCanonicalTypeName()Returns the canonical type name.static com.vmware.vapi.bindings.type.StructType_getClassType()WARNING: Internal method, subject to change in future versions.com.vmware.vapi.data.StructValue_getDataValue()com.vmware.vapi.data.DataValue_getDynamicField(java.lang.String fieldName)java.util.Set<java.lang.String>_getDynamicFieldNames()com.vmware.vapi.bindings.type.StructType_getType()boolean_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)static ServicePathHop_newInstance(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.static ServicePathHop_newInstance2(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.void_setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)protected void_updateDataValue(com.vmware.vapi.data.StructValue structValue)void_validate()booleanequals(java.lang.Object obj)java.lang.StringgetAction()Possible values are:ACTION_SERVICE_ACTION_INVALIDACTION_COPYACTION_REDIRECTAction that will be taken by the corresponding service VM of the hop.java.lang.BooleangetCanDecrementSi()Indicating whether service is configured to decrement SI field in NSH metadata.java.lang.BooleangetInMaintenanceMode()Indicating the maintenance mode of the corresponding service VM.java.lang.BooleangetIsActiveFromCcp()Indicating whether the corresponding service VM is active or not per CCP.java.lang.BooleangetIsActiveFromDp()Indicating whether the corresponding service VM is active or not per DP.java.lang.BooleangetIsActiveFromMp()Indicating whether the corresponding service VM is active or not per MP.java.lang.StringgetMacAddress()MAC address of the virtual network interface.java.lang.BooleangetNshLivenessSupport()Indicating whether NSH liveness is supported or not by the corresponding service VM.java.lang.StringgetVif()ID of the virtual network interface.inthashCode()voidsetAction(java.lang.String action)Possible values are:ACTION_SERVICE_ACTION_INVALIDACTION_COPYACTION_REDIRECTAction that will be taken by the corresponding service VM of the hop.voidsetCanDecrementSi(java.lang.Boolean canDecrementSi)Indicating whether service is configured to decrement SI field in NSH metadata.voidsetInMaintenanceMode(java.lang.Boolean inMaintenanceMode)Indicating the maintenance mode of the corresponding service VM.voidsetIsActiveFromCcp(java.lang.Boolean isActiveFromCcp)Indicating whether the corresponding service VM is active or not per CCP.voidsetIsActiveFromDp(java.lang.Boolean isActiveFromDp)Indicating whether the corresponding service VM is active or not per DP.voidsetIsActiveFromMp(java.lang.Boolean isActiveFromMp)Indicating whether the corresponding service VM is active or not per MP.voidsetMacAddress(java.lang.String macAddress)MAC address of the virtual network interface.voidsetNshLivenessSupport(java.lang.Boolean nshLivenessSupport)Indicating whether NSH liveness is supported or not by the corresponding service VM.voidsetVif(java.lang.String vif)ID of the virtual network interface.java.lang.StringtoString()
-
-
-
Field Detail
-
ACTION_SERVICE_ACTION_INVALID
public static final java.lang.String ACTION_SERVICE_ACTION_INVALID
- See Also:
- Constant Field Values
-
ACTION_COPY
public static final java.lang.String ACTION_COPY
- See Also:
- Constant Field Values
-
ACTION_REDIRECT
public static final java.lang.String ACTION_REDIRECT
- See Also:
- Constant Field Values
-
__dynamicStructureFields
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
-
-
Method Detail
-
getAction
public java.lang.String getAction()
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.- Returns:
- The current value of the property.
-
setAction
public void 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.
-
getCanDecrementSi
public java.lang.Boolean getCanDecrementSi()
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.- Returns:
- The current value of the property.
-
setCanDecrementSi
public void 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.
-
getInMaintenanceMode
public java.lang.Boolean getInMaintenanceMode()
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.- Returns:
- The current value of the property.
-
setInMaintenanceMode
public void 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.
-
getIsActiveFromCcp
public java.lang.Boolean getIsActiveFromCcp()
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.- Returns:
- The current value of the property.
-
setIsActiveFromCcp
public void 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.
-
getIsActiveFromDp
public java.lang.Boolean getIsActiveFromDp()
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.- Returns:
- The current value of the property.
-
setIsActiveFromDp
public void 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.
-
getIsActiveFromMp
public java.lang.Boolean getIsActiveFromMp()
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.- Returns:
- The current value of the property.
-
setIsActiveFromMp
public void 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.
-
getMacAddress
public java.lang.String getMacAddress()
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.- Returns:
- The current value of the property.
-
setMacAddress
public void 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.
-
getNshLivenessSupport
public java.lang.Boolean getNshLivenessSupport()
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.- Returns:
- The current value of the property.
-
setNshLivenessSupport
public void 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.
-
getVif
public java.lang.String getVif()
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.- Returns:
- The current value of the property.
-
setVif
public void 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.
-
_getType
public com.vmware.vapi.bindings.type.StructType _getType()
- Specified by:
_getTypein interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDataValue
public com.vmware.vapi.data.StructValue _getDataValue()
- Specified by:
_getDataValuein interfacecom.vmware.vapi.bindings.Structure
-
_updateDataValue
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
-
_validate
public void _validate()
- Specified by:
_validatein interfacecom.vmware.vapi.bindings.StaticStructure
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacecom.vmware.vapi.bindings.StaticStructure- Overrides:
toStringin classjava.lang.Object
-
_hasTypeNameOf
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
- Specified by:
_hasTypeNameOfin interfacecom.vmware.vapi.bindings.Structure
-
_convertTo
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
- Specified by:
_convertToin interfacecom.vmware.vapi.bindings.Structure
-
_setDynamicField
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)- Specified by:
_setDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicField
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
- Specified by:
_getDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicFieldNames
public java.util.Set<java.lang.String> _getDynamicFieldNames()
- Specified by:
_getDynamicFieldNamesin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getClassType
public static com.vmware.vapi.bindings.type.StructType _getClassType()
WARNING: Internal method, subject to change in future versions.- Returns:
StructTypeinstance representing the static bindings type for thisStructure.
-
_getCanonicalName
public java.lang.String _getCanonicalName()
- Specified by:
_getCanonicalNamein interfacecom.vmware.vapi.bindings.Structure
-
_getCanonicalTypeName
public static java.lang.String _getCanonicalTypeName()
Returns the canonical type name. See_getCanonicalName().- Returns:
- canonical type name
-
_newInstance
public static ServicePathHop _newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.- Parameters:
structValue- the source of the data contained in the binding object. Could contain more data than fields of this class can describe i.e. newer version of the binding object. Could be null.- Returns:
- the static bindings
StructType
-
_newInstance2
public static ServicePathHop _newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.
-
-