Interface StructuredDataPayload.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StructuredDataPayload.Builder,,StructuredDataPayload> SdkBuilder<StructuredDataPayload.Builder,,StructuredDataPayload> SdkPojo
- Enclosing class:
StructuredDataPayload
@Mutable
@NotThreadSafe
public static interface StructuredDataPayload.Builder
extends SdkPojo, CopyableBuilder<StructuredDataPayload.Builder,StructuredDataPayload>
-
Method Summary
Modifier and TypeMethodDescriptiondefault StructuredDataPayload.Buildersource(Consumer<StructuredDataSource.Builder> source) The structured content.source(StructuredDataSource source) The structured content.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
source
The structured content.
- Parameters:
source- The structured content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The structured content.
This is a convenience method that creates an instance of theStructuredDataSource.Builderavoiding the need to create one manually viaStructuredDataSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(StructuredDataSource).- Parameters:
source- a consumer that will call methods onStructuredDataSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-