#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateOutpostInput {
#[doc(hidden)]
pub outpost_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
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 Into<std::string::String>) -> Self {
self.outpost_id = 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 name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn supported_hardware_type(mut self, input: crate::types::SupportedHardwareType) -> Self {
self.supported_hardware_type = 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 build(
self,
) -> Result<
crate::operation::update_outpost::UpdateOutpostInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_outpost::UpdateOutpostInput {
outpost_id: self.outpost_id,
name: self.name,
description: self.description,
supported_hardware_type: self.supported_hardware_type,
})
}
}