#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetResourcesInput {
pub authentication_token: ::std::option::Option<::std::string::String>,
pub user_id: ::std::option::Option<::std::string::String>,
pub collection_type: ::std::option::Option<crate::types::ResourceCollectionType>,
pub limit: ::std::option::Option<i32>,
pub marker: ::std::option::Option<::std::string::String>,
}
impl GetResourcesInput {
pub fn authentication_token(&self) -> ::std::option::Option<&str> {
self.authentication_token.as_deref()
}
pub fn user_id(&self) -> ::std::option::Option<&str> {
self.user_id.as_deref()
}
pub fn collection_type(&self) -> ::std::option::Option<&crate::types::ResourceCollectionType> {
self.collection_type.as_ref()
}
pub fn limit(&self) -> ::std::option::Option<i32> {
self.limit
}
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
}
impl ::std::fmt::Debug for GetResourcesInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetResourcesInput");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("user_id", &self.user_id);
formatter.field("collection_type", &self.collection_type);
formatter.field("limit", &self.limit);
formatter.field("marker", &self.marker);
formatter.finish()
}
}
impl GetResourcesInput {
pub fn builder() -> crate::operation::get_resources::builders::GetResourcesInputBuilder {
crate::operation::get_resources::builders::GetResourcesInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetResourcesInputBuilder {
pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
pub(crate) collection_type: ::std::option::Option<crate::types::ResourceCollectionType>,
pub(crate) limit: ::std::option::Option<i32>,
pub(crate) marker: ::std::option::Option<::std::string::String>,
}
impl GetResourcesInputBuilder {
pub fn authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authentication_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authentication_token = input;
self
}
pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
&self.authentication_token
}
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_id = input;
self
}
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.user_id
}
pub fn collection_type(mut self, input: crate::types::ResourceCollectionType) -> Self {
self.collection_type = ::std::option::Option::Some(input);
self
}
pub fn set_collection_type(mut self, input: ::std::option::Option<crate::types::ResourceCollectionType>) -> Self {
self.collection_type = input;
self
}
pub fn get_collection_type(&self) -> &::std::option::Option<crate::types::ResourceCollectionType> {
&self.collection_type
}
pub fn limit(mut self, input: i32) -> Self {
self.limit = ::std::option::Option::Some(input);
self
}
pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.limit = input;
self
}
pub fn get_limit(&self) -> &::std::option::Option<i32> {
&self.limit
}
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_resources::GetResourcesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_resources::GetResourcesInput {
authentication_token: self.authentication_token,
user_id: self.user_id,
collection_type: self.collection_type,
limit: self.limit,
marker: self.marker,
})
}
}
impl ::std::fmt::Debug for GetResourcesInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetResourcesInputBuilder");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("user_id", &self.user_id);
formatter.field("collection_type", &self.collection_type);
formatter.field("limit", &self.limit);
formatter.field("marker", &self.marker);
formatter.finish()
}
}