aws-sdk-pinpointsmsvoicev2 1.124.0

AWS SDK for Amazon Pinpoint SMS Voice V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateOriginationIdentity`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`pool_id(impl Into<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::pool_id) / [`set_pool_id(Option<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::set_pool_id):<br>required: **true**<br><p>The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using <a href="https://docs.aws.amazon.com/pinpoint/latest/apireference_smsvoicev2/API_DescribePools.html">DescribePools</a>.</p><important>  <p>If you are using a shared End User Messaging SMS; resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
    ///   - [`origination_identity(impl Into<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::origination_identity) / [`set_origination_identity(Option<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::set_origination_identity):<br>required: **true**<br><p>The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use <code>DescribePhoneNumbers</code> to find the values for PhoneNumberId and PhoneNumberArn, while <code>DescribeSenderIds</code> can be used to get the values for SenderId and SenderIdArn.</p><important>  <p>If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
    ///   - [`iso_country_code(impl Into<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::iso_country_code) / [`set_iso_country_code(Option<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::set_iso_country_code):<br>required: **false**<br><p>The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity. This field is optional and is not required for origination identity types that are not country-specific, such as RCS agents.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
    /// - On success, responds with [`AssociateOriginationIdentityOutput`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput) with field(s):
    ///   - [`pool_arn(Option<String>)`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput::pool_arn): <p>The Amazon Resource Name (ARN) of the pool that is now associated with the origination identity.</p>
    ///   - [`pool_id(Option<String>)`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput::pool_id): <p>The PoolId of the pool that is now associated with the origination identity.</p>
    ///   - [`origination_identity_arn(Option<String>)`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput::origination_identity_arn): <p>The PhoneNumberArn or SenderIdArn of the origination identity.</p>
    ///   - [`origination_identity(Option<String>)`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput::origination_identity): <p>The PhoneNumberId or SenderId of the origination identity.</p>
    ///   - [`iso_country_code(Option<String>)`](crate::operation::associate_origination_identity::AssociateOriginationIdentityOutput::iso_country_code): <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p>
    /// - On failure, responds with [`SdkError<AssociateOriginationIdentityError>`](crate::operation::associate_origination_identity::AssociateOriginationIdentityError)
    pub fn associate_origination_identity(
        &self,
    ) -> crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder {
        crate::operation::associate_origination_identity::builders::AssociateOriginationIdentityFluentBuilder::new(self.handle.clone())
    }
}