@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00") public interface Policy extends ExtensibleResource, Deletable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Policy.StatusEnum
Enum status
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates a policy.
|
PolicyRule |
createRule(PolicyRule policyRule)
Creates a policy rule.
|
void |
deactivate()
Deactivates a policy.
|
void |
delete()
Removes a policy.
|
PolicyRuleConditions |
getConditions() |
Date |
getCreated() |
String |
getDescription() |
Map<String,Object> |
getEmbedded() |
String |
getId() |
Date |
getLastUpdated() |
Map<String,Object> |
getLinks() |
String |
getName() |
PolicyRule |
getPolicyRule(String ruleId)
Gets a policy rule.
|
Integer |
getPriority() |
Policy.StatusEnum |
getStatus() |
Boolean |
getSystem() |
PolicyType |
getType() |
PolicyRuleList |
listPolicyRules()
Enumerates all policy rules.
|
Policy |
setConditions(PolicyRuleConditions conditions) |
Policy |
setDescription(String description) |
Policy |
setName(String name) |
Policy |
setPriority(Integer priority) |
Policy |
setStatus(Policy.StatusEnum status) |
Policy |
setSystem(Boolean system) |
Policy |
setType(PolicyType type) |
Policy |
update()
Updates a policy.
|
getResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesPolicyRuleConditions getConditions()
Policy setConditions(PolicyRuleConditions conditions)
Date getCreated()
String getDescription()
String getId()
Date getLastUpdated()
String getName()
Integer getPriority()
Policy.StatusEnum getStatus()
Policy setStatus(Policy.StatusEnum status)
Boolean getSystem()
PolicyType getType()
Policy setType(PolicyType type)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="POST - /api/v1/policies/{policyId}/rules") PolicyRule createRule(PolicyRule policyRule)
policyRule - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate") void deactivate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="PUT - /api/v1/policies/{policyId}") Policy update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="DELETE - /api/v1/policies/{policyId}") void delete()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/activate") void activate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="GET - /api/v1/policies/{policyId}/rules") PolicyRuleList listPolicyRules()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen", date="2023-02-02T10:57:05.026-06:00", comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}") PolicyRule getPolicyRule(String ruleId)
ruleId - (required)Copyright © 2017–2023 Okta. All rights reserved.