aws-sdk-rtbfabric 1.25.0

AWS SDK for RTBFabric
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 DisassociateCertificateInput {
    /// <p>The unique identifier of the gateway.</p>
    pub gateway_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the ACM certificate to disassociate.</p>
    pub acm_certificate_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateCertificateInput {
    /// <p>The unique identifier of the gateway.</p>
    pub fn gateway_id(&self) -> ::std::option::Option<&str> {
        self.gateway_id.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the ACM certificate to disassociate.</p>
    pub fn acm_certificate_arn(&self) -> ::std::option::Option<&str> {
        self.acm_certificate_arn.as_deref()
    }
}
impl DisassociateCertificateInput {
    /// Creates a new builder-style object to manufacture [`DisassociateCertificateInput`](crate::operation::disassociate_certificate::DisassociateCertificateInput).
    pub fn builder() -> crate::operation::disassociate_certificate::builders::DisassociateCertificateInputBuilder {
        crate::operation::disassociate_certificate::builders::DisassociateCertificateInputBuilder::default()
    }
}

/// A builder for [`DisassociateCertificateInput`](crate::operation::disassociate_certificate::DisassociateCertificateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateCertificateInputBuilder {
    pub(crate) gateway_id: ::std::option::Option<::std::string::String>,
    pub(crate) acm_certificate_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateCertificateInputBuilder {
    /// <p>The unique identifier of the gateway.</p>
    /// This field is required.
    pub fn gateway_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.gateway_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the gateway.</p>
    pub fn set_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.gateway_id = input;
        self
    }
    /// <p>The unique identifier of the gateway.</p>
    pub fn get_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.gateway_id
    }
    /// <p>The Amazon Resource Name (ARN) of the ACM certificate to disassociate.</p>
    /// This field is required.
    pub fn acm_certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.acm_certificate_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ACM certificate to disassociate.</p>
    pub fn set_acm_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.acm_certificate_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ACM certificate to disassociate.</p>
    pub fn get_acm_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.acm_certificate_arn
    }
    /// Consumes the builder and constructs a [`DisassociateCertificateInput`](crate::operation::disassociate_certificate::DisassociateCertificateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::disassociate_certificate::DisassociateCertificateInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::disassociate_certificate::DisassociateCertificateInput {
            gateway_id: self.gateway_id,
            acm_certificate_arn: self.acm_certificate_arn,
        })
    }
}