#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListAssetsInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub asset_type: ::std::option::Option<::std::string::String>,
pub updated_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub updated_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub next_token: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
}
impl ListAssetsInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn asset_type(&self) -> ::std::option::Option<&str> {
self.asset_type.as_deref()
}
pub fn updated_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_after.as_ref()
}
pub fn updated_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_before.as_ref()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
}
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) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) asset_type: ::std::option::Option<::std::string::String>,
pub(crate) updated_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
}
impl ListAssetsInputBuilder {
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
pub fn asset_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.asset_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_asset_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.asset_type = input;
self
}
pub fn get_asset_type(&self) -> &::std::option::Option<::std::string::String> {
&self.asset_type
}
pub fn updated_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_after = ::std::option::Option::Some(input);
self
}
pub fn set_updated_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_after = input;
self
}
pub fn get_updated_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_after
}
pub fn updated_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_before = ::std::option::Option::Some(input);
self
}
pub fn set_updated_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_before = input;
self
}
pub fn get_updated_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_before
}
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 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 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 {
agent_space_id: self.agent_space_id,
asset_type: self.asset_type,
updated_after: self.updated_after,
updated_before: self.updated_before,
next_token: self.next_token,
max_results: self.max_results,
})
}
}