Package com.vmware.nsx_policy.model
Class PolicyAttributes
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyAttributes
-
- All Implemented Interfaces:
com.vmware.vapi.bindings.StaticStructure,com.vmware.vapi.bindings.Structure,java.io.Serializable
public final class PolicyAttributes extends java.lang.Object implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructurePolicy Attributes data holder- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicyAttributes.BuilderBuilder class forPolicyAttributes.
-
Field Summary
Fields Modifier and Type Field Description protected com.vmware.vapi.data.StructValue__dynamicStructureFieldsstatic java.lang.StringATTRIBUTE_SOURCE_CUSTOMstatic java.lang.StringATTRIBUTE_SOURCE_SYSTEMstatic java.lang.StringDATATYPE_STRINGstatic java.lang.StringKEY_APP_IDstatic java.lang.StringKEY_CUSTOM_URLstatic java.lang.StringKEY_DOMAIN_NAMEstatic java.lang.StringKEY_URL_CATEGORYstatic java.lang.StringKEY_URL_REPUTATION
-
Constructor Summary
Constructors Modifier Constructor Description PolicyAttributes()Default constructor.protectedPolicyAttributes(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 PolicyAttributes_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 PolicyAttributes_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.StringgetAttributeSource()Possible values are:ATTRIBUTE_SOURCE_SYSTEMATTRIBUTE_SOURCE_CUSTOMSource of attribute value i.e whether system defined or custom valuejava.lang.BooleangetCustomUrlPartialMatch()True value for this flag will be treated as a partial match for custom urljava.lang.StringgetDatatype()Possible values are:DATATYPE_STRINGDatatype for attributejava.lang.StringgetDescription()Description for attribute valuejava.lang.BooleangetIsALGType()Describes whether the APP_ID value is ALG type or not.java.lang.StringgetKey()Possible values are:KEY_APP_IDKEY_DOMAIN_NAMEKEY_URL_CATEGORYKEY_URL_REPUTATIONKEY_CUSTOM_URLURL_Reputation is currently not available.java.util.List<ContextProfileAttributesMetadata>getMetadata()This is optional part that can hold additional data about the attribute key/values.java.util.List<PolicySubAttributes>getSubAttributes()Reference to sub attributes for the attributejava.util.List<java.lang.String>getValue()Multiple attribute values can be specified as elements of array.inthashCode()voidsetAttributeSource(java.lang.String attributeSource)Possible values are:ATTRIBUTE_SOURCE_SYSTEMATTRIBUTE_SOURCE_CUSTOMSource of attribute value i.e whether system defined or custom valuevoidsetCustomUrlPartialMatch(java.lang.Boolean customUrlPartialMatch)True value for this flag will be treated as a partial match for custom urlvoidsetDatatype(java.lang.String datatype)Possible values are:DATATYPE_STRINGDatatype for attributevoidsetDescription(java.lang.String description)Description for attribute valuevoidsetIsALGType(java.lang.Boolean isALGType)Describes whether the APP_ID value is ALG type or not.voidsetKey(java.lang.String key)Possible values are:KEY_APP_IDKEY_DOMAIN_NAMEKEY_URL_CATEGORYKEY_URL_REPUTATIONKEY_CUSTOM_URLURL_Reputation is currently not available.voidsetMetadata(java.util.List<ContextProfileAttributesMetadata> metadata)This is optional part that can hold additional data about the attribute key/values.voidsetSubAttributes(java.util.List<PolicySubAttributes> subAttributes)Reference to sub attributes for the attributevoidsetValue(java.util.List<java.lang.String> value)Multiple attribute values can be specified as elements of array.java.lang.StringtoString()
-
-
-
Field Detail
-
ATTRIBUTE_SOURCE_SYSTEM
public static final java.lang.String ATTRIBUTE_SOURCE_SYSTEM
- See Also:
- Constant Field Values
-
ATTRIBUTE_SOURCE_CUSTOM
public static final java.lang.String ATTRIBUTE_SOURCE_CUSTOM
- See Also:
- Constant Field Values
-
DATATYPE_STRING
public static final java.lang.String DATATYPE_STRING
- See Also:
- Constant Field Values
-
KEY_APP_ID
public static final java.lang.String KEY_APP_ID
- See Also:
- Constant Field Values
-
KEY_DOMAIN_NAME
public static final java.lang.String KEY_DOMAIN_NAME
- See Also:
- Constant Field Values
-
KEY_URL_CATEGORY
public static final java.lang.String KEY_URL_CATEGORY
- See Also:
- Constant Field Values
-
KEY_URL_REPUTATION
public static final java.lang.String KEY_URL_REPUTATION
- See Also:
- Constant Field Values
-
KEY_CUSTOM_URL
public static final java.lang.String KEY_CUSTOM_URL
- See Also:
- Constant Field Values
-
__dynamicStructureFields
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
-
-
Method Detail
-
getAttributeSource
public java.lang.String getAttributeSource()
Possible values are: Source of attribute value i.e whether system defined or custom value- Returns:
- The current value of the property.
-
setAttributeSource
public void setAttributeSource(java.lang.String attributeSource)
Possible values are: Source of attribute value i.e whether system defined or custom value- Parameters:
attributeSource- New value for the property.
-
getCustomUrlPartialMatch
public java.lang.Boolean getCustomUrlPartialMatch()
True value for this flag will be treated as a partial match for custom url- Returns:
- The current value of the property.
-
setCustomUrlPartialMatch
public void setCustomUrlPartialMatch(java.lang.Boolean customUrlPartialMatch)
True value for this flag will be treated as a partial match for custom url- Parameters:
customUrlPartialMatch- New value for the property.
-
getDatatype
public java.lang.String getDatatype()
Possible values are: Datatype for attribute- Returns:
- The current value of the property.
-
setDatatype
public void setDatatype(java.lang.String datatype)
Possible values are: Datatype for attribute- Parameters:
datatype- New value for the property.
-
getDescription
public java.lang.String getDescription()
Description for attribute value- Returns:
- The current value of the property.
-
setDescription
public void setDescription(java.lang.String description)
Description for attribute value- Parameters:
description- New value for the property.
-
getIsALGType
public java.lang.Boolean getIsALGType()
Describes whether the APP_ID value is ALG type or not.- Returns:
- The current value of the property.
-
setIsALGType
public void setIsALGType(java.lang.Boolean isALGType)
Describes whether the APP_ID value is ALG type or not.- Parameters:
isALGType- New value for the property.
-
getKey
public java.lang.String getKey()
Possible values are: URL_Reputation is currently not available. Please do not use it in Attribute Key while creating context profile- Returns:
- The current value of the property.
-
setKey
public void setKey(java.lang.String key)
Possible values are: URL_Reputation is currently not available. Please do not use it in Attribute Key while creating context profile- Parameters:
key- New value for the property.
-
getMetadata
public java.util.List<ContextProfileAttributesMetadata> getMetadata()
This is optional part that can hold additional data about the attribute key/values. Example - For URL CATEGORY key , it specified super category for url category value. This is generic array and can hold multiple meta information about key/values in future- Returns:
- The current value of the property.
-
setMetadata
public void setMetadata(java.util.List<ContextProfileAttributesMetadata> metadata)
This is optional part that can hold additional data about the attribute key/values. Example - For URL CATEGORY key , it specified super category for url category value. This is generic array and can hold multiple meta information about key/values in future- Parameters:
metadata- New value for the property.
-
getSubAttributes
public java.util.List<PolicySubAttributes> getSubAttributes()
Reference to sub attributes for the attribute- Returns:
- The current value of the property.
-
setSubAttributes
public void setSubAttributes(java.util.List<PolicySubAttributes> subAttributes)
Reference to sub attributes for the attribute- Parameters:
subAttributes- New value for the property.
-
getValue
public java.util.List<java.lang.String> getValue()
Multiple attribute values can be specified as elements of array.- Returns:
- The current value of the property.
-
setValue
public void setValue(java.util.List<java.lang.String> value)
Multiple attribute values can be specified as elements of array.- Parameters:
value- 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 PolicyAttributes _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 PolicyAttributes _newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.
-
-