aws_sdk_dataexchange/client/accept_data_grant.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AcceptDataGrant`](crate::operation::accept_data_grant::builders::AcceptDataGrantFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`data_grant_arn(impl Into<String>)`](crate::operation::accept_data_grant::builders::AcceptDataGrantFluentBuilder::data_grant_arn) / [`set_data_grant_arn(Option<String>)`](crate::operation::accept_data_grant::builders::AcceptDataGrantFluentBuilder::set_data_grant_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the data grant to accept.</p><br>
/// - On success, responds with [`AcceptDataGrantOutput`](crate::operation::accept_data_grant::AcceptDataGrantOutput) with field(s):
/// - [`name(String)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::name): <p>The name of the accepted data grant.</p>
/// - [`sender_principal(Option<String>)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::sender_principal): <p>The Amazon Web Services account ID of the data grant sender.</p>
/// - [`receiver_principal(String)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::receiver_principal): <p>The Amazon Web Services account ID of the data grant receiver.</p>
/// - [`description(Option<String>)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::description): <p>The description of the accepted data grant.</p>
/// - [`acceptance_state(DataGrantAcceptanceState)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::acceptance_state): <p>The acceptance state of the data grant.</p>
/// - [`accepted_at(Option<DateTime>)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::accepted_at): <p>The timestamp of when the data grant was accepted.</p>
/// - [`ends_at(Option<DateTime>)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::ends_at): <p>The timestamp of when access to the associated data set ends.</p>
/// - [`grant_distribution_scope(GrantDistributionScope)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::grant_distribution_scope): <p>The distribution scope for the data grant.</p>
/// - [`data_set_id(String)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::data_set_id): <p>The ID of the data set associated to the data grant.</p>
/// - [`id(String)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::id): <p>The ID of the data grant.</p>
/// - [`arn(String)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::arn): <p>The Amazon Resource Name (ARN) of the accepted data grant.</p>
/// - [`created_at(DateTime)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::created_at): <p>The timestamp of when the data grant was created.</p>
/// - [`updated_at(DateTime)`](crate::operation::accept_data_grant::AcceptDataGrantOutput::updated_at): <p>The timestamp of when the data grant was last updated.</p>
/// - On failure, responds with [`SdkError<AcceptDataGrantError>`](crate::operation::accept_data_grant::AcceptDataGrantError)
pub fn accept_data_grant(&self) -> crate::operation::accept_data_grant::builders::AcceptDataGrantFluentBuilder {
crate::operation::accept_data_grant::builders::AcceptDataGrantFluentBuilder::new(self.handle.clone())
}
}