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
409
410
411
412
413
414
415
416
417
418
419
420
421
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The metadata of a change set, which is a proposed set of operations on an agent context. To read its operations, call <code>ListChangeSetOperations</code>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetChangeSetOutput {
/// <p>The agent context's ID.</p>
pub agent_context_id: ::std::string::String,
/// <p>The status of the change set. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>
/// <li>
/// <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>
/// <li>
/// <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>
/// <li>
/// <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>
/// <li>
/// <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>
/// <li>
/// <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li>
/// </ul>
/// <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
pub status: crate::types::ChangeSetStatus,
/// <p>The date and time when the change set was created.</p>
pub created_at: ::aws_smithy_types::DateTime,
/// <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
pub updated_at: ::aws_smithy_types::DateTime,
/// <p>See <code>AccessControl</code>. The service returns it on every item.</p>
/// <p>Valid values:</p>
/// <ul>
/// <li>
/// <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>
/// <li>
/// <p><code>NO_ACL</code> - Every caller can read the content.</p></li>
/// </ul>
pub access_control: ::std::option::Option<crate::types::AccessControl>,
/// <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p>
/// <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
pub generated_by: ::std::option::Option<crate::types::Activity>,
/// <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
pub status_reason: ::std::option::Option<crate::types::StatusReason>,
/// <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
pub id: ::std::string::String,
/// <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
pub change_set_version: ::std::option::Option<i32>,
/// <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
pub connection_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetChangeSetOutput {
/// <p>The agent context's ID.</p>
pub fn agent_context_id(&self) -> &str {
use std::ops::Deref;
self.agent_context_id.deref()
}
/// <p>The status of the change set. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>
/// <li>
/// <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>
/// <li>
/// <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>
/// <li>
/// <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>
/// <li>
/// <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>
/// <li>
/// <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li>
/// </ul>
/// <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
pub fn status(&self) -> &crate::types::ChangeSetStatus {
&self.status
}
/// <p>The date and time when the change set was created.</p>
pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
&self.created_at
}
/// <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
&self.updated_at
}
/// <p>See <code>AccessControl</code>. The service returns it on every item.</p>
/// <p>Valid values:</p>
/// <ul>
/// <li>
/// <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>
/// <li>
/// <p><code>NO_ACL</code> - Every caller can read the content.</p></li>
/// </ul>
pub fn access_control(&self) -> ::std::option::Option<&crate::types::AccessControl> {
self.access_control.as_ref()
}
/// <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p>
/// <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
pub fn generated_by(&self) -> ::std::option::Option<&crate::types::Activity> {
self.generated_by.as_ref()
}
/// <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
pub fn status_reason(&self) -> ::std::option::Option<&crate::types::StatusReason> {
self.status_reason.as_ref()
}
/// <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
pub fn id(&self) -> &str {
use std::ops::Deref;
self.id.deref()
}
/// <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
pub fn change_set_version(&self) -> ::std::option::Option<i32> {
self.change_set_version
}
/// <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
pub fn connection_arn(&self) -> ::std::option::Option<&str> {
self.connection_arn.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetChangeSetOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetChangeSetOutput {
/// Creates a new builder-style object to manufacture [`GetChangeSetOutput`](crate::operation::get_change_set::GetChangeSetOutput).
pub fn builder() -> crate::operation::get_change_set::builders::GetChangeSetOutputBuilder {
crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::default()
}
}
/// A builder for [`GetChangeSetOutput`](crate::operation::get_change_set::GetChangeSetOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetChangeSetOutputBuilder {
pub(crate) agent_context_id: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::ChangeSetStatus>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) access_control: ::std::option::Option<crate::types::AccessControl>,
pub(crate) generated_by: ::std::option::Option<crate::types::Activity>,
pub(crate) status_reason: ::std::option::Option<crate::types::StatusReason>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) change_set_version: ::std::option::Option<i32>,
pub(crate) connection_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetChangeSetOutputBuilder {
/// <p>The agent context's ID.</p>
/// This field is required.
pub fn agent_context_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_context_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The agent context's ID.</p>
pub fn set_agent_context_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_context_id = input;
self
}
/// <p>The agent context's ID.</p>
pub fn get_agent_context_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_context_id
}
/// <p>The status of the change set. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>
/// <li>
/// <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>
/// <li>
/// <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>
/// <li>
/// <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>
/// <li>
/// <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>
/// <li>
/// <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li>
/// </ul>
/// <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
/// This field is required.
pub fn status(mut self, input: crate::types::ChangeSetStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the change set. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>
/// <li>
/// <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>
/// <li>
/// <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>
/// <li>
/// <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>
/// <li>
/// <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>
/// <li>
/// <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li>
/// </ul>
/// <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::ChangeSetStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the change set. Valid values:</p>
/// <ul>
/// <li>
/// <p><code>DRAFT</code> - AWS Context is evaluating the change set against the agent context's curation policies.</p></li>
/// <li>
/// <p><code>PENDING</code> - Held for review as a curation proposal. While the change set is <code>PENDING</code>, you can remove operations from it with <code>UpdateChangeSet</code>.</p></li>
/// <li>
/// <p><code>AUTHORIZED</code> - The change set is approved, and AWS Context is applying it.</p></li>
/// <li>
/// <p><code>SUPPRESSED</code> - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.</p></li>
/// <li>
/// <p><code>PUBLISHED</code> - AWS Context applied the change set to the agent context.</p></li>
/// <li>
/// <p><code>FAILED</code> - AWS Context couldn't apply the change set.</p></li>
/// </ul>
/// <p><code>SUPPRESSED</code> and <code>PUBLISHED</code> are final. A <code>FAILED</code> change set can still change to <code>PUBLISHED</code> or <code>PENDING</code> if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::ChangeSetStatus> {
&self.status
}
/// <p>The date and time when the change set was created.</p>
/// This field is required.
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
/// <p>The date and time when the change set was created.</p>
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
/// <p>The date and time when the change set was created.</p>
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
/// <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
/// This field is required.
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
/// <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
/// <p>The date and time when the change set was last updated, such as when its status changed or its operations were edited.</p>
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
/// <p>See <code>AccessControl</code>. The service returns it on every item.</p>
/// <p>Valid values:</p>
/// <ul>
/// <li>
/// <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>
/// <li>
/// <p><code>NO_ACL</code> - Every caller can read the content.</p></li>
/// </ul>
pub fn access_control(mut self, input: crate::types::AccessControl) -> Self {
self.access_control = ::std::option::Option::Some(input);
self
}
/// <p>See <code>AccessControl</code>. The service returns it on every item.</p>
/// <p>Valid values:</p>
/// <ul>
/// <li>
/// <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>
/// <li>
/// <p><code>NO_ACL</code> - Every caller can read the content.</p></li>
/// </ul>
pub fn set_access_control(mut self, input: ::std::option::Option<crate::types::AccessControl>) -> Self {
self.access_control = input;
self
}
/// <p>See <code>AccessControl</code>. The service returns it on every item.</p>
/// <p>Valid values:</p>
/// <ul>
/// <li>
/// <p><code>ACL_RESTRICTED</code> - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's <code>title</code> names no nodes or edges.</p></li>
/// <li>
/// <p><code>NO_ACL</code> - Every caller can read the content.</p></li>
/// </ul>
pub fn get_access_control(&self) -> &::std::option::Option<crate::types::AccessControl> {
&self.access_control
}
/// <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p>
/// <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
pub fn generated_by(mut self, input: crate::types::Activity) -> Self {
self.generated_by = ::std::option::Option::Some(input);
self
}
/// <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p>
/// <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
pub fn set_generated_by(mut self, input: ::std::option::Option<crate::types::Activity>) -> Self {
self.generated_by = input;
self
}
/// <p>The activity that generated the change set. A change set that an <code>IMPORT_ONTOLOGY</code> task writes carries <code>IMPORT_ONTOLOGY_TASK</code>, and one that a <code>CreateChangeSet</code> call makes carries <code>DIRECT_MODIFICATION</code>. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries <code>DATA_SOURCE_INGESTION</code>. To list the change sets that carry a value, filter <code>ListChangeSets</code> on it.</p>
/// <p>This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.</p>
pub fn get_generated_by(&self) -> &::std::option::Option<crate::types::Activity> {
&self.generated_by
}
/// <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
pub fn status_reason(mut self, input: crate::types::StatusReason) -> Self {
self.status_reason = ::std::option::Option::Some(input);
self
}
/// <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
pub fn set_status_reason(mut self, input: ::std::option::Option<crate::types::StatusReason>) -> Self {
self.status_reason = input;
self
}
/// <p>Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.</p>
pub fn get_status_reason(&self) -> &::std::option::Option<crate::types::StatusReason> {
&self.status_reason
}
/// <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
/// This field is required.
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 change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The change set's opaque instance ID. Requests take it as <code>changeSetId</code>.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
/// This field is required.
pub fn change_set_version(mut self, input: i32) -> Self {
self.change_set_version = ::std::option::Option::Some(input);
self
}
/// <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
pub fn set_change_set_version(mut self, input: ::std::option::Option<i32>) -> Self {
self.change_set_version = input;
self
}
/// <p>The change set's latest version. Pass it to <code>UpdateChangeSet</code>. Each version is immutable. The number increases by one on each edit and each status change.</p>
pub fn get_change_set_version(&self) -> &::std::option::Option<i32> {
&self.change_set_version
}
/// <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
pub fn connection_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.connection_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
pub fn set_connection_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.connection_arn = input;
self
}
/// <p>The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct <code>CreateChangeSet</code> call, and for every <code>ACL_RESTRICTED</code> change set, because the connection would identify the source of the restricted content.</p>
pub fn get_connection_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.connection_arn
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetChangeSetOutput`](crate::operation::get_change_set::GetChangeSetOutput).
/// This method will fail if any of the following fields are not set:
/// - [`agent_context_id`](crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::agent_context_id)
/// - [`status`](crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::status)
/// - [`created_at`](crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::created_at)
/// - [`updated_at`](crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::updated_at)
/// - [`id`](crate::operation::get_change_set::builders::GetChangeSetOutputBuilder::id)
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_change_set::GetChangeSetOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_change_set::GetChangeSetOutput {
agent_context_id: self.agent_context_id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"agent_context_id",
"agent_context_id was not specified but it is required when building GetChangeSetOutput",
)
})?,
status: self.status.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"status",
"status was not specified but it is required when building GetChangeSetOutput",
)
})?,
created_at: self.created_at.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"created_at",
"created_at was not specified but it is required when building GetChangeSetOutput",
)
})?,
updated_at: self.updated_at.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"updated_at",
"updated_at was not specified but it is required when building GetChangeSetOutput",
)
})?,
access_control: self.access_control,
generated_by: self.generated_by,
status_reason: self.status_reason,
id: self.id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"id",
"id was not specified but it is required when building GetChangeSetOutput",
)
})?,
change_set_version: self.change_set_version,
connection_arn: self.connection_arn,
_request_id: self._request_id,
})
}
}