#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteApplicationGrantInput {
pub application_arn: ::std::option::Option<::std::string::String>,
pub grant_type: ::std::option::Option<crate::types::GrantType>,
}
impl DeleteApplicationGrantInput {
pub fn application_arn(&self) -> ::std::option::Option<&str> {
self.application_arn.as_deref()
}
pub fn grant_type(&self) -> ::std::option::Option<&crate::types::GrantType> {
self.grant_type.as_ref()
}
}
impl DeleteApplicationGrantInput {
pub fn builder() -> crate::operation::delete_application_grant::builders::DeleteApplicationGrantInputBuilder {
crate::operation::delete_application_grant::builders::DeleteApplicationGrantInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteApplicationGrantInputBuilder {
pub(crate) application_arn: ::std::option::Option<::std::string::String>,
pub(crate) grant_type: ::std::option::Option<crate::types::GrantType>,
}
impl DeleteApplicationGrantInputBuilder {
pub fn application_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_application_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_arn = input;
self
}
pub fn get_application_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.application_arn
}
pub fn grant_type(mut self, input: crate::types::GrantType) -> Self {
self.grant_type = ::std::option::Option::Some(input);
self
}
pub fn set_grant_type(mut self, input: ::std::option::Option<crate::types::GrantType>) -> Self {
self.grant_type = input;
self
}
pub fn get_grant_type(&self) -> &::std::option::Option<crate::types::GrantType> {
&self.grant_type
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::delete_application_grant::DeleteApplicationGrantInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::delete_application_grant::DeleteApplicationGrantInput {
application_arn: self.application_arn,
grant_type: self.grant_type,
})
}
}