Interface CreateParticipantResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ConnectResponse.Builder
,CopyableBuilder<CreateParticipantResponse.Builder,
,CreateParticipantResponse> SdkBuilder<CreateParticipantResponse.Builder,
,CreateParticipantResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateParticipantResponse
@Mutable
@NotThreadSafe
public static interface CreateParticipantResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<CreateParticipantResponse.Builder,CreateParticipantResponse>
-
Method Summary
Modifier and TypeMethodDescriptionparticipantCredentials
(Consumer<ParticipantTokenCredentials.Builder> participantCredentials) The token used by the chat participant to callCreateParticipantConnection
.participantCredentials
(ParticipantTokenCredentials participantCredentials) The token used by the chat participant to callCreateParticipantConnection
.participantId
(String participantId) The identifier for a chat participant.Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
participantCredentials
CreateParticipantResponse.Builder participantCredentials(ParticipantTokenCredentials participantCredentials) The token used by the chat participant to call
CreateParticipantConnection
. The participant token is valid for the lifetime of a chat participant.- Parameters:
participantCredentials
- The token used by the chat participant to callCreateParticipantConnection
. The participant token is valid for the lifetime of a chat participant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantCredentials
default CreateParticipantResponse.Builder participantCredentials(Consumer<ParticipantTokenCredentials.Builder> participantCredentials) The token used by the chat participant to call
This is a convenience method that creates an instance of theCreateParticipantConnection
. The participant token is valid for the lifetime of a chat participant.ParticipantTokenCredentials.Builder
avoiding the need to create one manually viaParticipantTokenCredentials.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparticipantCredentials(ParticipantTokenCredentials)
.- Parameters:
participantCredentials
- a consumer that will call methods onParticipantTokenCredentials.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantId
The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.
- Parameters:
participantId
- The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-