Package com.okta.sdk.impl.resource
Class DefaultPolicyBuilder<T extends PolicyBuilder>
java.lang.Object
com.okta.sdk.impl.resource.DefaultPolicyBuilder<T>
- All Implemented Interfaces:
PolicyBuilder<T>
- Direct Known Subclasses:
DefaultOktaSignOnPolicyBuilder
,DefaultPasswordPolicyBuilder
public class DefaultPolicyBuilder<T extends PolicyBuilder>
extends Object
implements PolicyBuilder<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Boolean
protected String
protected PolicyType
protected Integer
protected LifecycleStatus
-
Method Summary
Modifier and TypeMethodDescriptionbuildAndCreate
(PolicyApi client) protected T
self()
setDescription
(String description) setPriority
(Integer priority) setStatus
(LifecycleStatus status) setType
(PolicyType policyType)
-
Field Details
-
name
-
description
-
policyType
-
priority
-
status
-
isActive
-
-
Method Details
-
setName
- Specified by:
setName
in interfacePolicyBuilder<T extends PolicyBuilder>
-
setDescription
- Specified by:
setDescription
in interfacePolicyBuilder<T extends PolicyBuilder>
-
setType
- Specified by:
setType
in interfacePolicyBuilder<T extends PolicyBuilder>
-
setPriority
- Specified by:
setPriority
in interfacePolicyBuilder<T extends PolicyBuilder>
-
setStatus
- Specified by:
setStatus
in interfacePolicyBuilder<T extends PolicyBuilder>
-
self
-
buildAndCreate
- Specified by:
buildAndCreate
in interfacePolicyBuilder<T extends PolicyBuilder>
- Throws:
ApiException
-