ModelType
- The model type for the state (or Void if no model is associated with the state).public static class AuthnStateSpec.Builder<ModelType> extends Object
AuthnStateSpec
specs.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthnStateSpec.Builder<ModelType> |
action(AuthnActionSpec<?> action)
Add an action.
|
AuthnStateSpec<ModelType> |
build()
Build the spec.
|
AuthnStateSpec.Builder<ModelType> |
clearActions()
Clear the actions associated with the builder.
|
AuthnStateSpec.Builder<ModelType> |
description(String description)
Set the description.
|
AuthnStateSpec.Builder<ModelType> |
modelClass(Class<ModelType> modelClass)
Set the model class.
|
void |
removeAction(String id)
Remove a specific action from the builder, based on the action ID.
|
AuthnStateSpec.Builder<ModelType> |
status(String status)
Set the status.
|
AuthnStateSpec.Builder<ModelType> |
template(AuthnStateSpec<?> template,
Class<ModelType> overrideModelClass)
Initialize the builder with the values from an existing spec, overriding the model class.
|
AuthnStateSpec.Builder<ModelType> |
template(AuthnStateSpec<ModelType> template)
Initialize the builder with the values from an existing spec.
|
public AuthnStateSpec<ModelType> build()
public AuthnStateSpec.Builder<ModelType> template(AuthnStateSpec<ModelType> template)
public AuthnStateSpec.Builder<ModelType> template(AuthnStateSpec<?> template, Class<ModelType> overrideModelClass)
template
- An existing spec to use to initialize the builder.overrideModelClass
- A model class to override the one provided by the template.public AuthnStateSpec.Builder<ModelType> status(String status)
public AuthnStateSpec.Builder<ModelType> description(String description)
public AuthnStateSpec.Builder<ModelType> modelClass(Class<ModelType> modelClass)
public AuthnStateSpec.Builder<ModelType> action(AuthnActionSpec<?> action)
public AuthnStateSpec.Builder<ModelType> clearActions()
public void removeAction(String id)
Copyright 2019 Ping Identity Corp. All rights reserved.