Package com.okta.sdk.resource.policy
Interface Policy
-
- All Superinterfaces:
Deletable,ExtensibleResource,java.util.Map<java.lang.String,java.lang.Object>,PropertyRetriever,Resource
- All Known Subinterfaces:
AccessPolicy,IdentityProviderPolicy,OAuthAuthorizationPolicy,OktaSignOnPolicy,PasswordPolicy,ProfileEnrollmentPolicy
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00") public interface Policy extends ExtensibleResource, DeletablePolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPolicy.StatusEnumEnum status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates a policy.PolicyRulecreateRule(PolicyRule policyRule)Creates a policy rule.voiddeactivate()Deactivates a policy.voiddelete()Removes a policy.PolicyRuleConditionsgetConditions()java.util.DategetCreated()java.lang.StringgetDescription()java.util.Map<java.lang.String,java.lang.Object>getEmbedded()java.lang.StringgetId()java.util.DategetLastUpdated()java.util.Map<java.lang.String,java.lang.Object>getLinks()java.lang.StringgetName()PolicyRulegetPolicyRule(java.lang.String ruleId)Gets a policy rule.java.lang.IntegergetPriority()Policy.StatusEnumgetStatus()java.lang.BooleangetSystem()PolicyTypegetType()PolicyRuleListlistPolicyRules()Enumerates all policy rules.PolicysetConditions(PolicyRuleConditions conditions)PolicysetDescription(java.lang.String description)PolicysetName(java.lang.String name)PolicysetPriority(java.lang.Integer priority)PolicysetStatus(Policy.StatusEnum status)PolicysetSystem(java.lang.Boolean system)PolicysetType(PolicyType type)Policyupdate()Updates a policy.-
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
-
getEmbedded
java.util.Map<java.lang.String,java.lang.Object> getEmbedded()
-
getLinks
java.util.Map<java.lang.String,java.lang.Object> getLinks()
-
getConditions
PolicyRuleConditions getConditions()
-
setConditions
Policy setConditions(PolicyRuleConditions conditions)
-
getCreated
java.util.Date getCreated()
-
getDescription
java.lang.String getDescription()
-
setDescription
Policy setDescription(java.lang.String description)
-
getId
java.lang.String getId()
-
getLastUpdated
java.util.Date getLastUpdated()
-
getName
java.lang.String getName()
-
setName
Policy setName(java.lang.String name)
-
getPriority
java.lang.Integer getPriority()
-
setPriority
Policy setPriority(java.lang.Integer priority)
-
getStatus
Policy.StatusEnum getStatus()
-
setStatus
Policy setStatus(Policy.StatusEnum status)
-
getSystem
java.lang.Boolean getSystem()
-
setSystem
Policy setSystem(java.lang.Boolean system)
-
getType
PolicyType getType()
-
setType
Policy setType(PolicyType type)
-
createRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/rules") PolicyRule createRule(PolicyRule policyRule)Creates a policy rule.- Parameters:
policyRule- (required)- Returns:
- PolicyRule
-
deactivate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate") void deactivate()Deactivates a policy.
-
update
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="PUT - /api/v1/policies/{policyId}") Policy update()Updates a policy.- Returns:
- Policy
-
delete
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="DELETE - /api/v1/policies/{policyId}") void delete()Removes a policy.
-
activate
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/activate") void activate()Activates a policy.
-
listPolicyRules
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="GET - /api/v1/policies/{policyId}/rules") PolicyRuleList listPolicyRules()Enumerates all policy rules.- Returns:
- PolicyRuleList
-
getPolicyRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2022-02-14T12:54:39.514-06:00", comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}") PolicyRule getPolicyRule(java.lang.String ruleId)Gets a policy rule.- Parameters:
ruleId- (required)- Returns:
- PolicyRule
-
-