Package org.forgerock.api.models
Class Schema.Builder
- java.lang.Object
-
- org.forgerock.api.models.Schema.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
build()
Builds the Schema instance.Schema.Builder
reference(Reference reference)
Sets the schema reference.Schema.Builder
schema(String key, Object value)
Sets the schema by json key-value pairs.Schema.Builder
schema(JsonValue schema)
Sets the schema.Schema.Builder
type(Class<?> type)
Sets the schema.
-
-
-
Method Detail
-
reference
public Schema.Builder reference(Reference reference)
Sets the schema reference.- Parameters:
reference
- The reference.- Returns:
- This builder.
-
schema
public Schema.Builder schema(JsonValue schema)
Sets the schema.- Parameters:
schema
- The schema.- Returns:
- This builder.
-
schema
public Schema.Builder schema(String key, Object value)
Sets the schema by json key-value pairs.- Parameters:
key
- json parameter namevalue
- json parametr value- Returns:
- This builder.
-
type
public Schema.Builder type(Class<?> type)
Sets the schema.- Parameters:
type
- The type to derive the schema from.- Returns:
- This builder.
-
build
public Schema build()
Builds the Schema instance.- Returns:
- Schema instance.
-
-