#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateOutpostInput {
pub outpost_id: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub supported_hardware_type: ::std::option::Option<crate::types::SupportedHardwareType>,
}
impl UpdateOutpostInput {
pub fn outpost_id(&self) -> ::std::option::Option<&str> {
self.outpost_id.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn supported_hardware_type(&self) -> ::std::option::Option<&crate::types::SupportedHardwareType> {
self.supported_hardware_type.as_ref()
}
}
impl UpdateOutpostInput {
pub fn builder() -> crate::operation::update_outpost::builders::UpdateOutpostInputBuilder {
crate::operation::update_outpost::builders::UpdateOutpostInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateOutpostInputBuilder {
pub(crate) outpost_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) supported_hardware_type: ::std::option::Option<crate::types::SupportedHardwareType>,
}
impl UpdateOutpostInputBuilder {
pub fn outpost_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.outpost_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_outpost_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.outpost_id = input;
self
}
pub fn get_outpost_id(&self) -> &::std::option::Option<::std::string::String> {
&self.outpost_id
}
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 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 supported_hardware_type(mut self, input: crate::types::SupportedHardwareType) -> Self {
self.supported_hardware_type = ::std::option::Option::Some(input);
self
}
pub fn set_supported_hardware_type(mut self, input: ::std::option::Option<crate::types::SupportedHardwareType>) -> Self {
self.supported_hardware_type = input;
self
}
pub fn get_supported_hardware_type(&self) -> &::std::option::Option<crate::types::SupportedHardwareType> {
&self.supported_hardware_type
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_outpost::UpdateOutpostInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_outpost::UpdateOutpostInput {
outpost_id: self.outpost_id,
name: self.name,
description: self.description,
supported_hardware_type: self.supported_hardware_type,
})
}
}