aws-sdk-managedblockchain 1.98.0

AWS SDK for Amazon Managed Blockchain
Documentation
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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Properties of a proposal on a Managed Blockchain network.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Proposal {
    /// <p>The unique identifier of the proposal.</p>
    pub proposal_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the network for which the proposal is made.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The description of the proposal.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The actions to perform on the network if the proposal is <code>APPROVED</code>.</p>
    pub actions: ::std::option::Option<crate::types::ProposalActions>,
    /// <p>The unique identifier of the member that created the proposal.</p>
    pub proposed_by_member_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the member that created the proposal.</p>
    pub proposed_by_member_name: ::std::option::Option<::std::string::String>,
    /// <p>The status of the proposal. Values are as follows:</p>
    /// <ul>
    /// <li>
    /// <p><code>IN_PROGRESS</code> - The proposal is active and open for member voting.</p></li>
    /// <li>
    /// <p><code>APPROVED</code> - The proposal was approved with sufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified proposal actions are carried out.</p></li>
    /// <li>
    /// <p><code>REJECTED</code> - The proposal was rejected with insufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>EXPIRED</code> - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>ACTION_FAILED</code> - One or more of the specified <code>ProposalActions</code> in a proposal that was approved couldn't be completed because of an error. The <code>ACTION_FAILED</code> status occurs even if only one ProposalAction fails and other actions are successful.</p></li>
    /// </ul>
    pub status: ::std::option::Option<crate::types::ProposalStatus>,
    /// <p>The date and time that the proposal was created.</p>
    pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The date and time that the proposal expires. This is the <code>CreationDate</code> plus the <code>ProposalDurationInHours</code> that is specified in the <code>ProposalThresholdPolicy</code>. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is <code>EXPIRED</code> and <code>Actions</code> aren't carried out.</p>
    pub expiration_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The current total of <code>YES</code> votes cast on the proposal by members.</p>
    pub yes_vote_count: ::std::option::Option<i32>,
    /// <p>The current total of <code>NO</code> votes cast on the proposal by members.</p>
    pub no_vote_count: ::std::option::Option<i32>,
    /// <p>The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of <code>YES</code> votes and <code>NO</code> votes.</p>
    pub outstanding_vote_count: ::std::option::Option<i32>,
    /// <p>Tags assigned to the proposal. Each tag consists 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 proposal. 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>,
}
impl Proposal {
    /// <p>The unique identifier of the proposal.</p>
    pub fn proposal_id(&self) -> ::std::option::Option<&str> {
        self.proposal_id.as_deref()
    }
    /// <p>The unique identifier of the network for which the proposal is made.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The description of the proposal.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The actions to perform on the network if the proposal is <code>APPROVED</code>.</p>
    pub fn actions(&self) -> ::std::option::Option<&crate::types::ProposalActions> {
        self.actions.as_ref()
    }
    /// <p>The unique identifier of the member that created the proposal.</p>
    pub fn proposed_by_member_id(&self) -> ::std::option::Option<&str> {
        self.proposed_by_member_id.as_deref()
    }
    /// <p>The name of the member that created the proposal.</p>
    pub fn proposed_by_member_name(&self) -> ::std::option::Option<&str> {
        self.proposed_by_member_name.as_deref()
    }
    /// <p>The status of the proposal. Values are as follows:</p>
    /// <ul>
    /// <li>
    /// <p><code>IN_PROGRESS</code> - The proposal is active and open for member voting.</p></li>
    /// <li>
    /// <p><code>APPROVED</code> - The proposal was approved with sufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified proposal actions are carried out.</p></li>
    /// <li>
    /// <p><code>REJECTED</code> - The proposal was rejected with insufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>EXPIRED</code> - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>ACTION_FAILED</code> - One or more of the specified <code>ProposalActions</code> in a proposal that was approved couldn't be completed because of an error. The <code>ACTION_FAILED</code> status occurs even if only one ProposalAction fails and other actions are successful.</p></li>
    /// </ul>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ProposalStatus> {
        self.status.as_ref()
    }
    /// <p>The date and time that the proposal was created.</p>
    pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_date.as_ref()
    }
    /// <p>The date and time that the proposal expires. This is the <code>CreationDate</code> plus the <code>ProposalDurationInHours</code> that is specified in the <code>ProposalThresholdPolicy</code>. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is <code>EXPIRED</code> and <code>Actions</code> aren't carried out.</p>
    pub fn expiration_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.expiration_date.as_ref()
    }
    /// <p>The current total of <code>YES</code> votes cast on the proposal by members.</p>
    pub fn yes_vote_count(&self) -> ::std::option::Option<i32> {
        self.yes_vote_count
    }
    /// <p>The current total of <code>NO</code> votes cast on the proposal by members.</p>
    pub fn no_vote_count(&self) -> ::std::option::Option<i32> {
        self.no_vote_count
    }
    /// <p>The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of <code>YES</code> votes and <code>NO</code> votes.</p>
    pub fn outstanding_vote_count(&self) -> ::std::option::Option<i32> {
        self.outstanding_vote_count
    }
    /// <p>Tags assigned to the proposal. Each tag consists 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 proposal. 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()
    }
}
impl Proposal {
    /// Creates a new builder-style object to manufacture [`Proposal`](crate::types::Proposal).
    pub fn builder() -> crate::types::builders::ProposalBuilder {
        crate::types::builders::ProposalBuilder::default()
    }
}

