aws-sdk-redshift 1.106.0

AWS SDK for Amazon Redshift
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 RejectDataShareInput {
    /// <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
    pub data_share_arn: ::std::option::Option<::std::string::String>,
}
impl RejectDataShareInput {
    /// <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
    pub fn data_share_arn(&self) -> ::std::option::Option<&str> {
        self.data_share_arn.as_deref()
    }
}
impl RejectDataShareInput {
    /// Creates a new builder-style object to manufacture [`RejectDataShareInput`](crate::operation::reject_data_share::RejectDataShareInput).
    pub fn builder() -> crate::operation::reject_data_share::builders::RejectDataShareInputBuilder {
        crate::operation::reject_data_share::builders::RejectDataShareInputBuilder::default()
    }
}

/// A builder for [`RejectDataShareInput`](crate::operation::reject_data_share::RejectDataShareInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RejectDataShareInputBuilder {
    pub(crate) data_share_arn: ::std::option::Option<::std::string::String>,
}
impl RejectDataShareInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
    /// This field is required.
    pub fn data_share_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_share_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
    pub fn set_data_share_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_share_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
    pub fn get_data_share_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_share_arn
    }
    /// Consumes the builder and constructs a [`RejectDataShareInput`](crate::operation::reject_data_share::RejectDataShareInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::reject_data_share::RejectDataShareInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::reject_data_share::RejectDataShareInput {
            data_share_arn: self.data_share_arn,
        })
    }
}