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 GetDelegationRequestInput {
    /// <p>The unique identifier of the delegation request to retrieve.</p>
    pub delegation_request_id: ::std::option::Option<::std::string::String>,
    /// <p>Specifies whether to perform a permission check for the delegation request.</p>
    /// <p>If set to true, the <code>GetDelegationRequest</code> API call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.</p>
    /// <p>Setting this parameter to true does not guarantee an answer in the response. See the <code>PermissionCheckStatus</code> and the <code>PermissionCheckResult</code> response attributes for further details.</p>
    pub delegation_permission_check: ::std::option::Option<bool>,
}
impl GetDelegationRequestInput {
    /// <p>The unique identifier of the delegation request to retrieve.</p>
    pub fn delegation_request_id(&self) -> ::std::option::Option<&str> {
        self.delegation_request_id.as_deref()
    }
    /// <p>Specifies whether to perform a permission check for the delegation request.</p>
    /// <p>If set to true, the <code>GetDelegationRequest</code> API call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.</p>
    /// <p>Setting this parameter to true does not guarantee an answer in the response. See the <code>PermissionCheckStatus</code> and the <code>PermissionCheckResult</code> response attributes for further details.</p>
    pub fn delegation_permission_check(&self) -> ::std::option::Option<bool> {
        self.delegation_permission_check
    }
}
impl GetDelegationRequestInput {
    /// Creates a new builder-style object to manufacture [`GetDelegationRequestInput`](crate::operation::get_delegation_request::GetDelegationRequestInput).
    pub fn builder() -> crate::operation::get_delegation_request::builders::GetDelegationRequestInputBuilder {
        crate::operation::get_delegation_request::builders::GetDelegationRequestInputBuilder::default()
    }
}

/// A builder for [`GetDelegationRequestInput`](crate::operation::get_delegation_request::GetDelegationRequestInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDelegationRequestInputBuilder {
    pub(crate) delegation_request_id: ::std::option::Option<::std::string::String>,
    pub(crate) delegation_permission_check: ::std::option::Option<bool>,
}
impl GetDelegationRequestInputBuilder {
    /// <p>The unique identifier of the delegation request to retrieve.</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 to retrieve.</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 to retrieve.</p>
    pub fn get_delegation_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.delegation_request_id
    }
    /// <p>Specifies whether to perform a permission check for the delegation request.</p>
    /// <p>If set to true, the <code>GetDelegationRequest</code> API call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.</p>
    /// <p>Setting this parameter to true does not guarantee an answer in the response. See the <code>PermissionCheckStatus</code> and the <code>PermissionCheckResult</code> response attributes for further details.</p>
    pub fn delegation_permission_check(mut self, input: bool) -> Self {
        self.delegation_permission_check = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether to perform a permission check for the delegation request.</p>
    /// <p>If set to true, the <code>GetDelegationRequest</code> API call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.</p>
    /// <p>Setting this parameter to true does not guarantee an answer in the response. See the <code>PermissionCheckStatus</code> and the <code>PermissionCheckResult</code> response attributes for further details.</p>
    pub fn set_delegation_permission_check(mut self, input: ::std::option::Option<bool>) -> Self {
        self.delegation_permission_check = input;
        self
    }
    /// <p>Specifies whether to perform a permission check for the delegation request.</p>
    /// <p>If set to true, the <code>GetDelegationRequest</code> API call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.</p>
    /// <p>Setting this parameter to true does not guarantee an answer in the response. See the <code>PermissionCheckStatus</code> and the <code>PermissionCheckResult</code> response attributes for further details.</p>
    pub fn get_delegation_permission_check(&self) -> &::std::option::Option<bool> {
        &self.delegation_permission_check
    }
    /// Consumes the builder and constructs a [`GetDelegationRequestInput`](crate::operation::get_delegation_request::GetDelegationRequestInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_delegation_request::GetDelegationRequestInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_delegation_request::GetDelegationRequestInput {
            delegation_request_id: self.delegation_request_id,
            delegation_permission_check: self.delegation_permission_check,
        })
    }
}