Class APIMGovernancePolicyDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.governance.api.dto.APIMGovernancePolicyDTO
-
public class APIMGovernancePolicyDTO extends Object
Detailed information about a governance policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPIMGovernancePolicyDTO.GovernableStatesEnumThe state at which an governance policy should be enforced.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ACTIONSstatic StringSERIALIZED_NAME_CREATED_BYstatic StringSERIALIZED_NAME_CREATED_TIMEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_GOVERNABLE_STATESstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LABELSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_RULESETSstatic StringSERIALIZED_NAME_UPDATED_BYstatic StringSERIALIZED_NAME_UPDATED_TIME
-
Constructor Summary
Constructors Constructor Description APIMGovernancePolicyDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIMGovernancePolicyDTOactions(List<ActionDTO> actions)APIMGovernancePolicyDTOcreatedBy(String createdBy)APIMGovernancePolicyDTOcreatedTime(String createdTime)APIMGovernancePolicyDTOdescription(String description)booleanequals(Object o)List<ActionDTO>getActions()List of actions taken when the governance policy is violated.StringgetCreatedBy()Identifier of the user who created the governance policy.StringgetCreatedTime()Timestamp when the governance policy was created.StringgetDescription()A brief description of the governance policy.List<APIMGovernancePolicyDTO.GovernableStatesEnum>getGovernableStates()List of states at which the governance policy should be enforced.StringgetId()UUID of the governance policy.List<String>getLabels()List of labels IDs associated with the governance policy.StringgetName()Name of the governance policy.List<String>getRulesets()List of rulesets associated with the governance policy.StringgetUpdatedBy()Identifier of the user who last updated the governance policy.StringgetUpdatedTime()Timestamp when the governance policy was last updated.APIMGovernancePolicyDTOgovernableStates(List<APIMGovernancePolicyDTO.GovernableStatesEnum> governableStates)inthashCode()APIMGovernancePolicyDTOid(String id)APIMGovernancePolicyDTOlabels(List<String> labels)APIMGovernancePolicyDTOname(String name)APIMGovernancePolicyDTOrulesets(List<String> rulesets)voidsetActions(List<ActionDTO> actions)voidsetCreatedBy(String createdBy)voidsetCreatedTime(String createdTime)voidsetDescription(String description)voidsetGovernableStates(List<APIMGovernancePolicyDTO.GovernableStatesEnum> governableStates)voidsetId(String id)voidsetLabels(List<String> labels)voidsetName(String name)voidsetRulesets(List<String> rulesets)voidsetUpdatedBy(String updatedBy)voidsetUpdatedTime(String updatedTime)StringtoString()APIMGovernancePolicyDTOupdatedBy(String updatedBy)APIMGovernancePolicyDTOupdatedTime(String updatedTime)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GOVERNABLE_STATES
public static final String SERIALIZED_NAME_GOVERNABLE_STATES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIONS
public static final String SERIALIZED_NAME_ACTIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RULESETS
public static final String SERIALIZED_NAME_RULESETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_LABELS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_BY
public static final String SERIALIZED_NAME_CREATED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_TIME
public static final String SERIALIZED_NAME_CREATED_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_BY
public static final String SERIALIZED_NAME_UPDATED_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_TIME
public static final String SERIALIZED_NAME_UPDATED_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public APIMGovernancePolicyDTO id(String id)
-
setId
public void setId(String id)
-
name
public APIMGovernancePolicyDTO name(String name)
-
getName
public String getName()
Name of the governance policy.- Returns:
- name
-
setName
public void setName(String name)
-
description
public APIMGovernancePolicyDTO description(String description)
-
getDescription
@Nullable public String getDescription()
A brief description of the governance policy.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
governableStates
public APIMGovernancePolicyDTO governableStates(List<APIMGovernancePolicyDTO.GovernableStatesEnum> governableStates)
-
getGovernableStates
public List<APIMGovernancePolicyDTO.GovernableStatesEnum> getGovernableStates()
List of states at which the governance policy should be enforced.- Returns:
- governableStates
-
setGovernableStates
public void setGovernableStates(List<APIMGovernancePolicyDTO.GovernableStatesEnum> governableStates)
-
actions
public APIMGovernancePolicyDTO actions(List<ActionDTO> actions)
-
getActions
public List<ActionDTO> getActions()
List of actions taken when the governance policy is violated. An action is defined by the state and rule severity. If an action is not specified to each state and rule severity, the default action is `NOTIFY`.- Returns:
- actions
-
rulesets
public APIMGovernancePolicyDTO rulesets(List<String> rulesets)
-
getRulesets
public List<String> getRulesets()
List of rulesets associated with the governance policy.- Returns:
- rulesets
-
labels
public APIMGovernancePolicyDTO labels(List<String> labels)
-
getLabels
public List<String> getLabels()
List of labels IDs associated with the governance policy.- Returns:
- labels
-
createdBy
public APIMGovernancePolicyDTO createdBy(String createdBy)
-
getCreatedBy
@Nullable public String getCreatedBy()
Identifier of the user who created the governance policy.- Returns:
- createdBy
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
createdTime
public APIMGovernancePolicyDTO createdTime(String createdTime)
-
getCreatedTime
@Nullable public String getCreatedTime()
Timestamp when the governance policy was created.- Returns:
- createdTime
-
setCreatedTime
public void setCreatedTime(String createdTime)
-
updatedBy
public APIMGovernancePolicyDTO updatedBy(String updatedBy)
-
getUpdatedBy
@Nullable public String getUpdatedBy()
Identifier of the user who last updated the governance policy.- Returns:
- updatedBy
-
setUpdatedBy
public void setUpdatedBy(String updatedBy)
-
updatedTime
public APIMGovernancePolicyDTO updatedTime(String updatedTime)
-
getUpdatedTime
@Nullable public String getUpdatedTime()
Timestamp when the governance policy was last updated.- Returns:
- updatedTime
-
setUpdatedTime
public void setUpdatedTime(String updatedTime)
-
-