#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListAssetsInput {
pub outpost_identifier: ::std::option::Option<::std::string::String>,
pub host_id_filter: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub max_results: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
pub status_filter: ::std::option::Option<::std::vec::Vec<crate::types::AssetState>>,
}
impl ListAssetsInput {
pub fn outpost_identifier(&self) -> ::std::option::Option<&str> {
self.outpost_identifier.as_deref()
}
pub fn host_id_filter(&self) -> &[::std::string::String] {
self.host_id_filter.as_deref().unwrap_or_default()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn status_filter(&self) -> &[crate::types::AssetState] {
self.status_filter.as_deref().unwrap_or_default()
}
}
impl ListAssetsInput {
pub fn builder() -> crate::operation::list_assets::builders::ListAssetsInputBuilder {
crate::operation::list_assets::builders::ListAssetsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListAssetsInputBuilder {
pub(crate) outpost_identifier: ::std::option::Option<::std::string::String>,
pub(crate) host_id_filter: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) status_filter: ::std::option::Option<::std::vec::Vec<crate::types::AssetState>>,
}
impl ListAssetsInputBuilder {
pub fn outpost_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.outpost_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_outpost_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.outpost_identifier = input;
self
}
pub fn get_outpost_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.outpost_identifier
}
pub fn host_id_filter(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.host_id_filter.unwrap_or_default();
v.push(input.into());
self.host_id_filter = ::std::option::Option::Some(v);
self
}
pub fn set_host_id_filter(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.host_id_filter = input;
self
}
pub fn get_host_id_filter(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.host_id_filter
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn status_filter(mut self, input: crate::types::AssetState) -> Self {
let mut v = self.status_filter.unwrap_or_default();
v.push(input);
self.status_filter = ::std::option::Option::Some(v);
self
}
pub fn set_status_filter(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssetState>>) -> Self {
self.status_filter = input;
self
}
pub fn get_status_filter(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssetState>> {
&self.status_filter
}
pub fn build(self) -> ::std::result::Result<crate::operation::list_assets::ListAssetsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::list_assets::ListAssetsInput {
outpost_identifier: self.outpost_identifier,
host_id_filter: self.host_id_filter,
max_results: self.max_results,
next_token: self.next_token,
status_filter: self.status_filter,
})
}
}