Package com.okta.sdk.resource.model
Class CreateOrUpdatePolicy
java.lang.Object
com.okta.sdk.resource.model.CreateOrUpdatePolicy
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class CreateOrUpdatePolicy
extends Object
implements Serializable
CreateOrUpdatePolicy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanTimestamp when the policy was createdDescription of the policyGet embeddedgetId()Identifier of the policyTimestamp when the policy was last modifiedgetLinks()Get linksgetName()Name of the policySpecifies the order in which this policy is evaluated in relation to the other policiesWhether or not the policy is active.Specifies whether Okta created the policygetType()Get typeinthashCode()links(PolicyLinks links) voidsetDescription(String description) voidsetLinks(PolicyLinks links) voidvoidsetPriority(Integer priority) voidsetStatus(LifecycleStatus status) voidvoidsetType(PolicyType type) status(LifecycleStatus status) toString()type(PolicyType type)
-
Field Details
-
JSON_PROPERTY_CREATED
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LAST_UPDATED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_SYSTEM
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
type
-
JSON_PROPERTY_EMBEDDED
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
CreateOrUpdatePolicy
public CreateOrUpdatePolicy()
-
-
Method Details
-
getCreated
Timestamp when the policy was created- Returns:
- created
-
description
-
getDescription
Description of the policy- Returns:
- description
-
setDescription
-
getId
Identifier of the policy- Returns:
- id
-
getLastUpdated
Timestamp when the policy was last modified- Returns:
- lastUpdated
-
name
-
getName
Name of the policy- Returns:
- name
-
setName
-
priority
-
getPriority
Specifies the order in which this policy is evaluated in relation to the other policies- Returns:
- priority
-
setPriority
-
status
-
getStatus
Whether or not the policy is active. Use the `activate` query parameter to set the status of a policy.- Returns:
- status
-
setStatus
-
system
-
getSystem
Specifies whether Okta created the policy- Returns:
- system
-
setSystem
-
type
-
getType
Get type- Returns:
- type
-
setType
-
getEmbedded
Get embedded- Returns:
- embedded
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-