/// A builder for [`Proposal`](crate::types::Proposal).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ProposalBuilder {
    pub(crate) proposal_id: ::std::option::Option<::std::string::String>,
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) actions: ::std::option::Option<crate::types::ProposalActions>,
    pub(crate) proposed_by_member_id: ::std::option::Option<::std::string::String>,
    pub(crate) proposed_by_member_name: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::ProposalStatus>,
    pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) expiration_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) yes_vote_count: ::std::option::Option<i32>,
    pub(crate) no_vote_count: ::std::option::Option<i32>,
    pub(crate) outstanding_vote_count: ::std::option::Option<i32>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
}
impl ProposalBuilder {
    /// <p>The unique identifier of the proposal.</p>
    pub fn proposal_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.proposal_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the proposal.</p>
    pub fn set_proposal_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.proposal_id = input;
        self
    }
    /// <p>The unique identifier of the proposal.</p>
    pub fn get_proposal_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.proposal_id
    }
    /// <p>The unique identifier of the network for which the proposal is made.</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 for which the proposal is made.</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 for which the proposal is made.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The description of the proposal.</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>The description of the proposal.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the proposal.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The actions to perform on the network if the proposal is <code>APPROVED</code>.</p>
    pub fn actions(mut self, input: crate::types::ProposalActions) -> Self {
        self.actions = ::std::option::Option::Some(input);
        self
    }
    /// <p>The actions to perform on the network if the proposal is <code>APPROVED</code>.</p>
    pub fn set_actions(mut self, input: ::std::option::Option<crate::types::ProposalActions>) -> Self {
        self.actions = input;
        self
    }
    /// <p>The actions to perform on the network if the proposal is <code>APPROVED</code>.</p>
    pub fn get_actions(&self) -> &::std::option::Option<crate::types::ProposalActions> {
        &self.actions
    }
    /// <p>The unique identifier of the member that created the proposal.</p>
    pub fn proposed_by_member_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.proposed_by_member_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the member that created the proposal.</p>
    pub fn set_proposed_by_member_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.proposed_by_member_id = input;
        self
    }
    /// <p>The unique identifier of the member that created the proposal.</p>
    pub fn get_proposed_by_member_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.proposed_by_member_id
    }
    /// <p>The name of the member that created the proposal.</p>
    pub fn proposed_by_member_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.proposed_by_member_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the member that created the proposal.</p>
    pub fn set_proposed_by_member_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.proposed_by_member_name = input;
        self
    }
    /// <p>The name of the member that created the proposal.</p>
    pub fn get_proposed_by_member_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.proposed_by_member_name
    }
    /// <p>The status of the proposal. Values are as follows:</p>
    /// <ul>
    /// <li>
    /// <p><code>IN_PROGRESS</code> - The proposal is active and open for member voting.</p></li>
    /// <li>
    /// <p><code>APPROVED</code> - The proposal was approved with sufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified proposal actions are carried out.</p></li>
    /// <li>
    /// <p><code>REJECTED</code> - The proposal was rejected with insufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>EXPIRED</code> - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>ACTION_FAILED</code> - One or more of the specified <code>ProposalActions</code> in a proposal that was approved couldn't be completed because of an error. The <code>ACTION_FAILED</code> status occurs even if only one ProposalAction fails and other actions are successful.</p></li>
    /// </ul>
    pub fn status(mut self, input: crate::types::ProposalStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the proposal. Values are as follows:</p>
    /// <ul>
    /// <li>
    /// <p><code>IN_PROGRESS</code> - The proposal is active and open for member voting.</p></li>
    /// <li>
    /// <p><code>APPROVED</code> - The proposal was approved with sufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified proposal actions are carried out.</p></li>
    /// <li>
    /// <p><code>REJECTED</code> - The proposal was rejected with insufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>EXPIRED</code> - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>ACTION_FAILED</code> - One or more of the specified <code>ProposalActions</code> in a proposal that was approved couldn't be completed because of an error. The <code>ACTION_FAILED</code> status occurs even if only one ProposalAction fails and other actions are successful.</p></li>
    /// </ul>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ProposalStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the proposal. Values are as follows:</p>
    /// <ul>
    /// <li>
    /// <p><code>IN_PROGRESS</code> - The proposal is active and open for member voting.</p></li>
    /// <li>
    /// <p><code>APPROVED</code> - The proposal was approved with sufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified proposal actions are carried out.</p></li>
    /// <li>
    /// <p><code>REJECTED</code> - The proposal was rejected with insufficient <code>YES</code> votes among members according to the <code>VotingPolicy</code> specified for the <code>Network</code>. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>EXPIRED</code> - Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specified <code>ProposalActions</code> aren't carried out.</p></li>
    /// <li>
    /// <p><code>ACTION_FAILED</code> - One or more of the specified <code>ProposalActions</code> in a proposal that was approved couldn't be completed because of an error. The <code>ACTION_FAILED</code> status occurs even if only one ProposalAction fails and other actions are successful.</p></li>
    /// </ul>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ProposalStatus> {
        &self.status
    }
    /// <p>The date and time that the proposal 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 proposal 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 proposal was created.</p>
    pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_date
    }
    /// <p>The date and time that the proposal expires. This is the <code>CreationDate</code> plus the <code>ProposalDurationInHours</code> that is specified in the <code>ProposalThresholdPolicy</code>. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is <code>EXPIRED</code> and <code>Actions</code> aren't carried out.</p>
    pub fn expiration_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.expiration_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time that the proposal expires. This is the <code>CreationDate</code> plus the <code>ProposalDurationInHours</code> that is specified in the <code>ProposalThresholdPolicy</code>. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is <code>EXPIRED</code> and <code>Actions</code> aren't carried out.</p>
    pub fn set_expiration_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.expiration_date = input;
        self
    }
    /// <p>The date and time that the proposal expires. This is the <code>CreationDate</code> plus the <code>ProposalDurationInHours</code> that is specified in the <code>ProposalThresholdPolicy</code>. After this date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the proposal is <code>EXPIRED</code> and <code>Actions</code> aren't carried out.</p>
    pub fn get_expiration_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.expiration_date
    }
    /// <p>The current total of <code>YES</code> votes cast on the proposal by members.</p>
    pub fn yes_vote_count(mut self, input: i32) -> Self {
        self.yes_vote_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current total of <code>YES</code> votes cast on the proposal by members.</p>
    pub fn set_yes_vote_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.yes_vote_count = input;
        self
    }
    /// <p>The current total of <code>YES</code> votes cast on the proposal by members.</p>
    pub fn get_yes_vote_count(&self) -> &::std::option::Option<i32> {
        &self.yes_vote_count
    }
    /// <p>The current total of <code>NO</code> votes cast on the proposal by members.</p>
    pub fn no_vote_count(mut self, input: i32) -> Self {
        self.no_vote_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current total of <code>NO</code> votes cast on the proposal by members.</p>
    pub fn set_no_vote_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.no_vote_count = input;
        self
    }
    /// <p>The current total of <code>NO</code> votes cast on the proposal by members.</p>
    pub fn get_no_vote_count(&self) -> &::std::option::Option<i32> {
        &self.no_vote_count
    }
    /// <p>The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of <code>YES</code> votes and <code>NO</code> votes.</p>
    pub fn outstanding_vote_count(mut self, input: i32) -> Self {
        self.outstanding_vote_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of <code>YES</code> votes and <code>NO</code> votes.</p>
    pub fn set_outstanding_vote_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.outstanding_vote_count = input;
        self
    }
    /// <p>The number of votes remaining to be cast on the proposal by members. In other words, the number of members minus the sum of <code>YES</code> votes and <code>NO</code> votes.</p>
    pub fn get_outstanding_vote_count(&self) -> &::std::option::Option<i32> {
        &self.outstanding_vote_count
    }
    /// 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 proposal. Each tag consists 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 proposal. Each tag consists 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 proposal. Each tag consists 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 proposal. 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 proposal. 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 proposal. 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
    }
    /// Consumes the builder and constructs a [`Proposal`](crate::types::Proposal).
    pub fn build(self) -> crate::types::Proposal {
        crate::types::Proposal {
            proposal_id: self.proposal_id,
            network_id: self.network_id,
            description: self.description,
            actions: self.actions,
            proposed_by_member_id: self.proposed_by_member_id,
            proposed_by_member_name: self.proposed_by_member_name,
            status: self.status,
            creation_date: self.creation_date,
            expiration_date: self.expiration_date,
            yes_vote_count: self.yes_vote_count,
            no_vote_count: self.no_vote_count,
            outstanding_vote_count: self.outstanding_vote_count,
            tags: self.tags,
            arn: self.arn,
        }
    }
}