Class 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.StaticStructure
    Policy Attributes data holder
    See Also:
    Serialized Form
    • 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
      • 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
      • __dynamicStructureFields

        protected com.vmware.vapi.data.StructValue __dynamicStructureFields
    • Constructor Detail

      • PolicyAttributes

        public PolicyAttributes()
        Default constructor.
      • PolicyAttributes

        protected PolicyAttributes​(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.
      • 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:
        _getType in interface com.vmware.vapi.bindings.StaticStructure
      • _getDataValue

        public com.vmware.vapi.data.StructValue _getDataValue()
        Specified by:
        _getDataValue in interface com.vmware.vapi.bindings.Structure
      • _updateDataValue

        protected void _updateDataValue​(com.vmware.vapi.data.StructValue structValue)
      • _validate

        public void _validate()
        Specified by:
        _validate in interface com.vmware.vapi.bindings.StaticStructure
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface com.vmware.vapi.bindings.StaticStructure
        Overrides:
        toString in class java.lang.Object
      • _hasTypeNameOf

        public boolean _hasTypeNameOf​(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
        Specified by:
        _hasTypeNameOf in interface com.vmware.vapi.bindings.Structure
      • _convertTo

        public <T extends com.vmware.vapi.bindings.Structure> T _convertTo​(java.lang.Class<T> clazz)
        Specified by:
        _convertTo in interface com.vmware.vapi.bindings.Structure
      • _setDynamicField

        public void _setDynamicField​(java.lang.String fieldName,
                                     com.vmware.vapi.data.DataValue fieldValue)
        Specified by:
        _setDynamicField in interface com.vmware.vapi.bindings.StaticStructure
      • _getDynamicField

        public com.vmware.vapi.data.DataValue _getDynamicField​(java.lang.String fieldName)
        Specified by:
        _getDynamicField in interface com.vmware.vapi.bindings.StaticStructure
      • _getDynamicFieldNames

        public java.util.Set<java.lang.String> _getDynamicFieldNames()
        Specified by:
        _getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructure
      • _getClassType

        public static com.vmware.vapi.bindings.type.StructType _getClassType()
        WARNING: Internal method, subject to change in future versions.
        Returns:
        StructType instance representing the static bindings type for this Structure.
      • _getCanonicalName

        public java.lang.String _getCanonicalName()
        Specified by:
        _getCanonicalName in interface com.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.