aws-sdk-dataexchange 1.102.0

AWS SDK for AWS Data Exchange
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDataGrantInput {
    /// <p>The ID of the data grant to delete.</p>
    pub data_grant_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDataGrantInput {
    /// <p>The ID of the data grant to delete.</p>
    pub fn data_grant_id(&self) -> ::std::option::Option<&str> {
        self.data_grant_id.as_deref()
    }
}
impl DeleteDataGrantInput {
    /// Creates a new builder-style object to manufacture [`DeleteDataGrantInput`](crate::operation::delete_data_grant::DeleteDataGrantInput).
    pub fn builder() -> crate::operation::delete_data_grant::builders::DeleteDataGrantInputBuilder {
        crate::operation::delete_data_grant::builders::DeleteDataGrantInputBuilder::default()
    }
}

/// A builder for [`DeleteDataGrantInput`](crate::operation::delete_data_grant::DeleteDataGrantInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDataGrantInputBuilder {
    pub(crate) data_grant_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDataGrantInputBuilder {
    /// <p>The ID of the data grant to delete.</p>
    /// This field is required.
    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
    }
    /// <p>The ID of the data grant to delete.</p>
    pub fn set_data_grant_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_grant_id = input;
        self
    }
    /// <p>The ID of the data grant to delete.</p>
    pub fn get_data_grant_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_grant_id
    }
    /// Consumes the builder and constructs a [`DeleteDataGrantInput`](crate::operation::delete_data_grant::DeleteDataGrantInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_data_grant::DeleteDataGrantInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_data_grant::DeleteDataGrantInput {
            data_grant_id: self.data_grant_id,
        })
    }
}