aws_sdk_connect/client/send_outbound_email.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SendOutboundEmail`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`instance_id(impl Into<String>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::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>
/// - [`from_email_address(EmailAddressInfo)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::from_email_address) / [`set_from_email_address(Option<EmailAddressInfo>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_from_email_address):<br>required: **true**<br><p>The email address to be used for sending email.</p><br>
/// - [`destination_email_address(EmailAddressInfo)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::destination_email_address) / [`set_destination_email_address(Option<EmailAddressInfo>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_destination_email_address):<br>required: **true**<br><p>The email address to send the email to.</p><br>
/// - [`additional_recipients(OutboundAdditionalRecipients)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::additional_recipients) / [`set_additional_recipients(Option<OutboundAdditionalRecipients>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_additional_recipients):<br>required: **false**<br><p>The additional recipients address of the email in CC.</p><br>
/// - [`email_message(OutboundEmailContent)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::email_message) / [`set_email_message(Option<OutboundEmailContent>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_email_message):<br>required: **true**<br><p>The email message body to be sent to the newly created email.</p><br>
/// - [`traffic_type(TrafficType)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::traffic_type) / [`set_traffic_type(Option<TrafficType>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_traffic_type):<br>required: **true**<br><p>Denotes the class of traffic.</p><br>
/// - [`source_campaign(SourceCampaign)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::source_campaign) / [`set_source_campaign(Option<SourceCampaign>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_source_campaign):<br>required: **false**<br><p>A Campaign object need for Campaign traffic type.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
/// - On success, responds with [`SendOutboundEmailOutput`](crate::operation::send_outbound_email::SendOutboundEmailOutput)
/// - On failure, responds with [`SdkError<SendOutboundEmailError>`](crate::operation::send_outbound_email::SendOutboundEmailError)
pub fn send_outbound_email(&self) -> crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder {
crate::operation::send_outbound_email::builders::SendOutboundEmailFluentBuilder::new(self.handle.clone())
}
}