aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`Chat`](crate::operation::chat::builders::ChatFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`message(impl Into<String>)`](crate::operation::chat::builders::ChatFluentBuilder::message) / [`set_message(Option<String>)`](crate::operation::chat::builders::ChatFluentBuilder::set_message):<br>required: **true**<br><p>The chat message to send to the AWS Assurance agent.</p><br>
    ///   - [`session_id(impl Into<String>)`](crate::operation::chat::builders::ChatFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::chat::builders::ChatFluentBuilder::set_session_id):<br>required: **false**<br><p>The session to continue. Pass the <code>sessionId</code> returned by a previous <code>Chat</code> call 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 returns <code>ResourceNotFoundException</code>. If the format isn't valid, the operation returns <code>ValidationException</code>.</p><br>
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::chat::builders::ChatFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::chat::builders::ChatFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`expected_sequence_number(i64)`](crate::operation::chat::builders::ChatFluentBuilder::expected_sequence_number) / [`set_expected_sequence_number(Option<i64>)`](crate::operation::chat::builders::ChatFluentBuilder::set_expected_sequence_number):<br>required: **false**<br><p>The sequence number of the last message you received. If the service detects a more recent sequence number, the request fails with <code>ConflictException</code>, indicating a concurrent update.</p><br>
    /// - On success, responds with [`ChatOutput`](crate::operation::chat::ChatOutput) with field(s):
    ///   - [`event_stream(EventReceiver<ChatEventStream, ChatEventStreamError>)`](crate::operation::chat::ChatOutput::event_stream): <p>The stream of chat events returned by the agent.</p>
    ///   - [`session_id(String)`](crate::operation::chat::ChatOutput::session_id): <p>The ID of the session. If you omitted <code>sessionId</code> in the request, use this value to continue the session in subsequent calls.</p>
    ///   - [`sequence_number(i64)`](crate::operation::chat::ChatOutput::sequence_number): <p>The updated sequence number for this session. Pass this value as <code>expectedSequenceNumber</code> on your next call.</p>
    /// - On failure, responds with [`SdkError<ChatError>`](crate::operation::chat::ChatError)
    pub fn chat(&self) -> crate::operation::chat::builders::ChatFluentBuilder {
        crate::operation::chat::builders::ChatFluentBuilder::new(self.handle.clone())
    }
}