aws-sdk-datazone 1.136.0

AWS SDK for Amazon DataZone
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)]
pub struct RejectSubscriptionRequestInput {
    /// <p>The identifier of the Amazon DataZone domain in which the subscription request was rejected.</p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the subscription request that was rejected.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
    /// <p>The decision comment of the rejected subscription request.</p>
    pub decision_comment: ::std::option::Option<::std::string::String>,
}
impl RejectSubscriptionRequestInput {
    /// <p>The identifier of the Amazon DataZone domain in which the subscription request was rejected.</p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p>The identifier of the subscription request that was rejected.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
    /// <p>The decision comment of the rejected subscription request.</p>
    pub fn decision_comment(&self) -> ::std::option::Option<&str> {
        self.decision_comment.as_deref()
    }
}
impl ::std::fmt::Debug for RejectSubscriptionRequestInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("RejectSubscriptionRequestInput");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("identifier", &self.identifier);
        formatter.field("decision_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl RejectSubscriptionRequestInput {
    /// Creates a new builder-style object to manufacture [`RejectSubscriptionRequestInput`](crate::operation::reject_subscription_request::RejectSubscriptionRequestInput).
    pub fn builder() -> crate::operation::reject_subscription_request::builders::RejectSubscriptionRequestInputBuilder {
        crate::operation::reject_subscription_request::builders::RejectSubscriptionRequestInputBuilder::default()
    }
}

/// A builder for [`RejectSubscriptionRequestInput`](crate::operation::reject_subscription_request::RejectSubscriptionRequestInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct RejectSubscriptionRequestInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
    pub(crate) decision_comment: ::std::option::Option<::std::string::String>,
}
impl RejectSubscriptionRequestInputBuilder {
    /// <p>The identifier of the Amazon DataZone domain in which the subscription request was rejected.</p>
    /// This field is required.
    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which the subscription request was rejected.</p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which the subscription request was rejected.</p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p>The identifier of the subscription request that was rejected.</p>
    /// This field is required.
    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the subscription request that was rejected.</p>
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// <p>The identifier of the subscription request that was rejected.</p>
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// <p>The decision comment of the rejected subscription request.</p>
    pub fn decision_comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.decision_comment = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The decision comment of the rejected subscription request.</p>
    pub fn set_decision_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.decision_comment = input;
        self
    }
    /// <p>The decision comment of the rejected subscription request.</p>
    pub fn get_decision_comment(&self) -> &::std::option::Option<::std::string::String> {
        &self.decision_comment
    }
    /// Consumes the builder and constructs a [`RejectSubscriptionRequestInput`](crate::operation::reject_subscription_request::RejectSubscriptionRequestInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::reject_subscription_request::RejectSubscriptionRequestInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::reject_subscription_request::RejectSubscriptionRequestInput {
            domain_identifier: self.domain_identifier,
            identifier: self.identifier,
            decision_comment: self.decision_comment,
        })
    }
}
impl ::std::fmt::Debug for RejectSubscriptionRequestInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("RejectSubscriptionRequestInputBuilder");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("identifier", &self.identifier);
        formatter.field("decision_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}