Interface GuardrailChecksMessage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailChecksMessage.Builder,,GuardrailChecksMessage> SdkBuilder<GuardrailChecksMessage.Builder,,GuardrailChecksMessage> SdkPojo
- Enclosing class:
GuardrailChecksMessage
@Mutable
@NotThreadSafe
public static interface GuardrailChecksMessage.Builder
extends SdkPojo, CopyableBuilder<GuardrailChecksMessage.Builder,GuardrailChecksMessage>
-
Method Summary
Modifier and TypeMethodDescriptioncontent(Collection<GuardrailChecksContentBlock> content) The content blocks for the message.content(Consumer<GuardrailChecksContentBlock.Builder>... content) The content blocks for the message.content(GuardrailChecksContentBlock... content) The content blocks for the message.The role of the message sender.role(GuardrailChecksRole role) The role of the message sender.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
-
role
The role of the message sender.
- Parameters:
role- The role of the message sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the message sender.
- Parameters:
role- The role of the message sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
content
The content blocks for the message.
- Parameters:
content- The content blocks for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content blocks for the message.
- Parameters:
content- The content blocks for the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content blocks for the message.
This is a convenience method that creates an instance of theGuardrailChecksContentBlock.Builderavoiding the need to create one manually viaGuardrailChecksContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(List<GuardrailChecksContentBlock>).- Parameters:
content- a consumer that will call methods onGuardrailChecksContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-