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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ContentBlock.BuildercachePoint(Consumer<CachePointBlock.Builder> cachePoint)Creates a cache checkpoint within a message.ContentBlock.BuildercachePoint(CachePointBlock cachePoint)Creates a cache checkpoint within a message.ContentBlock.Buildertext(String text)The text in the message.-
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
-
text
ContentBlock.Builder text(String text)
The text in the message.
- Parameters:
text- The text in the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePoint
ContentBlock.Builder cachePoint(CachePointBlock cachePoint)
Creates a cache checkpoint within a message.
- Parameters:
cachePoint- Creates a cache checkpoint within a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePoint
default ContentBlock.Builder cachePoint(Consumer<CachePointBlock.Builder> cachePoint)
Creates a cache checkpoint within a message.
This is a convenience method that creates an instance of theCachePointBlock.Builderavoiding the need to create one manually viaCachePointBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocachePoint(CachePointBlock).- Parameters:
cachePoint- a consumer that will call methods onCachePointBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cachePoint(CachePointBlock)
-
-