Package org.forgerock.api.models
Class Schema.Builder
java.lang.Object
org.forgerock.api.models.Schema.Builder
- Enclosing class:
- Schema
A builder class for
Schema
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the Schema instance.Sets the schema reference.Sets the schema by json key-value pairs.Sets the schema.Sets the schema.
-
Method Details
-
reference
Sets the schema reference.- Parameters:
reference
- The reference.- Returns:
- This builder.
-
schema
Sets the schema.- Parameters:
schema
- The schema.- Returns:
- This builder.
-
schema
Sets the schema by json key-value pairs.- Parameters:
key
- json parameter namevalue
- json parametr value- Returns:
- This builder.
-
type
Sets the schema.- Parameters:
type
- The type to derive the schema from.- Returns:
- This builder.
-
build
Builds the Schema instance.- Returns:
- Schema instance.
-