Interface ChatRequest.Builder
- All Superinterfaces:
AssuranceRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<ChatRequest.Builder,,ChatRequest> SdkBuilder<ChatRequest.Builder,,ChatRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ChatRequest
@Mutable
@NotThreadSafe
public static interface ChatRequest.Builder
extends AssuranceRequest.Builder, SdkPojo, CopyableBuilder<ChatRequest.Builder,ChatRequest>
-
Method Summary
Modifier and TypeMethodDescriptionenvironmentArn(String environmentArn) The ARN of this governance environment.expectedSequenceNumber(Long expectedSequenceNumber) The sequence number of the last message you received.The chat message to send to the AWS Assurance agent.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The session to continue.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
message
The chat message to send to the AWS Assurance agent.
- Parameters:
message- The chat message to send to the AWS Assurance agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The session to continue. Pass the
sessionIdreturned by a previousChatcall to continue that session. If you omit it, AWS Assurance starts a new session. If the session doesn't exist or has expired, the operation returnsResourceNotFoundException. If the format isn't valid, the operation returnsValidationException.- Parameters:
sessionId- The session to continue. Pass thesessionIdreturned by a previousChatcall to continue that session. If you omit it, AWS Assurance starts a new session. If the session doesn't exist or has expired, the operation returnsResourceNotFoundException. If the format isn't valid, the operation returnsValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentArn
The ARN of this governance environment.
- Parameters:
environmentArn- The ARN of this governance environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedSequenceNumber
The sequence number of the last message you received. If the service detects a more recent sequence number, the request fails with
ConflictException, indicating a concurrent update.- Parameters:
expectedSequenceNumber- The sequence number of the last message you received. If the service detects a more recent sequence number, the request fails withConflictException, indicating a concurrent update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ChatRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-