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