Package com.okta.sdk.resource.policy
Interface PolicyRule
-
- All Superinterfaces:
Deletable,ExtensibleResource,java.util.Map<java.lang.String,java.lang.Object>,PropertyRetriever,Resource
- All Known Subinterfaces:
AccessPolicyRule,OktaSignOnPolicyRule,PasswordPolicyRule,ProfileEnrollmentPolicyRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00") public interface PolicyRule extends ExtensibleResource, DeletablePolicyRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPolicyRule.StatusEnumEnum statusstatic classPolicyRule.TypeEnumEnum type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates a policy rule.voiddeactivate()Deactivates a policy rule.voiddelete()Removes a policy rule.PolicyRuleActionsgetActions()PolicyRuleConditionsgetConditions()java.util.DategetCreated()java.lang.StringgetId()java.util.DategetLastUpdated()java.lang.StringgetName()java.lang.IntegergetPriority()PolicyRule.StatusEnumgetStatus()java.lang.BooleangetSystem()PolicyRule.TypeEnumgetType()PolicyRulesetActions(PolicyRuleActions actions)PolicyRulesetConditions(PolicyRuleConditions conditions)PolicyRulesetName(java.lang.String name)PolicyRulesetPriority(java.lang.Integer priority)PolicyRulesetStatus(PolicyRule.StatusEnum status)PolicyRulesetSystem(java.lang.Boolean system)PolicyRulesetType(PolicyRule.TypeEnum type)PolicyRuleupdate()Updates a policy rule.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface com.okta.sdk.resource.PropertyRetriever
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
-
Methods inherited from interface com.okta.sdk.resource.Resource
getResourceHref, setResourceHref
-
-
-
-
Method Detail
-
getActions
PolicyRuleActions getActions()
-
setActions
PolicyRule setActions(PolicyRuleActions actions)
-
getConditions
PolicyRuleConditions getConditions()
-
setConditions
PolicyRule setConditions(PolicyRuleConditions conditions)
-
getCreated
java.util.Date getCreated()
-
getId
java.lang.String getId()
-
getLastUpdated
java.util.Date getLastUpdated()
-
getName
java.lang.String getName()
-
setName
PolicyRule setName(java.lang.String name)
-
getPriority
java.lang.Integer getPriority()
-
setPriority
PolicyRule setPriority(java.lang.Integer priority)
-
getStatus
PolicyRule.StatusEnum getStatus()
-
setStatus
PolicyRule setStatus(PolicyRule.StatusEnum status)
-
getSystem
java.lang.Boolean getSystem()
-
setSystem
PolicyRule setSystem(java.lang.Boolean system)
-
getType
PolicyRule.TypeEnum getType()
-
setType
PolicyRule setType(PolicyRule.TypeEnum type)
-
update
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="PUT - /api/v1/policies/{policyId}/rules/{ruleId}") PolicyRule update()Updates a policy rule.- Returns:
- PolicyRule
-
activate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/activate") void activate()Activates a policy rule.
-
deactivate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate") void deactivate()Deactivates a policy rule.
-
-