public final class DSRule
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
DSRule.Builder
Builder class for
DSRule . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
ACTION_ALLOW |
static java.lang.String |
ACTION_ALLOW_CONTINUE |
static java.lang.String |
ACTION_DETECT |
static java.lang.String |
ACTION_DETECT_PREVENT |
static java.lang.String |
ACTION_DO_NOT_REDIRECT |
static java.lang.String |
ACTION_DROP |
static java.lang.String |
ACTION_REDIRECT |
static java.lang.String |
ACTION_REJECT |
static java.lang.String |
DIRECTION_IN |
static java.lang.String |
DIRECTION_IN_OUT |
static java.lang.String |
DIRECTION_OUT |
static java.lang.String |
IP_PROTOCOL_IPV4 |
static java.lang.String |
IP_PROTOCOL_IPV4_IPV6 |
static java.lang.String |
IP_PROTOCOL_IPV6 |
Modifier | Constructor and Description |
---|---|
|
DSRule()
Default constructor.
|
protected |
DSRule(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_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 DSRule |
_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 DSRule |
_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() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction()
Possible values are:
ACTION_ALLOW ACTION_DROP ACTION_REJECT ACTION_REDIRECT ACTION_DO_NOT_REDIRECT ACTION_DETECT ACTION_ALLOW_CONTINUE ACTION_DETECT_PREVENT Action enforced on
the packets which matches the distributed service rule. |
java.util.List<ResourceReference> |
getAppliedTos()
List of object where rule will be enforced.
|
java.lang.String |
getDescription()
Description of this resource
|
java.util.List<ResourceReference> |
getDestinations()
List of the destinations.
|
java.lang.Boolean |
getDestinationsExcluded()
Negation of the destination.
|
java.lang.String |
getDirection()
Possible values are:
DIRECTION_IN DIRECTION_OUT DIRECTION_IN_OUT Rule direction in case
of stateless distributed service rules. |
java.lang.Boolean |
getDisabled()
Flag to disable rule.
|
java.lang.String |
getDisplayName()
Defaults to ID if not set
|
java.lang.String |
getId()
Identifier of the resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getIpProtocol()
Possible values are:
IP_PROTOCOL_IPV4 IP_PROTOCOL_IPV6 IP_PROTOCOL_IPV4_IPV6 Type of IP packet
that should be matched while enforcing the rule. |
java.lang.Boolean |
getIsDefault()
Flag to indicate whether rule is default.
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.Boolean |
getLogged()
Flag to enable packet logging.
|
java.lang.String |
getNotes()
User notes specific to the rule.
|
OwnerResourceLink |
getOwner() |
java.lang.Long |
getPriority()
Priority of the rule.
|
java.lang.String |
getResourceType()
The type of this resource.
|
java.lang.Long |
getRevision()
The _revision property describes the current revision of the resource.
|
java.lang.String |
getRuleTag()
User level field which will be printed in CLI and packet logs.
|
java.lang.String |
getSchema()
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
SelfResourceLink |
getSelf() |
java.util.List<ResourceReference> |
getSources()
List of sources.
|
java.lang.Boolean |
getSourcesExcluded()
Negation of the source.
|
int |
hashCode() |
void |
setAction(java.lang.String action)
Possible values are:
ACTION_ALLOW ACTION_DROP ACTION_REJECT ACTION_REDIRECT ACTION_DO_NOT_REDIRECT ACTION_DETECT ACTION_ALLOW_CONTINUE ACTION_DETECT_PREVENT Action enforced on
the packets which matches the distributed service rule. |
void |
setAppliedTos(java.util.List<ResourceReference> appliedTos)
List of object where rule will be enforced.
|
void |
setDescription(java.lang.String description)
Description of this resource
|
void |
setDestinations(java.util.List<ResourceReference> destinations)
List of the destinations.
|
void |
setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
Negation of the destination.
|
void |
setDirection(java.lang.String direction)
Possible values are:
DIRECTION_IN DIRECTION_OUT DIRECTION_IN_OUT Rule direction in case
of stateless distributed service rules. |
void |
setDisabled(java.lang.Boolean disabled)
Flag to disable rule.
|
void |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
void |
setId(java.lang.String id)
Identifier of the resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setIpProtocol(java.lang.String ipProtocol)
Possible values are:
IP_PROTOCOL_IPV4 IP_PROTOCOL_IPV6 IP_PROTOCOL_IPV4_IPV6 Type of IP packet
that should be matched while enforcing the rule. |
void |
setIsDefault(java.lang.Boolean isDefault)
Flag to indicate whether rule is default.
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setLogged(java.lang.Boolean logged)
Flag to enable packet logging.
|
void |
setNotes(java.lang.String notes)
User notes specific to the rule.
|
void |
setOwner(OwnerResourceLink owner) |
void |
setPriority(java.lang.Long priority)
Priority of the rule.
|
void |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
void |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
void |
setRuleTag(java.lang.String ruleTag)
User level field which will be printed in CLI and packet logs.
|
void |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setSelf(SelfResourceLink self) |
void |
setSources(java.util.List<ResourceReference> sources)
List of sources.
|
void |
setSourcesExcluded(java.lang.Boolean sourcesExcluded)
Negation of the source.
|
java.lang.String |
toString() |
public static final java.lang.String ACTION_ALLOW
public static final java.lang.String ACTION_DROP
public static final java.lang.String ACTION_REJECT
public static final java.lang.String ACTION_REDIRECT
public static final java.lang.String ACTION_DO_NOT_REDIRECT
public static final java.lang.String ACTION_DETECT
public static final java.lang.String ACTION_ALLOW_CONTINUE
public static final java.lang.String ACTION_DETECT_PREVENT
public static final java.lang.String DIRECTION_IN
public static final java.lang.String DIRECTION_OUT
public static final java.lang.String DIRECTION_IN_OUT
public static final java.lang.String IP_PROTOCOL_IPV4
public static final java.lang.String IP_PROTOCOL_IPV6
public static final java.lang.String IP_PROTOCOL_IPV4_IPV6
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public DSRule()
protected DSRule(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<ResourceLink> getLinks()
public void setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- New value for the property.public SelfResourceLink getSelf()
public void setSelf(SelfResourceLink self)
self
- New value for the property.public java.lang.Long getRevision()
public void setRevision(java.lang.Long revision)
revision
- New value for the property.public OwnerResourceLink getOwner()
public void setOwner(OwnerResourceLink owner)
owner
- New value for the property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value for the property.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public java.lang.String getId()
public void setId(java.lang.String id)
id
- New value for the property.public java.lang.String getResourceType()
public void setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- New value for the property.public java.util.List<ResourceReference> getAppliedTos()
public void setAppliedTos(java.util.List<ResourceReference> appliedTos)
appliedTos
- New value for the property.public java.util.List<ResourceReference> getDestinations()
public void setDestinations(java.util.List<ResourceReference> destinations)
destinations
- New value for the property.public java.lang.Boolean getDestinationsExcluded()
public void setDestinationsExcluded(java.lang.Boolean destinationsExcluded)
destinationsExcluded
- New value for the property.public java.lang.String getDirection()
public void setDirection(java.lang.String direction)
direction
- New value for the property.public java.lang.Boolean getDisabled()
public void setDisabled(java.lang.Boolean disabled)
disabled
- New value for the property.public java.lang.String getIpProtocol()
public void setIpProtocol(java.lang.String ipProtocol)
ipProtocol
- New value for the property.public java.lang.Boolean getIsDefault()
public void setIsDefault(java.lang.Boolean isDefault)
isDefault
- New value for the property.public java.lang.Boolean getLogged()
public void setLogged(java.lang.Boolean logged)
logged
- New value for the property.public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes
- New value for the property.public java.lang.Long getPriority()
public void setPriority(java.lang.Long priority)
priority
- New value for the property.public java.lang.String getRuleTag()
public void setRuleTag(java.lang.String ruleTag)
ruleTag
- New value for the property.public java.util.List<ResourceReference> getSources()
public void setSources(java.util.List<ResourceReference> sources)
sources
- New value for the property.public java.lang.Boolean getSourcesExcluded()
public void setSourcesExcluded(java.lang.Boolean sourcesExcluded)
sourcesExcluded
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static DSRule _newInstance(com.vmware.vapi.data.StructValue structValue)
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.StructType
public static DSRule _newInstance2(com.vmware.vapi.data.StructValue structValue)