Class AuthnActionSpec.Builder<ModelType>
java.lang.Object
com.pingidentity.sdk.api.authn.spec.AuthnActionSpec.Builder<ModelType>
- Type Parameters:
ModelType- The model type for the action (or Void if no model is associated with the action).
- Enclosing class:
- AuthnActionSpec<ModelType>
A fluent builder for
AuthnActionSpec specs.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the spec.description(String description) Set the action description, for API documentation.error(AuthnErrorSpec errorSpec) Add an error spec.errorDetail(AuthnErrorDetailSpec errorDetailSpec) Add an error detail spec.errorDetails(Collection<AuthnErrorDetailSpec> details) Add a collection of error detail specs.Set the action ID.modelClass(Class<?> cls) Set the model class.template(AuthnActionSpec<?> template, Class<ModelType> overrideModelClass) Initialize the builder with the values from an existing spec, overriding the model class.template(AuthnActionSpec<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 AuthnActionSpec.Builder<ModelType> template(AuthnActionSpec<?> 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.
-
id
Set the action ID. -
description
Set the action description, for API documentation. -
modelClass
Set the model class. -
error
Add an error spec. -
errorDetail
Add an error detail spec. The error detail spec must have a parent code specified and a parent error spec with that code must already have been added. -
errorDetails
Add a collection of error detail specs. SeeerrorDetail(AuthnErrorDetailSpec)for further information.
-