aws_sdk_connect/client/stop_contact.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`StopContact`](crate::operation::stop_contact::builders::StopContactFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`contact_id(impl Into<String>)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::contact_id) / [`set_contact_id(Option<String>)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::set_contact_id):<br>required: **true**<br><p>The ID of the contact.</p><br>
/// - [`instance_id(impl Into<String>)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
/// - [`disconnect_reason(DisconnectReason)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::disconnect_reason) / [`set_disconnect_reason(Option<DisconnectReason>)`](crate::operation::stop_contact::builders::StopContactFluentBuilder::set_disconnect_reason):<br>required: **false**<br><p>The reason a contact can be disconnected. Only Amazon Connect outbound campaigns can provide this field.</p><br>
/// - On success, responds with [`StopContactOutput`](crate::operation::stop_contact::StopContactOutput)
/// - On failure, responds with [`SdkError<StopContactError>`](crate::operation::stop_contact::StopContactError)
pub fn stop_contact(&self) -> crate::operation::stop_contact::builders::StopContactFluentBuilder {
crate::operation::stop_contact::builders::StopContactFluentBuilder::new(self.handle.clone())
}
}