Package org.forgerock.api.models
Class Parameter.Builder
java.lang.Object
org.forgerock.api.models.Parameter.Builder
- Enclosing class:
- Parameter
Builder to construct Parameter object.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the Parameter.defaultValue
(String defaultValue) Set the parameter default value.description
(String description) Set the parameter description.description
(LocalizableString description) Set the parameter description.enumTitles
(String... enumTitles) Sets enum-titles that must be the same length asenumValues(String[])
, if provided.enumValues
(String... enumValues) Sets enum-values that must match.Set the parameter name.Set the required property.source
(ParameterSource source) Set the parameter source.Set the parameter type.
-
Method Details
-
name
Set the parameter name.- Parameters:
name
- Parameter name- Returns:
- Builder
-
enumValues
Sets enum-values that must match.- Parameters:
enumValues
- Enum-values- Returns:
- Builder
-
enumTitles
Sets enum-titles that must be the same length asenumValues(String[])
, if provided.- Parameters:
enumTitles
- Enum-titles- Returns:
- Builder
-
type
Set the parameter type.- Parameters:
type
- Parameter type- Returns:
- Builder
-
defaultValue
Set the parameter default value.- Parameters:
defaultValue
- If exists, the default value- Returns:
- builder
-
description
Set the parameter description.- Parameters:
description
- The description of the parameter- Returns:
- builder
-
description
Set the parameter description.- Parameters:
description
- The description of the parameter- Returns:
- builder
-
source
Set the parameter source.- Parameters:
source
- Where the parameter comes from. May be: PATH or ADDITIONAL- Returns:
- builder
-
required
Set the required property.- Parameters:
required
- Whether the parameter is required- Returns:
- builder
-
build
Builds the Parameter.- Returns:
- The parameter instance
-