@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-12-15T06:35:43.156-06:00")
public class DefaultPolicyRule
extends AbstractInstanceResource<PolicyRule>
implements PolicyRule
PolicyRule.StatusEnum, PolicyRule.TypeEnumpropertiesreadLock, writeLock| Constructor and Description |
|---|
DefaultPolicyRule(InternalDataStore dataStore) |
DefaultPolicyRule(InternalDataStore dataStore,
java.util.Map<java.lang.String,java.lang.Object> properties) |
| Modifier and Type | Method and 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() |
java.util.Map<java.lang.String,Property> |
getPropertyDescriptors() |
java.lang.Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
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.
|
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, hashCode, notify, notifyAll, wait, wait, waitgetResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListpublic DefaultPolicyRule(InternalDataStore dataStore)
public DefaultPolicyRule(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<PolicyRule>public PolicyRuleActions getActions()
getActions in interface PolicyRulepublic PolicyRule setActions(PolicyRuleActions actions)
setActions in interface PolicyRulepublic PolicyRuleConditions getConditions()
getConditions in interface PolicyRulepublic PolicyRule setConditions(PolicyRuleConditions conditions)
setConditions in interface PolicyRulepublic java.util.Date getCreated()
getCreated in interface PolicyRulepublic java.lang.String getId()
getId in interface PolicyRulepublic java.util.Date getLastUpdated()
getLastUpdated in interface PolicyRulepublic java.lang.String getName()
getName in interface PolicyRulepublic PolicyRule setName(java.lang.String name)
setName in interface PolicyRulepublic java.lang.Integer getPriority()
getPriority in interface PolicyRulepublic PolicyRule setPriority(java.lang.Integer priority)
setPriority in interface PolicyRulepublic PolicyRule.StatusEnum getStatus()
getStatus in interface PolicyRulepublic PolicyRule setStatus(PolicyRule.StatusEnum status)
setStatus in interface PolicyRulepublic java.lang.Boolean getSystem()
getSystem in interface PolicyRulepublic PolicyRule setSystem(java.lang.Boolean system)
setSystem in interface PolicyRulepublic PolicyRule.TypeEnum getType()
getType in interface PolicyRulepublic PolicyRule setType(PolicyRule.TypeEnum type)
setType in interface PolicyRule@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-12-15T06:35:43.156-06:00",
comments="PUT - /api/v1/policies/{policyId}/rules/{ruleId}")
public PolicyRule update()
update in interface PolicyRule@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-12-15T06:35:43.156-06:00",
comments="POST - /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/activate")
public void activate()
activate in interface PolicyRule@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-12-15T06:35:43.156-06:00",
comments="POST - /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate")
public void deactivate()
deactivate in interface PolicyRule@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-12-15T06:35:43.156-06:00",
comments="DELETE - /api/v1/policies/{policyId}/rules/{ruleId}")
public void delete()
delete in interface Deletabledelete in interface PolicyRuledelete in class AbstractInstanceResource<PolicyRule>Copyright © 2017-2021 Okta. All Rights Reserved.