#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteGrantInput {
pub grant_arn: ::std::option::Option<::std::string::String>,
pub status_reason: ::std::option::Option<::std::string::String>,
pub version: ::std::option::Option<::std::string::String>,
}
impl DeleteGrantInput {
pub fn grant_arn(&self) -> ::std::option::Option<&str> {
self.grant_arn.as_deref()
}
pub fn status_reason(&self) -> ::std::option::Option<&str> {
self.status_reason.as_deref()
}
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
}
impl DeleteGrantInput {
pub fn builder() -> crate::operation::delete_grant::builders::DeleteGrantInputBuilder {
crate::operation::delete_grant::builders::DeleteGrantInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteGrantInputBuilder {
pub(crate) grant_arn: ::std::option::Option<::std::string::String>,
pub(crate) status_reason: ::std::option::Option<::std::string::String>,
pub(crate) version: ::std::option::Option<::std::string::String>,
}
impl DeleteGrantInputBuilder {
pub fn grant_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.grant_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_grant_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.grant_arn = input;
self
}
pub fn get_grant_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.grant_arn
}
pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_reason = ::std::option::Option::Some(input.into());
self
}
pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_reason = input;
self
}
pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.status_reason
}
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_grant::DeleteGrantInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_grant::DeleteGrantInput {
grant_arn: self.grant_arn,
status_reason: self.status_reason,
version: self.version,
})
}
}