Class SchemaDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.SchemaDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SchemaDefinition>
- Enclosing interface:
SchemaDefinition
@Stability(Stable)
public static final class SchemaDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<SchemaDefinition>
A builder for
SchemaDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofSchemaDefinition.getDescription()items(SchemaDefinition items) Sets the value ofSchemaDefinition.getItems()properties(Map<String, ? extends SchemaDefinition> properties) Sets the value ofSchemaDefinition.getProperties()Sets the value ofSchemaDefinition.getRequired()type(SchemaDefinitionType type) Sets the value ofSchemaDefinition.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofSchemaDefinition.getType()- Parameters:
type- The type of the schema definition. This parameter is required. This field specifies the data type of the schema.- Returns:
this
-
description
Sets the value ofSchemaDefinition.getDescription()- Parameters:
description- The description of the schema definition. This description provides information about the purpose and usage of the schema.- Returns:
this
-
items
Sets the value ofSchemaDefinition.getItems()- Parameters:
items- The items in the schema definition. This field is used for array types to define the structure of the array elements.- Returns:
this
-
properties
@Stability(Stable) public SchemaDefinition.Builder properties(Map<String, ? extends SchemaDefinition> properties) Sets the value ofSchemaDefinition.getProperties()- Parameters:
properties- The properties of the schema definition. These properties define the fields in the schema.- Returns:
this
-
required
Sets the value ofSchemaDefinition.getRequired()- Parameters:
required- The required fields in the schema definition. These fields must be provided when using the schema.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SchemaDefinition>- Returns:
- a new instance of
SchemaDefinition - Throws:
NullPointerException- if any required attribute was not provided
-