#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListHubsInput {
pub name_contains: ::std::option::Option<::std::string::String>,
pub creation_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub creation_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub sort_by: ::std::option::Option<crate::types::HubSortBy>,
pub sort_order: ::std::option::Option<crate::types::SortOrder>,
pub max_results: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
}
impl ListHubsInput {
pub fn name_contains(&self) -> ::std::option::Option<&str> {
self.name_contains.as_deref()
}
pub fn creation_time_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time_before.as_ref()
}
pub fn creation_time_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time_after.as_ref()
}
pub fn last_modified_time_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time_before.as_ref()
}
pub fn last_modified_time_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time_after.as_ref()
}
pub fn sort_by(&self) -> ::std::option::Option<&crate::types::HubSortBy> {
self.sort_by.as_ref()
}
pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortOrder> {
self.sort_order.as_ref()
}
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()
}
}
impl ListHubsInput {
pub fn builder() -> crate::operation::list_hubs::builders::ListHubsInputBuilder {
crate::operation::list_hubs::builders::ListHubsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListHubsInputBuilder {
pub(crate) name_contains: ::std::option::Option<::std::string::String>,
pub(crate) creation_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) creation_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) sort_by: ::std::option::Option<crate::types::HubSortBy>,
pub(crate) sort_order: ::std::option::Option<crate::types::SortOrder>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl ListHubsInputBuilder {
pub fn name_contains(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name_contains = ::std::option::Option::Some(input.into());
self
}
pub fn set_name_contains(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name_contains = input;
self
}
pub fn get_name_contains(&self) -> &::std::option::Option<::std::string::String> {
&self.name_contains
}
pub fn creation_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time_before = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time_before = input;
self
}
pub fn get_creation_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time_before
}
pub fn creation_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time_after = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time_after = input;
self
}
pub fn get_creation_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time_after
}
pub fn last_modified_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time_before = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time_before = input;
self
}
pub fn get_last_modified_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time_before
}
pub fn last_modified_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time_after = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time_after = input;
self
}
pub fn get_last_modified_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time_after
}
pub fn sort_by(mut self, input: crate::types::HubSortBy) -> Self {
self.sort_by = ::std::option::Option::Some(input);
self
}
pub fn set_sort_by(mut self, input: ::std::option::Option<crate::types::HubSortBy>) -> Self {
self.sort_by = input;
self
}
pub fn get_sort_by(&self) -> &::std::option::Option<crate::types::HubSortBy> {
&self.sort_by
}
pub fn sort_order(mut self, input: crate::types::SortOrder) -> Self {
self.sort_order = ::std::option::Option::Some(input);
self
}
pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortOrder>) -> Self {
self.sort_order = input;
self
}
pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortOrder> {
&self.sort_order
}
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 build(self) -> ::std::result::Result<crate::operation::list_hubs::ListHubsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::list_hubs::ListHubsInput {
name_contains: self.name_contains,
creation_time_before: self.creation_time_before,
creation_time_after: self.creation_time_after,
last_modified_time_before: self.last_modified_time_before,
last_modified_time_after: self.last_modified_time_after,
sort_by: self.sort_by,
sort_order: self.sort_order,
max_results: self.max_results,
next_token: self.next_token,
})
}
}