@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-02-02T10:57:07.429-06:00") public class DefaultPolicyRule extends AbstractInstanceResource<PolicyRule> implements PolicyRule
PolicyRule.StatusEnum, PolicyRule.TypeEnumpropertiesreadLock, writeLock| Constructor and Description |
|---|
DefaultPolicyRule(InternalDataStore dataStore) |
DefaultPolicyRule(InternalDataStore dataStore,
Map<String,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() |
Date |
getCreated() |
String |
getId() |
Date |
getLastUpdated() |
String |
getName() |
Integer |
getPriority() |
Map<String,Property> |
getPropertyDescriptors() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
PolicyRule.StatusEnum |
getStatus() |
Boolean |
getSystem() |
PolicyRule.TypeEnum |
getType() |
PolicyRule |
setActions(PolicyRuleActions actions) |
PolicyRule |
setConditions(PolicyRuleConditions conditions) |
PolicyRule |
setName(String name) |
PolicyRule |
setPriority(Integer priority) |
PolicyRule |
setStatus(PolicyRule.StatusEnum status) |
PolicyRule |
setSystem(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, getStringListclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic DefaultPolicyRule(InternalDataStore dataStore)
public DefaultPolicyRule(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors in class AbstractResourcepublic 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 Date getCreated()
getCreated in interface PolicyRulepublic String getId()
getId in interface PolicyRulepublic Date getLastUpdated()
getLastUpdated in interface PolicyRulepublic String getName()
getName in interface PolicyRulepublic PolicyRule setName(String name)
setName in interface PolicyRulepublic Integer getPriority()
getPriority in interface PolicyRulepublic PolicyRule setPriority(Integer priority)
setPriority in interface PolicyRulepublic PolicyRule.StatusEnum getStatus()
getStatus in interface PolicyRulepublic PolicyRule setStatus(PolicyRule.StatusEnum status)
setStatus in interface PolicyRulepublic Boolean getSystem()
getSystem in interface PolicyRulepublic PolicyRule setSystem(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="2023-02-02T10:57:07.429-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="2023-02-02T10:57:07.429-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="2023-02-02T10:57:07.429-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="2023-02-02T10:57:07.429-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–2023 Okta. All rights reserved.