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