aws-sdk-acm 1.117.0

AWS SDK for AWS Certificate Manager
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 UpdateCertificateOptionsInput {
    /// <p>ARN of the requested certificate to update. This must be of the form:</p>
    /// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
    pub certificate_arn: ::std::option::Option<::std::string::String>,
    /// <p>Use to update the options for your certificate. Currently, you can change the domain validation method or specify whether to export your certificate. For more information about migrating from email to DNS validation, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html">Migrate from email to DNS validation</a>.</p>
    pub options: ::std::option::Option<crate::types::CertificateOptions>,
}
impl UpdateCertificateOptionsInput {
    /// <p>ARN of the requested certificate to update. This must be of the form:</p>
    /// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
    pub fn certificate_arn(&self) -> ::std::option::Option<&str> {
        self.certificate_arn.as_deref()
    }
    /// <p>Use to update the options for your certificate. Currently, you can change the domain validation method or specify whether to export your certificate. For more information about migrating from email to DNS validation, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html">Migrate from email to DNS validation</a>.</p>
    pub fn options(&self) -> ::std::option::Option<&crate::types::CertificateOptions> {
        self.options.as_ref()
    }
}
impl UpdateCertificateOptionsInput {
    /// Creates a new builder-style object to manufacture [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
    pub fn builder() -> crate::operation::update_certificate_options::builders::UpdateCertificateOptionsInputBuilder {
        crate::operation::update_certificate_options::builders::UpdateCertificateOptionsInputBuilder::default()
    }
}

/// A builder for [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateCertificateOptionsInputBuilder {
    pub(crate) certificate_arn: ::std::option::Option<::std::string::String>,
    pub(crate) options: ::std::option::Option<crate::types::CertificateOptions>,
}
impl UpdateCertificateOptionsInputBuilder {
    /// <p>ARN of the requested certificate to update. This must be of the form:</p>
    /// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
    /// This field is required.
    pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.certificate_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>ARN of the requested certificate to update. This must be of the form:</p>
    /// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
    pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.certificate_arn = input;
        self
    }
    /// <p>ARN of the requested certificate to update. This must be of the form:</p>
    /// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
    pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.certificate_arn
    }
    /// <p>Use to update the options for your certificate. Currently, you can change the domain validation method or specify whether to export your certificate. For more information about migrating from email to DNS validation, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html">Migrate from email to DNS validation</a>.</p>
    /// This field is required.
    pub fn options(mut self, input: crate::types::CertificateOptions) -> Self {
        self.options = ::std::option::Option::Some(input);
        self
    }
    /// <p>Use to update the options for your certificate. Currently, you can change the domain validation method or specify whether to export your certificate. For more information about migrating from email to DNS validation, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html">Migrate from email to DNS validation</a>.</p>
    pub fn set_options(mut self, input: ::std::option::Option<crate::types::CertificateOptions>) -> Self {
        self.options = input;
        self
    }
    /// <p>Use to update the options for your certificate. Currently, you can change the domain validation method or specify whether to export your certificate. For more information about migrating from email to DNS validation, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html">Migrate from email to DNS validation</a>.</p>
    pub fn get_options(&self) -> &::std::option::Option<crate::types::CertificateOptions> {
        &self.options
    }
    /// Consumes the builder and constructs a [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_certificate_options::UpdateCertificateOptionsInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_certificate_options::UpdateCertificateOptionsInput {
            certificate_arn: self.certificate_arn,
            options: self.options,
        })
    }
}