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, Deletable
PolicyRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PolicyRule.StatusEnum
Enum statusstatic class
PolicyRule.TypeEnum
Enum type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate()
Activates a policy rule.void
deactivate()
Deactivates a policy rule.void
delete()
Removes a policy rule.PolicyRuleActions
getActions()
PolicyRuleConditions
getConditions()
java.util.Date
getCreated()
java.lang.String
getId()
java.util.Date
getLastUpdated()
java.lang.String
getName()
java.lang.Integer
getPriority()
PolicyRule.StatusEnum
getStatus()
java.lang.Boolean
getSystem()
PolicyRule.TypeEnum
getType()
PolicyRule
setActions(PolicyRuleActions actions)
PolicyRule
setConditions(PolicyRuleConditions conditions)
PolicyRule
setName(java.lang.String name)
PolicyRule
setPriority(java.lang.Integer priority)
PolicyRule
setStatus(PolicyRule.StatusEnum status)
PolicyRule
setSystem(java.lang.Boolean system)
PolicyRule
setType(PolicyRule.TypeEnum type)
PolicyRule
update()
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.
-
-