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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// 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 CreateGroupProfileInput {
/// <p>The identifier of the Amazon DataZone domain in which the group profile is created.</p>
pub domain_identifier: ::std::option::Option<::std::string::String>,
/// <p>The identifier of the group for which the group profile is created.</p>
pub group_identifier: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the IAM role that will be associated with the group profile. This role defines the permissions that group members will assume when accessing Amazon DataZone resources.</p>
pub role_principal_arn: ::std::option::Option<::std::string::String>,
/// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
pub client_token: ::std::option::Option<::std::string::String>,
}
impl CreateGroupProfileInput {
/// <p>The identifier of the Amazon DataZone domain in which the group profile is created.</p>
pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
self.domain_identifier.as_deref()
}
/// <p>The identifier of the group for which the group profile is created.</p>
pub fn group_identifier(&self) -> ::std::option::Option<&str> {
self.group_identifier.as_deref()
}
/// <p>The ARN of the IAM role that will be associated with the group profile. This role defines the permissions that group members will assume when accessing Amazon DataZone resources.</p>
pub fn role_principal_arn(&self) -> ::std::option::Option<&str> {
self.role_principal_arn.as_deref()
}
/// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl CreateGroupProfileInput {
/// Creates a new builder-style object to manufacture [`CreateGroupProfileInput`](crate::operation::create_group_profile::CreateGroupProfileInput).
pub fn builder() -> crate::operation::create_group_profile::builders::CreateGroupProfileInputBuilder {
crate::operation::create_group_profile::builders::CreateGroupProfileInputBuilder::default()
}
}
/// A builder for [`CreateGroupProfileInput`](crate::operation::create_group_profile::CreateGroupProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateGroupProfileInputBuilder {
pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
pub(crate) group_identifier: ::std::option::Option<::std::string::String>,
pub(crate) role_principal_arn: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl CreateGroupProfileInputBuilder {
/// <p>The identifier of the Amazon DataZone domain in which the group profile is created.</p>
/// This field is required.
pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the Amazon DataZone domain in which the group profile is created.</p>
pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_identifier = input;
self
}
/// <p>The identifier of the Amazon DataZone domain in which the group profile is created.</p>
pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_identifier
}
/// <p>The identifier of the group for which the group profile is created.</p>
pub fn group_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the group for which the group profile is created.</p>
pub fn set_group_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group_identifier = input;
self
}
/// <p>The identifier of the group for which the group profile is created.</p>
pub fn get_group_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.group_identifier
}
/// <p>The ARN of the IAM role that will be associated with the group profile. This role defines the permissions that group members will assume when accessing Amazon DataZone resources.</p>
pub fn role_principal_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role_principal_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the IAM role that will be associated with the group profile. This role defines the permissions that group members will assume when accessing Amazon DataZone resources.</p>
pub fn set_role_principal_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role_principal_arn = input;
self
}
/// <p>The ARN of the IAM role that will be associated with the group profile. This role defines the permissions that group members will assume when accessing Amazon DataZone resources.</p>
pub fn get_role_principal_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.role_principal_arn
}
/// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
/// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// Consumes the builder and constructs a [`CreateGroupProfileInput`](crate::operation::create_group_profile::CreateGroupProfileInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_group_profile::CreateGroupProfileInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_group_profile::CreateGroupProfileInput {
domain_identifier: self.domain_identifier,
group_identifier: self.group_identifier,
role_principal_arn: self.role_principal_arn,
client_token: self.client_token,
})
}
}