Class CfnDatasetPropsMixin.InlineExamplesSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnDatasetPropsMixin.InlineExamplesSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetPropsMixin.InlineExamplesSourceProperty>
- Enclosing interface:
CfnDatasetPropsMixin.InlineExamplesSourceProperty
@Stability(Stable)
public static final class CfnDatasetPropsMixin.InlineExamplesSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetPropsMixin.InlineExamplesSourceProperty>
A builder for
CfnDatasetPropsMixin.InlineExamplesSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDatasetPropsMixin.InlineExamplesSourceProperty.getExamples()examples(IResolvable examples) Sets the value ofCfnDatasetPropsMixin.InlineExamplesSourceProperty.getExamples()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
examples
@Stability(Stable) public CfnDatasetPropsMixin.InlineExamplesSourceProperty.Builder examples(List<? extends Object> examples) Sets the value ofCfnDatasetPropsMixin.InlineExamplesSourceProperty.getExamples()- Parameters:
examples- Examples to add. Each example is a free-form JSON document validated against the declared schemaType.- Returns:
this
-
examples
@Stability(Stable) public CfnDatasetPropsMixin.InlineExamplesSourceProperty.Builder examples(IResolvable examples) Sets the value ofCfnDatasetPropsMixin.InlineExamplesSourceProperty.getExamples()- Parameters:
examples- Examples to add. Each example is a free-form JSON document validated against the declared schemaType.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetPropsMixin.InlineExamplesSourceProperty>- Returns:
- a new instance of
CfnDatasetPropsMixin.InlineExamplesSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-