Interface ContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContentBlock.Builder,
,ContentBlock> SdkBuilder<ContentBlock.Builder,
,ContentBlock> SdkPojo
- Enclosing class:
ContentBlock
@Mutable
@NotThreadSafe
public static interface ContentBlock.Builder
extends SdkPojo, CopyableBuilder<ContentBlock.Builder,ContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptionThe binary data content of the block.description
(String description) The description of the content block.The MIME type of the content.The name of the content block.default ContentBlock.Builder
resource
(Consumer<ResourceContent.Builder> resource) The resource associated with the content block.resource
(ResourceContent resource) The resource associated with the content block.The size of the content in bytes.The text content of the block.The type of content in the block.type
(ContentBlockType type) The type of content in the block.The URI of the content.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 Details
-
type
The type of content in the block.
- Parameters:
type
- The type of content in the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of content in the block.
- Parameters:
type
- The type of content in the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The text content of the block.
- Parameters:
text
- The text content of the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
The binary data content of the block.
- Parameters:
data
- The binary data content of the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mimeType
The MIME type of the content.
- Parameters:
mimeType
- The MIME type of the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uri
The URI of the content.
- Parameters:
uri
- The URI of the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the content block.
- Parameters:
name
- The name of the content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the content block.
- Parameters:
description
- The description of the content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
size
The size of the content in bytes.
- Parameters:
size
- The size of the content in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource associated with the content block.
- Parameters:
resource
- The resource associated with the content block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource associated with the content block.
This is a convenience method that creates an instance of theResourceContent.Builder
avoiding the need to create one manually viaResourceContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(ResourceContent)
.- Parameters:
resource
- a consumer that will call methods onResourceContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-