// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetInvitation`](crate::operation::get_invitation::builders::GetInvitationFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`environment_arn(impl Into<String>)`](crate::operation::get_invitation::builders::GetInvitationFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_invitation::builders::GetInvitationFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of the environment the invitation is for.</p><br>
/// - [`invitee_account_id(impl Into<String>)`](crate::operation::get_invitation::builders::GetInvitationFluentBuilder::invitee_account_id) / [`set_invitee_account_id(Option<String>)`](crate::operation::get_invitation::builders::GetInvitationFluentBuilder::set_invitee_account_id):<br>required: **false**<br><p>The AWS account ID of the invited account. Supply this value when you are the environment owner reading a specific invitee's invitation. Omit it when you are the invited account reading your own invitation for the environment.</p><br>
/// - On success, responds with [`GetInvitationOutput`](crate::operation::get_invitation::GetInvitationOutput) with field(s):
/// - [`environment_arn(Option<String>)`](crate::operation::get_invitation::GetInvitationOutput::environment_arn): <p>The ARN of the environment that extended the invitation to you. Use this value to identify the environment or owner account inviting you.</p>
/// - [`invitee_account_id(String)`](crate::operation::get_invitation::GetInvitationOutput::invitee_account_id): <p>The ID of the invited AWS account.</p>
/// - [`status(InvitationStatus)`](crate::operation::get_invitation::GetInvitationOutput::status): <p>The current lifecycle state of the invitation.</p>
/// - [`role_arn(Option<String>)`](crate::operation::get_invitation::GetInvitationOutput::role_arn): <p>The ARN of the role that AWS Assurance assumes in the invitee account. Present only when status is ACTIVE.</p>
/// - [`created_at(DateTime)`](crate::operation::get_invitation::GetInvitationOutput::created_at): <p>The time when you created the invitation. If you called <code>CreateInvitation</code> again after the invitation was rejected, revoked, or expired, this is the time of your most recent call.</p>
/// - [`expires_at(Option<DateTime>)`](crate::operation::get_invitation::GetInvitationOutput::expires_at): <p>The time when the invitation expires if not accepted.</p>
/// - [`updated_at(Option<DateTime>)`](crate::operation::get_invitation::GetInvitationOutput::updated_at): <p>The time when the invitation last changed state (accept, reject, or revoke).</p>
/// - On failure, responds with [`SdkError<GetInvitationError>`](crate::operation::get_invitation::GetInvitationError)
pub fn get_invitation(&self) -> crate::operation::get_invitation::builders::GetInvitationFluentBuilder {
crate::operation::get_invitation::builders::GetInvitationFluentBuilder::new(self.handle.clone())
}
}