#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct DescribeGroupsInput {
pub authentication_token: ::std::option::Option<::std::string::String>,
pub search_query: ::std::option::Option<::std::string::String>,
pub organization_id: ::std::option::Option<::std::string::String>,
pub marker: ::std::option::Option<::std::string::String>,
pub limit: ::std::option::Option<i32>,
}
impl DescribeGroupsInput {
pub fn authentication_token(&self) -> ::std::option::Option<&str> {
self.authentication_token.as_deref()
}
pub fn search_query(&self) -> ::std::option::Option<&str> {
self.search_query.as_deref()
}
pub fn organization_id(&self) -> ::std::option::Option<&str> {
self.organization_id.as_deref()
}
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
pub fn limit(&self) -> ::std::option::Option<i32> {
self.limit
}
}
impl ::std::fmt::Debug for DescribeGroupsInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeGroupsInput");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("search_query", &"*** Sensitive Data Redacted ***");
formatter.field("organization_id", &self.organization_id);
formatter.field("marker", &self.marker);
formatter.field("limit", &self.limit);
formatter.finish()
}
}
impl DescribeGroupsInput {
pub fn builder() -> crate::operation::describe_groups::builders::DescribeGroupsInputBuilder {
crate::operation::describe_groups::builders::DescribeGroupsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DescribeGroupsInputBuilder {
pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
pub(crate) search_query: ::std::option::Option<::std::string::String>,
pub(crate) organization_id: ::std::option::Option<::std::string::String>,
pub(crate) marker: ::std::option::Option<::std::string::String>,
pub(crate) limit: ::std::option::Option<i32>,
}
impl DescribeGroupsInputBuilder {
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 search_query(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.search_query = ::std::option::Option::Some(input.into());
self
}
pub fn set_search_query(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.search_query = input;
self
}
pub fn get_search_query(&self) -> &::std::option::Option<::std::string::String> {
&self.search_query
}
pub fn organization_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.organization_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_organization_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.organization_id = input;
self
}
pub fn get_organization_id(&self) -> &::std::option::Option<::std::string::String> {
&self.organization_id
}
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 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 build(
self,
) -> ::std::result::Result<crate::operation::describe_groups::DescribeGroupsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_groups::DescribeGroupsInput {
authentication_token: self.authentication_token,
search_query: self.search_query,
organization_id: self.organization_id,
marker: self.marker,
limit: self.limit,
})
}
}
impl ::std::fmt::Debug for DescribeGroupsInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeGroupsInputBuilder");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("search_query", &"*** Sensitive Data Redacted ***");
formatter.field("organization_id", &self.organization_id);
formatter.field("marker", &self.marker);
formatter.field("limit", &self.limit);
formatter.finish()
}
}