#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RejectLinkInput {
pub gateway_id: ::std::option::Option<::std::string::String>,
pub link_id: ::std::option::Option<::std::string::String>,
}
impl RejectLinkInput {
pub fn gateway_id(&self) -> ::std::option::Option<&str> {
self.gateway_id.as_deref()
}
pub fn link_id(&self) -> ::std::option::Option<&str> {
self.link_id.as_deref()
}
}
impl RejectLinkInput {
pub fn builder() -> crate::operation::reject_link::builders::RejectLinkInputBuilder {
crate::operation::reject_link::builders::RejectLinkInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RejectLinkInputBuilder {
pub(crate) gateway_id: ::std::option::Option<::std::string::String>,
pub(crate) link_id: ::std::option::Option<::std::string::String>,
}
impl RejectLinkInputBuilder {
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
}
pub fn set_gateway_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.gateway_id = input;
self
}
pub fn get_gateway_id(&self) -> &::std::option::Option<::std::string::String> {
&self.gateway_id
}
pub fn link_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.link_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_link_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.link_id = input;
self
}
pub fn get_link_id(&self) -> &::std::option::Option<::std::string::String> {
&self.link_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::reject_link::RejectLinkInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::reject_link::RejectLinkInput {
gateway_id: self.gateway_id,
link_id: self.link_id,
})
}
}