aws-sdk-rtbfabric 1.22.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 GetResponderGatewayInput {
    /// <p>The unique identifier of the gateway.</p>
    pub gateway_id: ::std::option::Option<::std::string::String>,
}
impl GetResponderGatewayInput {
    /// <p>The unique identifier of the gateway.</p>
    pub fn gateway_id(&self) -> ::std::option::Option<&str> {
        self.gateway_id.as_deref()
    }
}
impl GetResponderGatewayInput {
    /// Creates a new builder-style object to manufacture [`GetResponderGatewayInput`](crate::operation::get_responder_gateway::GetResponderGatewayInput).
    pub fn builder() -> crate::operation::get_responder_gateway::builders::GetResponderGatewayInputBuilder {
        crate::operation::get_responder_gateway::builders::GetResponderGatewayInputBuilder::default()
    }
}

/// A builder for [`GetResponderGatewayInput`](crate::operation::get_responder_gateway::GetResponderGatewayInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetResponderGatewayInputBuilder {
    pub(crate) gateway_id: ::std::option::Option<::std::string::String>,
}
impl GetResponderGatewayInputBuilder {
    /// <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
    }
    /// Consumes the builder and constructs a [`GetResponderGatewayInput`](crate::operation::get_responder_gateway::GetResponderGatewayInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_responder_gateway::GetResponderGatewayInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_responder_gateway::GetResponderGatewayInput { gateway_id: self.gateway_id })
    }
}