1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// 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,
})
}
}