Class ActionDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.governance.api.dto.ActionDTO
-
public class ActionDTO extends Object
Action to be taken when a governance policy is violated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActionDTO.RuleSeverityEnumThe severity of the rule to which the action is linked to.static classActionDTO.StateEnumThe state of the artifact to which the action is linked to.static classActionDTO.TypeEnumThe type of action to be taken when a governance policy is violated in the given state withe given rule severity.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_RULE_SEVERITYstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ActionDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ActionDTO.RuleSeverityEnumgetRuleSeverity()The severity of the rule to which the action is linked to.ActionDTO.StateEnumgetState()The state of the artifact to which the action is linked to.ActionDTO.TypeEnumgetType()The type of action to be taken when a governance policy is violated in the given state withe given rule severity.inthashCode()ActionDTOruleSeverity(ActionDTO.RuleSeverityEnum ruleSeverity)voidsetRuleSeverity(ActionDTO.RuleSeverityEnum ruleSeverity)voidsetState(ActionDTO.StateEnum state)voidsetType(ActionDTO.TypeEnum type)ActionDTOstate(ActionDTO.StateEnum state)StringtoString()ActionDTOtype(ActionDTO.TypeEnum type)
-
-
-
Field Detail
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RULE_SEVERITY
public static final String SERIALIZED_NAME_RULE_SEVERITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
state
public ActionDTO state(ActionDTO.StateEnum state)
-
getState
@Nullable public ActionDTO.StateEnum getState()
The state of the artifact to which the action is linked to.- Returns:
- state
-
setState
public void setState(ActionDTO.StateEnum state)
-
ruleSeverity
public ActionDTO ruleSeverity(ActionDTO.RuleSeverityEnum ruleSeverity)
-
getRuleSeverity
@Nullable public ActionDTO.RuleSeverityEnum getRuleSeverity()
The severity of the rule to which the action is linked to.- Returns:
- ruleSeverity
-
setRuleSeverity
public void setRuleSeverity(ActionDTO.RuleSeverityEnum ruleSeverity)
-
type
public ActionDTO type(ActionDTO.TypeEnum type)
-
getType
@Nullable public ActionDTO.TypeEnum getType()
The type of action to be taken when a governance policy is violated in the given state withe given rule severity.- Returns:
- type
-
setType
public void setType(ActionDTO.TypeEnum type)
-
-