@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultPolicyRule extends AbstractInstanceResource<PolicyRule> implements PolicyRule
PolicyRule.StatusEnum, PolicyRule.TypeEnum
properties
readLock, 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.
|
save
clear, 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, values
getBoolean, 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, setProperty
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
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
public DefaultPolicyRule(InternalDataStore dataStore)
public DefaultPolicyRule(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public Class<? extends Resource> getResourceClass()
AbstractInstanceResource
Foo
, in this case this method may return Foo.class
.
(Defaults to getClass()
.)getResourceClass
in class AbstractInstanceResource<PolicyRule>
public PolicyRuleActions getActions()
getActions
in interface PolicyRule
public PolicyRule setActions(PolicyRuleActions actions)
setActions
in interface PolicyRule
public PolicyRuleConditions getConditions()
getConditions
in interface PolicyRule
public PolicyRule setConditions(PolicyRuleConditions conditions)
setConditions
in interface PolicyRule
public Date getCreated()
getCreated
in interface PolicyRule
public String getId()
getId
in interface PolicyRule
public Date getLastUpdated()
getLastUpdated
in interface PolicyRule
public String getName()
getName
in interface PolicyRule
public PolicyRule setName(String name)
setName
in interface PolicyRule
public Integer getPriority()
getPriority
in interface PolicyRule
public PolicyRule setPriority(Integer priority)
setPriority
in interface PolicyRule
public PolicyRule.StatusEnum getStatus()
getStatus
in interface PolicyRule
public PolicyRule setStatus(PolicyRule.StatusEnum status)
setStatus
in interface PolicyRule
public Boolean getSystem()
getSystem
in interface PolicyRule
public PolicyRule setSystem(Boolean system)
setSystem
in interface PolicyRule
public PolicyRule.TypeEnum getType()
getType
in interface PolicyRule
public PolicyRule setType(PolicyRule.TypeEnum type)
setType
in interface PolicyRule
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05: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-07-07T09:07:53.917-05: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-07-07T09:07:53.917-05: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-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/policies/{policyId}/rules/{ruleId}") public void delete()
delete
in interface Deletable
delete
in interface PolicyRule
delete
in class AbstractInstanceResource<PolicyRule>
Copyright © 2017–2023 Okta. All rights reserved.