Package com.vmware.nsx_policy.model
Class PolicyAttributes.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyAttributes.Builder
-
- Enclosing class:
- PolicyAttributes
public static final class PolicyAttributes.Builder extends java.lang.ObjectBuilder class forPolicyAttributes.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyAttributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyAttributesbuild()PolicyAttributes.BuildersetAttributeSource(java.lang.String attributeSource)Possible values are:PolicyAttributes.ATTRIBUTE_SOURCE_SYSTEMPolicyAttributes.ATTRIBUTE_SOURCE_CUSTOMSource of attribute value i.e whether system defined or custom valuePolicyAttributes.BuildersetCustomUrlPartialMatch(java.lang.Boolean customUrlPartialMatch)True value for this flag will be treated as a partial match for custom urlPolicyAttributes.BuildersetDatatype(java.lang.String datatype)Possible values are:PolicyAttributes.DATATYPE_STRINGDatatype for attributePolicyAttributes.BuildersetDescription(java.lang.String description)Description for attribute valuePolicyAttributes.BuildersetIsALGType(java.lang.Boolean isALGType)Describes whether the APP_ID value is ALG type or not.PolicyAttributes.BuildersetKey(java.lang.String key)Possible values are:PolicyAttributes.KEY_APP_IDPolicyAttributes.KEY_DOMAIN_NAMEPolicyAttributes.KEY_URL_CATEGORYPolicyAttributes.KEY_URL_REPUTATIONPolicyAttributes.KEY_CUSTOM_URLURL_Reputation is currently not available.PolicyAttributes.BuildersetMetadata(java.util.List<ContextProfileAttributesMetadata> metadata)This is optional part that can hold additional data about the attribute key/values.PolicyAttributes.BuildersetSubAttributes(java.util.List<PolicySubAttributes> subAttributes)Reference to sub attributes for the attributePolicyAttributes.BuildersetValue(java.util.List<java.lang.String> value)Multiple attribute values can be specified as elements of array.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyAttributes.
-
-
Method Detail
-
setAttributeSource
public PolicyAttributes.Builder 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.
-
setCustomUrlPartialMatch
public PolicyAttributes.Builder 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.
-
setDatatype
public PolicyAttributes.Builder setDatatype(java.lang.String datatype)
Possible values are: Datatype for attribute- Parameters:
datatype- New value for the property.
-
setDescription
public PolicyAttributes.Builder setDescription(java.lang.String description)
Description for attribute value- Parameters:
description- New value for the property.
-
setIsALGType
public PolicyAttributes.Builder setIsALGType(java.lang.Boolean isALGType)
Describes whether the APP_ID value is ALG type or not.- Parameters:
isALGType- New value for the property.
-
setKey
public PolicyAttributes.Builder 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.
-
setMetadata
public PolicyAttributes.Builder 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.
-
setSubAttributes
public PolicyAttributes.Builder setSubAttributes(java.util.List<PolicySubAttributes> subAttributes)
Reference to sub attributes for the attribute- Parameters:
subAttributes- New value for the property.
-
setValue
public PolicyAttributes.Builder 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.
-
build
public PolicyAttributes build()
-
-