Interface GetChannelMessageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ChimeSdkMessagingResponse.Builder,CopyableBuilder<GetChannelMessageResponse.Builder,,GetChannelMessageResponse> SdkBuilder<GetChannelMessageResponse.Builder,,GetChannelMessageResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetChannelMessageResponse
public static interface GetChannelMessageResponse.Builder
extends ChimeSdkMessagingResponse.Builder, SdkPojo, CopyableBuilder<GetChannelMessageResponse.Builder,GetChannelMessageResponse>
-
Method Summary
Modifier and TypeMethodDescriptionchannelMessage(Consumer<ChannelMessage.Builder> channelMessage) The details of and content in the message.channelMessage(ChannelMessage channelMessage) The details of and content in the message.Methods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
channelMessage
The details of and content in the message.
- Parameters:
channelMessage- The details of and content in the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelMessage
default GetChannelMessageResponse.Builder channelMessage(Consumer<ChannelMessage.Builder> channelMessage) The details of and content in the message.
This is a convenience method that creates an instance of theChannelMessage.Builderavoiding the need to create one manually viaChannelMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannelMessage(ChannelMessage).- Parameters:
channelMessage- a consumer that will call methods onChannelMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-