aws-sdk-mailmanager 1.85.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 DeleteRelayInput {
    /// <p>The unique relay identifier.</p>
    pub relay_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRelayInput {
    /// <p>The unique relay identifier.</p>
    pub fn relay_id(&self) -> ::std::option::Option<&str> {
        self.relay_id.as_deref()
    }
}
impl DeleteRelayInput {
    /// Creates a new builder-style object to manufacture [`DeleteRelayInput`](crate::operation::delete_relay::DeleteRelayInput).
    pub fn builder() -> crate::operation::delete_relay::builders::DeleteRelayInputBuilder {
        crate::operation::delete_relay::builders::DeleteRelayInputBuilder::default()
    }
}

/// A builder for [`DeleteRelayInput`](crate::operation::delete_relay::DeleteRelayInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRelayInputBuilder {
    pub(crate) relay_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRelayInputBuilder {
    /// <p>The unique relay identifier.</p>
    /// This field is required.
    pub fn relay_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.relay_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique relay identifier.</p>
    pub fn set_relay_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.relay_id = input;
        self
    }
    /// <p>The unique relay identifier.</p>
    pub fn get_relay_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.relay_id
    }
    /// Consumes the builder and constructs a [`DeleteRelayInput`](crate::operation::delete_relay::DeleteRelayInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_relay::DeleteRelayInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_relay::DeleteRelayInput { relay_id: self.relay_id })
    }
}