@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultPolicy extends AbstractInstanceResource<Policy> implements Policy
Policy.StatusEnum
properties
readLock, writeLock
Constructor and Description |
---|
DefaultPolicy(InternalDataStore dataStore) |
DefaultPolicy(InternalDataStore dataStore,
Map<String,Object> properties) |
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, hashCode, 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 DefaultPolicy(InternalDataStore dataStore)
public DefaultPolicy(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<Policy>
public Map<String,Object> getEmbedded()
getEmbedded
in interface Policy
public PolicyRuleConditions getConditions()
getConditions
in interface Policy
public Policy setConditions(PolicyRuleConditions conditions)
setConditions
in interface Policy
public Date getCreated()
getCreated
in interface Policy
public String getDescription()
getDescription
in interface Policy
public Policy setDescription(String description)
setDescription
in interface Policy
public Date getLastUpdated()
getLastUpdated
in interface Policy
public Integer getPriority()
getPriority
in interface Policy
public Policy setPriority(Integer priority)
setPriority
in interface Policy
public Policy.StatusEnum getStatus()
public Policy setStatus(Policy.StatusEnum status)
public PolicyType getType()
public Policy setType(PolicyType type)
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/policies/{policyId}/rules") public PolicyRule createRule(PolicyRule policyRule)
createRule
in interface Policy
policyRule
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-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="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/policies/{policyId}") public Policy update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/policies/{policyId}") public void delete()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/policies/{policyId}/lifecycle/activate") public void activate()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/policies/{policyId}/rules") public PolicyRuleList listPolicyRules()
listPolicyRules
in interface Policy
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}") public PolicyRule getPolicyRule(String ruleId)
getPolicyRule
in interface Policy
ruleId
- (required)Copyright © 2017–2023 Okta. All rights reserved.