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.Object
Builder 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 PolicyAttributes
build()
PolicyAttributes.Builder
setAttributeSource(java.lang.String attributeSource)
Possible values are:PolicyAttributes.ATTRIBUTE_SOURCE_SYSTEM
PolicyAttributes.ATTRIBUTE_SOURCE_CUSTOM
Source of attribute value i.e whether system defined or custom valuePolicyAttributes.Builder
setCustomUrlPartialMatch(java.lang.Boolean customUrlPartialMatch)
True value for this flag will be treated as a partial match for custom urlPolicyAttributes.Builder
setDatatype(java.lang.String datatype)
Possible values are:PolicyAttributes.DATATYPE_STRING
Datatype for attributePolicyAttributes.Builder
setDescription(java.lang.String description)
Description for attribute valuePolicyAttributes.Builder
setIsALGType(java.lang.Boolean isALGType)
Describes whether the APP_ID value is ALG type or not.PolicyAttributes.Builder
setKey(java.lang.String key)
Possible values are:PolicyAttributes.KEY_APP_ID
PolicyAttributes.KEY_DOMAIN_NAME
PolicyAttributes.KEY_URL_CATEGORY
PolicyAttributes.KEY_URL_REPUTATION
PolicyAttributes.KEY_CUSTOM_URL
URL_Reputation is currently not available.PolicyAttributes.Builder
setMetadata(java.util.List<ContextProfileAttributesMetadata> metadata)
This is optional part that can hold additional data about the attribute key/values.PolicyAttributes.Builder
setSubAttributes(java.util.List<PolicySubAttributes> subAttributes)
Reference to sub attributes for the attributePolicyAttributes.Builder
setValue(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()
-
-