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 UpdateAcmeEndpointInput {
    /// <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
    pub acme_endpoint_arn: ::std::option::Option<::std::string::String>,
    /// <p>The updated authorization behavior.</p>
    pub authorization_behavior: ::std::option::Option<crate::types::AcmeAuthorizationBehavior>,
    /// <p>The updated contact requirement.</p>
    pub contact: ::std::option::Option<crate::types::AcmeContact>,
    /// <p>The updated certificate authority configuration.</p>
    pub certificate_authority: ::std::option::Option<crate::types::CertificateAuthority>,
}
impl UpdateAcmeEndpointInput {
    /// <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
    pub fn acme_endpoint_arn(&self) -> ::std::option::Option<&str> {
        self.acme_endpoint_arn.as_deref()
    }
    /// <p>The updated authorization behavior.</p>
    pub fn authorization_behavior(&self) -> ::std::option::Option<&crate::types::AcmeAuthorizationBehavior> {
        self.authorization_behavior.as_ref()
    }
    /// <p>The updated contact requirement.</p>
    pub fn contact(&self) -> ::std::option::Option<&crate::types::AcmeContact> {
        self.contact.as_ref()
    }
    /// <p>The updated certificate authority configuration.</p>
    pub fn certificate_authority(&self) -> ::std::option::Option<&crate::types::CertificateAuthority> {
        self.certificate_authority.as_ref()
    }
}
impl UpdateAcmeEndpointInput {
    /// Creates a new builder-style object to manufacture [`UpdateAcmeEndpointInput`](crate::operation::update_acme_endpoint::UpdateAcmeEndpointInput).
    pub fn builder() -> crate::operation::update_acme_endpoint::builders::UpdateAcmeEndpointInputBuilder {
        crate::operation::update_acme_endpoint::builders::UpdateAcmeEndpointInputBuilder::default()
    }
}

/// A builder for [`UpdateAcmeEndpointInput`](crate::operation::update_acme_endpoint::UpdateAcmeEndpointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAcmeEndpointInputBuilder {
    pub(crate) acme_endpoint_arn: ::std::option::Option<::std::string::String>,
    pub(crate) authorization_behavior: ::std::option::Option<crate::types::AcmeAuthorizationBehavior>,
    pub(crate) contact: ::std::option::Option<crate::types::AcmeContact>,
    pub(crate) certificate_authority: ::std::option::Option<crate::types::CertificateAuthority>,
}
impl UpdateAcmeEndpointInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
    /// This field is required.
    pub fn acme_endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.acme_endpoint_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
    pub fn set_acme_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.acme_endpoint_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
    pub fn get_acme_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.acme_endpoint_arn
    }
    /// <p>The updated authorization behavior.</p>
    pub fn authorization_behavior(mut self, input: crate::types::AcmeAuthorizationBehavior) -> Self {
        self.authorization_behavior = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated authorization behavior.</p>
    pub fn set_authorization_behavior(mut self, input: ::std::option::Option<crate::types::AcmeAuthorizationBehavior>) -> Self {
        self.authorization_behavior = input;
        self
    }
    /// <p>The updated authorization behavior.</p>
    pub fn get_authorization_behavior(&self) -> &::std::option::Option<crate::types::AcmeAuthorizationBehavior> {
        &self.authorization_behavior
    }
    /// <p>The updated contact requirement.</p>
    pub fn contact(mut self, input: crate::types::AcmeContact) -> Self {
        self.contact = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated contact requirement.</p>
    pub fn set_contact(mut self, input: ::std::option::Option<crate::types::AcmeContact>) -> Self {
        self.contact = input;
        self
    }
    /// <p>The updated contact requirement.</p>
    pub fn get_contact(&self) -> &::std::option::Option<crate::types::AcmeContact> {
        &self.contact
    }
    /// <p>The updated certificate authority configuration.</p>
    pub fn certificate_authority(mut self, input: crate::types::CertificateAuthority) -> Self {
        self.certificate_authority = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated certificate authority configuration.</p>
    pub fn set_certificate_authority(mut self, input: ::std::option::Option<crate::types::CertificateAuthority>) -> Self {
        self.certificate_authority = input;
        self
    }
    /// <p>The updated certificate authority configuration.</p>
    pub fn get_certificate_authority(&self) -> &::std::option::Option<crate::types::CertificateAuthority> {
        &self.certificate_authority
    }
    /// Consumes the builder and constructs a [`UpdateAcmeEndpointInput`](crate::operation::update_acme_endpoint::UpdateAcmeEndpointInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_acme_endpoint::UpdateAcmeEndpointInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_acme_endpoint::UpdateAcmeEndpointInput {
            acme_endpoint_arn: self.acme_endpoint_arn,
            authorization_behavior: self.authorization_behavior,
            contact: self.contact,
            certificate_authority: self.certificate_authority,
        })
    }
}