Interface DataReference.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DataReference.Builder,
,DataReference> SdkBuilder<DataReference.Builder,
,DataReference> SdkPojo
- Enclosing class:
DataReference
@Mutable
@NotThreadSafe
public static interface DataReference.Builder
extends SdkPojo, CopyableBuilder<DataReference.Builder,DataReference>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DataReference.Builder
contentReference
(Consumer<ContentReference.Builder> contentReference) Sets the value of the ContentReference property for this object.contentReference
(ContentReference contentReference) Sets the value of the ContentReference property for this object.default DataReference.Builder
generativeReference
(Consumer<GenerativeReference.Builder> generativeReference) Reference information about the generative content.generativeReference
(GenerativeReference generativeReference) Reference information about the generative content.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
contentReference
Sets the value of the ContentReference property for this object.- Parameters:
contentReference
- The new value for the ContentReference property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentReference
Sets the value of the ContentReference property for this object. This is a convenience method that creates an instance of theContentReference.Builder
avoiding the need to create one manually viaContentReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentReference(ContentReference)
.- Parameters:
contentReference
- a consumer that will call methods onContentReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generativeReference
Reference information about the generative content.
- Parameters:
generativeReference
- Reference information about the generative content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generativeReference
default DataReference.Builder generativeReference(Consumer<GenerativeReference.Builder> generativeReference) Reference information about the generative content.
This is a convenience method that creates an instance of theGenerativeReference.Builder
avoiding the need to create one manually viaGenerativeReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togenerativeReference(GenerativeReference)
.- Parameters:
generativeReference
- a consumer that will call methods onGenerativeReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-