aws-sdk-mpa 1.20.0

AWS SDK for AWS Multi-party Approval
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteIdentitySourceInput {
    /// <p>Amazon Resource Name (ARN) for identity source.</p>
    pub identity_source_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteIdentitySourceInput {
    /// <p>Amazon Resource Name (ARN) for identity source.</p>
    pub fn identity_source_arn(&self) -> ::std::option::Option<&str> {
        self.identity_source_arn.as_deref()
    }
}
impl DeleteIdentitySourceInput {
    /// Creates a new builder-style object to manufacture [`DeleteIdentitySourceInput`](crate::operation::delete_identity_source::DeleteIdentitySourceInput).
    pub fn builder() -> crate::operation::delete_identity_source::builders::DeleteIdentitySourceInputBuilder {
        crate::operation::delete_identity_source::builders::DeleteIdentitySourceInputBuilder::default()
    }
}

/// A builder for [`DeleteIdentitySourceInput`](crate::operation::delete_identity_source::DeleteIdentitySourceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteIdentitySourceInputBuilder {
    pub(crate) identity_source_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteIdentitySourceInputBuilder {
    /// <p>Amazon Resource Name (ARN) for identity source.</p>
    /// This field is required.
    pub fn identity_source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.identity_source_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Amazon Resource Name (ARN) for identity source.</p>
    pub fn set_identity_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identity_source_arn = input;
        self
    }
    /// <p>Amazon Resource Name (ARN) for identity source.</p>
    pub fn get_identity_source_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.identity_source_arn
    }
    /// Consumes the builder and constructs a [`DeleteIdentitySourceInput`](crate::operation::delete_identity_source::DeleteIdentitySourceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_identity_source::DeleteIdentitySourceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_identity_source::DeleteIdentitySourceInput {
            identity_source_arn: self.identity_source_arn,
        })
    }
}