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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Member configuration properties.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Member {
/// <p>The unique identifier of the network to which the member belongs.</p>
pub network_id: ::std::option::Option<::std::string::String>,
/// <p>The unique identifier of the member.</p>
pub id: ::std::option::Option<::std::string::String>,
/// <p>The name of the member.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>An optional description for the member.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.</p>
pub framework_attributes: ::std::option::Option<crate::types::MemberFrameworkAttributes>,
/// <p>Configuration properties for logging events associated with a member.</p>
pub log_publishing_configuration: ::std::option::Option<crate::types::MemberLogPublishingConfiguration>,
/// <p>The status of a member.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a member.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The member has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a member and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The member is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>DELETED</code> - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::MemberStatus>,
/// <p>The date and time that the member was created.</p>
pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Tags assigned to the member. Tags consist of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub kms_key_arn: ::std::option::Option<::std::string::String>,
}
impl Member {
/// <p>The unique identifier of the network to which the member belongs.</p>
pub fn network_id(&self) -> ::std::option::Option<&str> {
self.network_id.as_deref()
}
/// <p>The unique identifier of the member.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The name of the member.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>An optional description for the member.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.</p>
pub fn framework_attributes(&self) -> ::std::option::Option<&crate::types::MemberFrameworkAttributes> {
self.framework_attributes.as_ref()
}
/// <p>Configuration properties for logging events associated with a member.</p>
pub fn log_publishing_configuration(&self) -> ::std::option::Option<&crate::types::MemberLogPublishingConfiguration> {
self.log_publishing_configuration.as_ref()
}
/// <p>The status of a member.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a member.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The member has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a member and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The member is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>DELETED</code> - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::MemberStatus> {
self.status.as_ref()
}
/// <p>The date and time that the member was created.</p>
pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>Tags assigned to the member. Tags consist of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
/// <p>The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn kms_key_arn(&self) -> ::std::option::Option<&str> {
self.kms_key_arn.as_deref()
}
}
impl Member {
/// Creates a new builder-style object to manufacture [`Member`](crate::types::Member).
pub fn builder() -> crate::types::builders::MemberBuilder {
crate::types::builders::MemberBuilder::default()
}
}
/// A builder for [`Member`](crate::types::Member).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MemberBuilder {
pub(crate) network_id: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) framework_attributes: ::std::option::Option<crate::types::MemberFrameworkAttributes>,
pub(crate) log_publishing_configuration: ::std::option::Option<crate::types::MemberLogPublishingConfiguration>,
pub(crate) status: ::std::option::Option<crate::types::MemberStatus>,
pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
}
impl MemberBuilder {
/// <p>The unique identifier of the network to which the member belongs.</p>
pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.network_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the network to which the member belongs.</p>
pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.network_id = input;
self
}
/// <p>The unique identifier of the network to which the member belongs.</p>
pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
&self.network_id
}
/// <p>The unique identifier of the member.</p>
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the member.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The unique identifier of the member.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>The name of the member.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the member.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the member.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>An optional description for the member.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>An optional description for the member.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>An optional description for the member.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.</p>
pub fn framework_attributes(mut self, input: crate::types::MemberFrameworkAttributes) -> Self {
self.framework_attributes = ::std::option::Option::Some(input);
self
}
/// <p>Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.</p>
pub fn set_framework_attributes(mut self, input: ::std::option::Option<crate::types::MemberFrameworkAttributes>) -> Self {
self.framework_attributes = input;
self
}
/// <p>Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.</p>
pub fn get_framework_attributes(&self) -> &::std::option::Option<crate::types::MemberFrameworkAttributes> {
&self.framework_attributes
}
/// <p>Configuration properties for logging events associated with a member.</p>
pub fn log_publishing_configuration(mut self, input: crate::types::MemberLogPublishingConfiguration) -> Self {
self.log_publishing_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Configuration properties for logging events associated with a member.</p>
pub fn set_log_publishing_configuration(mut self, input: ::std::option::Option<crate::types::MemberLogPublishingConfiguration>) -> Self {
self.log_publishing_configuration = input;
self
}
/// <p>Configuration properties for logging events associated with a member.</p>
pub fn get_log_publishing_configuration(&self) -> &::std::option::Option<crate::types::MemberLogPublishingConfiguration> {
&self.log_publishing_configuration
}
/// <p>The status of a member.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a member.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The member has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a member and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The member is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>DELETED</code> - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::MemberStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of a member.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a member.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The member has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a member and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The member is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>DELETED</code> - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::MemberStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of a member.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a member.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The member has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a member and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The member is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>DELETED</code> - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an <code>APPROVED</code> <code>PROPOSAL</code> to remove the member.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::MemberStatus> {
&self.status
}
/// <p>The date and time that the member was created.</p>
pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date = ::std::option::Option::Some(input);
self
}
/// <p>The date and time that the member was created.</p>
pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date = input;
self
}
/// <p>The date and time that the member was created.</p>
pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Tags assigned to the member. Tags consist of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
/// <p>Tags assigned to the member. Tags consist of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
/// <p>Tags assigned to the member. Tags consist of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// <p>The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_arn
}
/// Consumes the builder and constructs a [`Member`](crate::types::Member).
pub fn build(self) -> crate::types::Member {
crate::types::Member {
network_id: self.network_id,
id: self.id,
name: self.name,
description: self.description,
framework_attributes: self.framework_attributes,
log_publishing_configuration: self.log_publishing_configuration,
status: self.status,
creation_date: self.creation_date,
tags: self.tags,
arn: self.arn,
kms_key_arn: self.kms_key_arn,
}
}
}