aws-sdk-iam 1.109.0

AWS SDK for AWS Identity and Access Management
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 SendDelegationTokenInput {
    /// <p>The unique identifier of the delegation request for which to send the token.</p>
    pub delegation_request_id: ::std::option::Option<::std::string::String>,
}
impl SendDelegationTokenInput {
    /// <p>The unique identifier of the delegation request for which to send the token.</p>
    pub fn delegation_request_id(&self) -> ::std::option::Option<&str> {
        self.delegation_request_id.as_deref()
    }
}
impl SendDelegationTokenInput {
    /// Creates a new builder-style object to manufacture [`SendDelegationTokenInput`](crate::operation::send_delegation_token::SendDelegationTokenInput).
    pub fn builder() -> crate::operation::send_delegation_token::builders::SendDelegationTokenInputBuilder {
        crate::operation::send_delegation_token::builders::SendDelegationTokenInputBuilder::default()
    }
}

/// A builder for [`SendDelegationTokenInput`](crate::operation::send_delegation_token::SendDelegationTokenInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SendDelegationTokenInputBuilder {
    pub(crate) delegation_request_id: ::std::option::Option<::std::string::String>,
}
impl SendDelegationTokenInputBuilder {
    /// <p>The unique identifier of the delegation request for which to send the token.</p>
    /// This field is required.
    pub fn delegation_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.delegation_request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the delegation request for which to send the token.</p>
    pub fn set_delegation_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.delegation_request_id = input;
        self
    }
    /// <p>The unique identifier of the delegation request for which to send the token.</p>
    pub fn get_delegation_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.delegation_request_id
    }
    /// Consumes the builder and constructs a [`SendDelegationTokenInput`](crate::operation::send_delegation_token::SendDelegationTokenInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::send_delegation_token::SendDelegationTokenInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::send_delegation_token::SendDelegationTokenInput {
            delegation_request_id: self.delegation_request_id,
        })
    }
}