@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00")
public class DefaultPolicy
extends AbstractInstanceResource<Policy>
implements Policy
Policy.StatusEnumpropertiesreadLock, writeLock| Constructor and Description |
|---|
DefaultPolicy(InternalDataStore dataStore) |
DefaultPolicy(InternalDataStore dataStore,
java.util.Map<java.lang.String,java.lang.Object> properties) |
| 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() |
java.util.Date |
getCreated() |
java.lang.String |
getDescription() |
java.util.Map<java.lang.String,java.lang.Object> |
getEmbedded() |
java.lang.String |
getId() |
java.util.Date |
getLastUpdated() |
java.util.Map<java.lang.String,java.lang.Object> |
getLinks() |
java.lang.String |
getName() |
PolicyRule |
getPolicyRule(java.lang.String ruleId)
Gets a policy rule.
|
java.lang.Integer |
getPriority() |
java.util.Map<java.lang.String,Property> |
getPropertyDescriptors() |
java.lang.Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
Policy.StatusEnum |
getStatus() |
java.lang.Boolean |
getSystem() |
PolicyType |
getType() |
PolicyRuleList |
listPolicyRules()
Enumerates all policy rules.
|
Policy |
setConditions(PolicyRuleConditions conditions) |
Policy |
setDescription(java.lang.String description) |
Policy |
setName(java.lang.String name) |
Policy |
setPriority(java.lang.Integer priority) |
Policy |
setStatus(Policy.StatusEnum status) |
Policy |
setSystem(java.lang.Boolean system) |
Policy |
setType(PolicyType type) |
Policy |
update()
Updates a policy.
|
saveclear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, valuesgetBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setPropertyclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListpublic DefaultPolicy(InternalDataStore dataStore)
public DefaultPolicy(InternalDataStore dataStore, java.util.Map<java.lang.String,java.lang.Object> properties)
public java.util.Map<java.lang.String,Property> getPropertyDescriptors()
getPropertyDescriptors in class AbstractResourcepublic java.lang.Class<? extends Resource> getResourceClass()
AbstractInstanceResourceFoo, in this case this method may return Foo.class.
(Defaults to getClass().)getResourceClass in class AbstractInstanceResource<Policy>public java.util.Map<java.lang.String,java.lang.Object> getEmbedded()
getEmbedded in interface Policypublic java.util.Map<java.lang.String,java.lang.Object> getLinks()
public PolicyRuleConditions getConditions()
getConditions in interface Policypublic Policy setConditions(PolicyRuleConditions conditions)
setConditions in interface Policypublic java.util.Date getCreated()
getCreated in interface Policypublic java.lang.String getDescription()
getDescription in interface Policypublic Policy setDescription(java.lang.String description)
setDescription in interface Policypublic java.util.Date getLastUpdated()
getLastUpdated in interface Policypublic java.lang.Integer getPriority()
getPriority in interface Policypublic Policy setPriority(java.lang.Integer priority)
setPriority in interface Policypublic Policy.StatusEnum getStatus()
public Policy setStatus(Policy.StatusEnum status)
public Policy setSystem(java.lang.Boolean system)
public PolicyType getType()
public Policy setType(PolicyType type)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="POST - /api/v1/policies/{policyId}/rules")
public PolicyRule createRule(PolicyRule policyRule)
createRule in interface PolicypolicyRule - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate")
public void deactivate()
deactivate in interface Policy@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="PUT - /api/v1/policies/{policyId}")
public Policy update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="DELETE - /api/v1/policies/{policyId}")
public void delete()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="POST - /api/v1/policies/{policyId}/lifecycle/activate")
public void activate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="GET - /api/v1/policies/{policyId}/rules")
public PolicyRuleList listPolicyRules()
listPolicyRules in interface Policy@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}")
public PolicyRule getPolicyRule(java.lang.String ruleId)
getPolicyRule in interface PolicyruleId - (required)Copyright © 2017-2021 Okta. All Rights Reserved.