aws-sdk-mailmanager 1.84.0

AWS SDK for MailManager
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 GetIngressPointInput {
    /// <p>The identifier of an ingress endpoint.</p>
    pub ingress_point_id: ::std::option::Option<::std::string::String>,
    /// <p>Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.</p>
    pub include_trust_store_contents: ::std::option::Option<crate::types::TrustStoreResponseOption>,
}
impl GetIngressPointInput {
    /// <p>The identifier of an ingress endpoint.</p>
    pub fn ingress_point_id(&self) -> ::std::option::Option<&str> {
        self.ingress_point_id.as_deref()
    }
    /// <p>Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.</p>
    pub fn include_trust_store_contents(&self) -> ::std::option::Option<&crate::types::TrustStoreResponseOption> {
        self.include_trust_store_contents.as_ref()
    }
}
impl GetIngressPointInput {
    /// Creates a new builder-style object to manufacture [`GetIngressPointInput`](crate::operation::get_ingress_point::GetIngressPointInput).
    pub fn builder() -> crate::operation::get_ingress_point::builders::GetIngressPointInputBuilder {
        crate::operation::get_ingress_point::builders::GetIngressPointInputBuilder::default()
    }
}

/// A builder for [`GetIngressPointInput`](crate::operation::get_ingress_point::GetIngressPointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIngressPointInputBuilder {
    pub(crate) ingress_point_id: ::std::option::Option<::std::string::String>,
    pub(crate) include_trust_store_contents: ::std::option::Option<crate::types::TrustStoreResponseOption>,
}
impl GetIngressPointInputBuilder {
    /// <p>The identifier of an ingress endpoint.</p>
    /// This field is required.
    pub fn ingress_point_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ingress_point_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of an ingress endpoint.</p>
    pub fn set_ingress_point_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ingress_point_id = input;
        self
    }
    /// <p>The identifier of an ingress endpoint.</p>
    pub fn get_ingress_point_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.ingress_point_id
    }
    /// <p>Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.</p>
    pub fn include_trust_store_contents(mut self, input: crate::types::TrustStoreResponseOption) -> Self {
        self.include_trust_store_contents = ::std::option::Option::Some(input);
        self
    }
    /// <p>Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.</p>
    pub fn set_include_trust_store_contents(mut self, input: ::std::option::Option<crate::types::TrustStoreResponseOption>) -> Self {
        self.include_trust_store_contents = input;
        self
    }
    /// <p>Whether to include the trust store contents in the response. Use INCLUDE to retrieve trust store certificate and CRL contents.</p>
    pub fn get_include_trust_store_contents(&self) -> &::std::option::Option<crate::types::TrustStoreResponseOption> {
        &self.include_trust_store_contents
    }
    /// Consumes the builder and constructs a [`GetIngressPointInput`](crate::operation::get_ingress_point::GetIngressPointInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_ingress_point::GetIngressPointInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_ingress_point::GetIngressPointInput {
            ingress_point_id: self.ingress_point_id,
            include_trust_store_contents: self.include_trust_store_contents,
        })
    }
}