#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetWirelessGatewayOutput {
pub name: ::std::option::Option<::std::string::String>,
pub id: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub lo_ra_wan: ::std::option::Option<crate::types::LoRaWanGateway>,
pub arn: ::std::option::Option<::std::string::String>,
pub thing_name: ::std::option::Option<::std::string::String>,
pub thing_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetWirelessGatewayOutput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn lo_ra_wan(&self) -> ::std::option::Option<&crate::types::LoRaWanGateway> {
self.lo_ra_wan.as_ref()
}
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn thing_name(&self) -> ::std::option::Option<&str> {
self.thing_name.as_deref()
}
pub fn thing_arn(&self) -> ::std::option::Option<&str> {
self.thing_arn.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetWirelessGatewayOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetWirelessGatewayOutput {
pub fn builder() -> crate::operation::get_wireless_gateway::builders::GetWirelessGatewayOutputBuilder {
crate::operation::get_wireless_gateway::builders::GetWirelessGatewayOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetWirelessGatewayOutputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) lo_ra_wan: ::std::option::Option<crate::types::LoRaWanGateway>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) thing_name: ::std::option::Option<::std::string::String>,
pub(crate) thing_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetWirelessGatewayOutputBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn lo_ra_wan(mut self, input: crate::types::LoRaWanGateway) -> Self {
self.lo_ra_wan = ::std::option::Option::Some(input);
self
}
pub fn set_lo_ra_wan(mut self, input: ::std::option::Option<crate::types::LoRaWanGateway>) -> Self {
self.lo_ra_wan = input;
self
}
pub fn get_lo_ra_wan(&self) -> &::std::option::Option<crate::types::LoRaWanGateway> {
&self.lo_ra_wan
}
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn thing_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.thing_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_thing_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.thing_name = input;
self
}
pub fn get_thing_name(&self) -> &::std::option::Option<::std::string::String> {
&self.thing_name
}
pub fn thing_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.thing_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_thing_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.thing_arn = input;
self
}
pub fn get_thing_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.thing_arn
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_wireless_gateway::GetWirelessGatewayOutput {
crate::operation::get_wireless_gateway::GetWirelessGatewayOutput {
name: self.name,
id: self.id,
description: self.description,
lo_ra_wan: self.lo_ra_wan,
arn: self.arn,
thing_name: self.thing_name,
thing_arn: self.thing_arn,
_request_id: self._request_id,
}
}
}