Class AuthnStateSpec.Builder<ModelType>
java.lang.Object
com.pingidentity.sdk.api.authn.spec.AuthnStateSpec.Builder<ModelType>
- Type Parameters:
ModelType- The model type for the state (or Void if no model is associated with the state).
- Enclosing class:
- AuthnStateSpec<ModelType>
A fluent builder for
AuthnStateSpec specs.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(AuthnActionSpec<?> action) Add an action.build()Build the spec.Clear the actions associated with the builder.description(String description) Set the description.modelClass(Class<?> modelClass) Set the model class.voidremoveAction(String id) Remove a specific action from the builder, based on the action ID.Set the status.template(AuthnStateSpec<?> template, Class<ModelType> overrideModelClass) Initialize the builder with the values from an existing spec, overriding the model class.template(AuthnStateSpec<ModelType> template) Initialize the builder with the values from an existing spec.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Build the spec. -
template
Initialize the builder with the values from an existing spec. -
template
public AuthnStateSpec.Builder<ModelType> template(AuthnStateSpec<?> template, Class<ModelType> overrideModelClass) Initialize the builder with the values from an existing spec, overriding the model class.- Parameters:
template- An existing spec to use to initialize the builder.overrideModelClass- A model class to override the one provided by the template.- Returns:
- The resulting builder.
-
status
Set the status. -
description
Set the description. -
modelClass
Set the model class. -
action
Add an action. -
clearActions
Clear the actions associated with the builder. -
removeAction
Remove a specific action from the builder, based on the action ID.
-