Class NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder
java.lang.Object
org.forgerock.openam.authentication.callbacks.NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder
- Enclosing class:
- NumberAttributeInputCallback
@Supported
public static class NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder
extends Object
Builder object for a StringAttributeInputCallback.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize the construction process and return the newly constructed callback.Set the name of the attribute.withPolicies
(JsonValue policies) Set the list of policies for this attribute.withPrompt
(String prompt) Set the prompt of the attribute.withRequired
(boolean required) Set whether the attribute is required.withValidateOnly
(boolean validateOnly) Set whether the tree should not advance when validation succeeds.Set the existing value of the attribute.
-
Method Details
-
withName
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withName(String name) Set the name of the attribute.- Parameters:
name
- the name of the attribute- Returns:
- this builder
-
withPrompt
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withPrompt(String prompt) Set the prompt of the attribute.- Parameters:
prompt
- the prompt of the attribute- Returns:
- this builder
-
withValue
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withValue(Double value) Set the existing value of the attribute.- Parameters:
value
- the existing value of the attribute- Returns:
- this builder
-
withRequired
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withRequired(boolean required) Set whether the attribute is required.- Parameters:
required
- whether the attribute is required- Returns:
- this builder
-
withPolicies
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withPolicies(JsonValue policies) Set the list of policies for this attribute.- Parameters:
policies
- the list of policies that apply to this attribute- Returns:
- this builder
-
withValidateOnly
@Supported public NumberAttributeInputCallback.NumberAttributeInputCallbackBuilder withValidateOnly(boolean validateOnly) Set whether the tree should not advance when validation succeeds.- Parameters:
validateOnly
- set to true iff successful validation should not result in advancing the tree- Returns:
- this builder
-
build
Finalize the construction process and return the newly constructed callback.- Returns:
- the constructed callback
-