#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDataGrantInput {
pub data_grant_id: ::std::option::Option<::std::string::String>,
}
impl GetDataGrantInput {
pub fn data_grant_id(&self) -> ::std::option::Option<&str> {
self.data_grant_id.as_deref()
}
}
impl GetDataGrantInput {
pub fn builder() -> crate::operation::get_data_grant::builders::GetDataGrantInputBuilder {
crate::operation::get_data_grant::builders::GetDataGrantInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDataGrantInputBuilder {
pub(crate) data_grant_id: ::std::option::Option<::std::string::String>,
}
impl GetDataGrantInputBuilder {
pub fn data_grant_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_grant_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_grant_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_grant_id = input;
self
}
pub fn get_data_grant_id(&self) -> &::std::option::Option<::std::string::String> {
&self.data_grant_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_data_grant::GetDataGrantInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_data_grant::GetDataGrantInput {
data_grant_id: self.data_grant_id,
})
}
}