#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Outpost {
#[doc(hidden)]
pub outpost_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub outpost_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub capacity_in_bytes: i64,
}
impl Outpost {
pub fn outpost_arn(&self) -> std::option::Option<&str> {
self.outpost_arn.as_deref()
}
pub fn outpost_id(&self) -> std::option::Option<&str> {
self.outpost_id.as_deref()
}
pub fn owner_id(&self) -> std::option::Option<&str> {
self.owner_id.as_deref()
}
pub fn capacity_in_bytes(&self) -> i64 {
self.capacity_in_bytes
}
}
impl Outpost {
pub fn builder() -> crate::types::builders::OutpostBuilder {
crate::types::builders::OutpostBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct OutpostBuilder {
pub(crate) outpost_arn: std::option::Option<std::string::String>,
pub(crate) outpost_id: std::option::Option<std::string::String>,
pub(crate) owner_id: std::option::Option<std::string::String>,
pub(crate) capacity_in_bytes: std::option::Option<i64>,
}
impl OutpostBuilder {
pub fn outpost_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.outpost_arn = Some(input.into());
self
}
pub fn set_outpost_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.outpost_arn = input;
self
}
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 owner_id(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_id = Some(input.into());
self
}
pub fn set_owner_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.owner_id = input;
self
}
pub fn capacity_in_bytes(mut self, input: i64) -> Self {
self.capacity_in_bytes = Some(input);
self
}
pub fn set_capacity_in_bytes(mut self, input: std::option::Option<i64>) -> Self {
self.capacity_in_bytes = input;
self
}
pub fn build(self) -> crate::types::Outpost {
crate::types::Outpost {
outpost_arn: self.outpost_arn,
outpost_id: self.outpost_id,
owner_id: self.owner_id,
capacity_in_bytes: self.capacity_in_bytes.unwrap_or_default(),
}
}
}