Class OperationPolicySpecAttributeDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.OperationPolicySpecAttributeDTO
-
public class OperationPolicySpecAttributeDTO extends Object
OperationPolicySpecAttributeDTO
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ALLOWED_VALUESstatic StringSERIALIZED_NAME_DEFAULT_VALUEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_DISPLAY_NAMEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_REQUIREDstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_VALIDATION_REGEX
-
Constructor Summary
Constructors Constructor Description OperationPolicySpecAttributeDTO()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALIDATION_REGEX
public static final String SERIALIZED_NAME_VALIDATION_REGEX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRED
public static final String SERIALIZED_NAME_REQUIRED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_VALUE
public static final String SERIALIZED_NAME_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_VALUES
public static final String SERIALIZED_NAME_ALLOWED_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public OperationPolicySpecAttributeDTO name(String name)
-
setName
public void setName(String name)
-
displayName
public OperationPolicySpecAttributeDTO displayName(String displayName)
-
getDisplayName
@Nullable public String getDisplayName()
Display name of the attibute- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
description
public OperationPolicySpecAttributeDTO description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the attibute- Returns:
- description
-
setDescription
public void setDescription(String description)
-
validationRegex
public OperationPolicySpecAttributeDTO validationRegex(String validationRegex)
-
getValidationRegex
@Nullable public String getValidationRegex()
UI validation regex for the attibute- Returns:
- validationRegex
-
setValidationRegex
public void setValidationRegex(String validationRegex)
-
type
public OperationPolicySpecAttributeDTO type(String type)
-
setType
public void setType(String type)
-
required
public OperationPolicySpecAttributeDTO required(Boolean required)
-
isRequired
@Nullable public Boolean isRequired()
Is this attibute mandetory for the policy- Returns:
- required
-
setRequired
public void setRequired(Boolean required)
-
defaultValue
public OperationPolicySpecAttributeDTO defaultValue(String defaultValue)
-
getDefaultValue
@Nullable public String getDefaultValue()
Default value for the attribute- Returns:
- defaultValue
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
allowedValues
public OperationPolicySpecAttributeDTO allowedValues(List<String> allowedValues)
-
getAllowedValues
@Nullable public List<String> getAllowedValues()
If the attribute type is enum, this array should contain all the possible values for the enum.- Returns:
- allowedValues
-
-