Interface GuardrailImageBlock.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailImageBlock.Builder,GuardrailImageBlock>,SdkBuilder<GuardrailImageBlock.Builder,GuardrailImageBlock>,SdkPojo
- Enclosing class:
- GuardrailImageBlock
public static interface GuardrailImageBlock.Builder extends SdkPojo, CopyableBuilder<GuardrailImageBlock.Builder,GuardrailImageBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GuardrailImageBlock.Builderformat(String format)The format details for the file type of the image blocked by the guardrail.GuardrailImageBlock.Builderformat(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.GuardrailImageBlock.Buildersource(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
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 Detail
-
format
GuardrailImageBlock.Builder format(String 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:
GuardrailImageFormat,GuardrailImageFormat
-
format
GuardrailImageBlock.Builder format(GuardrailImageFormat 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:
GuardrailImageFormat,GuardrailImageFormat
-
source
GuardrailImageBlock.Builder source(GuardrailImageSource 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
default GuardrailImageBlock.Builder source(Consumer<GuardrailImageSource.Builder> 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:
source(GuardrailImageSource)
-
-