Interface StructuredMessage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StructuredMessage.Builder,,StructuredMessage> SdkBuilder<StructuredMessage.Builder,,StructuredMessage> SdkPojo
- Enclosing class:
StructuredMessage
-
Method Summary
Modifier and TypeMethodDescriptiondefault StructuredMessage.BuilderprimitiveMessageDefinition(Consumer<PrimitiveMessageDefinition.Builder> primitiveMessageDefinition) Represents a primitive type node of the complex data structure.primitiveMessageDefinition(PrimitiveMessageDefinition primitiveMessageDefinition) Represents a primitive type node of the complex data structure.structuredMessageDefinition(Collection<StructuredMessageFieldNameAndDataTypePair> structuredMessageDefinition) Represents a struct type node of the complex data structure.structuredMessageDefinition(Consumer<StructuredMessageFieldNameAndDataTypePair.Builder>... structuredMessageDefinition) Represents a struct type node of the complex data structure.structuredMessageDefinition(StructuredMessageFieldNameAndDataTypePair... structuredMessageDefinition) Represents a struct type node of the complex data structure.default StructuredMessage.BuilderstructuredMessageListDefinition(Consumer<StructuredMessageListDefinition.Builder> structuredMessageListDefinition) Represents a list type node of the complex data structure.structuredMessageListDefinition(StructuredMessageListDefinition structuredMessageListDefinition) Represents a list type node of the complex data structure.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, sdkFields
-
Method Details
-
primitiveMessageDefinition
StructuredMessage.Builder primitiveMessageDefinition(PrimitiveMessageDefinition primitiveMessageDefinition) Represents a primitive type node of the complex data structure.
- Parameters:
primitiveMessageDefinition- Represents a primitive type node of the complex data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primitiveMessageDefinition
default StructuredMessage.Builder primitiveMessageDefinition(Consumer<PrimitiveMessageDefinition.Builder> primitiveMessageDefinition) Represents a primitive type node of the complex data structure.
This is a convenience method that creates an instance of thePrimitiveMessageDefinition.Builderavoiding the need to create one manually viaPrimitiveMessageDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprimitiveMessageDefinition(PrimitiveMessageDefinition).- Parameters:
primitiveMessageDefinition- a consumer that will call methods onPrimitiveMessageDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
structuredMessageListDefinition
StructuredMessage.Builder structuredMessageListDefinition(StructuredMessageListDefinition structuredMessageListDefinition) Represents a list type node of the complex data structure.
- Parameters:
structuredMessageListDefinition- Represents a list type node of the complex data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
structuredMessageListDefinition
default StructuredMessage.Builder structuredMessageListDefinition(Consumer<StructuredMessageListDefinition.Builder> structuredMessageListDefinition) Represents a list type node of the complex data structure.
This is a convenience method that creates an instance of theStructuredMessageListDefinition.Builderavoiding the need to create one manually viaStructuredMessageListDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostructuredMessageListDefinition(StructuredMessageListDefinition).- Parameters:
structuredMessageListDefinition- a consumer that will call methods onStructuredMessageListDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
structuredMessageDefinition
StructuredMessage.Builder structuredMessageDefinition(Collection<StructuredMessageFieldNameAndDataTypePair> structuredMessageDefinition) Represents a struct type node of the complex data structure.
- Parameters:
structuredMessageDefinition- Represents a struct type node of the complex data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
structuredMessageDefinition
StructuredMessage.Builder structuredMessageDefinition(StructuredMessageFieldNameAndDataTypePair... structuredMessageDefinition) Represents a struct type node of the complex data structure.
- Parameters:
structuredMessageDefinition- Represents a struct type node of the complex data structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
structuredMessageDefinition
StructuredMessage.Builder structuredMessageDefinition(Consumer<StructuredMessageFieldNameAndDataTypePair.Builder>... structuredMessageDefinition) Represents a struct type node of the complex data structure.
This is a convenience method that creates an instance of theStructuredMessageFieldNameAndDataTypePair.Builderavoiding the need to create one manually viaStructuredMessageFieldNameAndDataTypePair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostructuredMessageDefinition(List<StructuredMessageFieldNameAndDataTypePair>).- Parameters:
structuredMessageDefinition- a consumer that will call methods onStructuredMessageFieldNameAndDataTypePair.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-