Interface GuardrailImageBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailImageBlock.Builder,,GuardrailImageBlock> SdkBuilder<GuardrailImageBlock.Builder,,GuardrailImageBlock> SdkPojo
- Enclosing class:
GuardrailImageBlock
@Mutable
@NotThreadSafe
public static interface GuardrailImageBlock.Builder
extends SdkPojo, CopyableBuilder<GuardrailImageBlock.Builder,GuardrailImageBlock>
-
Method Summary
Modifier and TypeMethodDescriptionThe format details for the file type of the image blocked by the guardrail.format(GuardrailImageFormat format) The format details for the file type of the image blocked by the guardrail.default GuardrailImageBlock.Buildersource(Consumer<GuardrailImageSource.Builder> source) The image source (image bytes) details of the image blocked by the guardrail.source(GuardrailImageSource source) The image source (image bytes) details of the image blocked by the guardrail.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
-
format
The format details for the file type of the image blocked by the guardrail.
- Parameters:
format- The format details for the file type of the image blocked by the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The format details for the file type of the image blocked by the guardrail.
- Parameters:
format- The format details for the file type of the image blocked by the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The image source (image bytes) details of the image blocked by the guardrail.
- Parameters:
source- The image source (image bytes) details of the image blocked by the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The image source (image bytes) details of the image blocked by the guardrail.
This is a convenience method that creates an instance of theGuardrailImageSource.Builderavoiding the need to create one manually viaGuardrailImageSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(GuardrailImageSource).- Parameters:
source- a consumer that will call methods onGuardrailImageSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-