ModelType - The model type for the action (or Void if no model is associated with the action).public static class AuthnActionSpec.Builder<ModelType> extends Object
AuthnActionSpec specs.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AuthnActionSpec<ModelType> |
build()
Build the spec.
|
AuthnActionSpec.Builder<ModelType> |
description(String description)
Set the action description, for API documentation.
|
AuthnActionSpec.Builder<ModelType> |
error(AuthnErrorSpec errorSpec)
Add an error spec.
|
AuthnActionSpec.Builder<ModelType> |
errorDetail(AuthnErrorDetailSpec errorDetailSpec)
Add an error detail spec.
|
AuthnActionSpec.Builder<ModelType> |
errorDetails(Collection<AuthnErrorDetailSpec> details)
Add a collection of error detail specs.
|
AuthnActionSpec.Builder<ModelType> |
id(String id)
Set the action ID.
|
AuthnActionSpec.Builder<ModelType> |
modelClass(Class<ModelType> cls)
Set the model class.
|
AuthnActionSpec.Builder<ModelType> |
template(AuthnActionSpec<?> template,
Class<ModelType> overrideModelClass)
Initialize the builder with the values from an existing spec, overriding the model class.
|
AuthnActionSpec.Builder<ModelType> |
template(AuthnActionSpec<ModelType> template)
Initialize the builder with the values from an existing spec.
|
public AuthnActionSpec<ModelType> build()
public AuthnActionSpec.Builder<ModelType> template(AuthnActionSpec<ModelType> template)
public AuthnActionSpec.Builder<ModelType> template(AuthnActionSpec<?> 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 AuthnActionSpec.Builder<ModelType> id(String id)
public AuthnActionSpec.Builder<ModelType> description(String description)
public AuthnActionSpec.Builder<ModelType> modelClass(Class<ModelType> cls)
public AuthnActionSpec.Builder<ModelType> error(AuthnErrorSpec errorSpec)
public AuthnActionSpec.Builder<ModelType> errorDetail(AuthnErrorDetailSpec errorDetailSpec)
public AuthnActionSpec.Builder<ModelType> errorDetails(Collection<AuthnErrorDetailSpec> details)
errorDetail(AuthnErrorDetailSpec) for further information.Copyright 2019 Ping Identity Corp. All rights reserved.