aws-sdk-partnercentralanalytics 1.0.0

AWS SDK for Partner Central Analytics API
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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
// 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 GetDataSubscriptionOutput {
    /// The ARN of a data subscription.
    pub data_subscription_identifier: ::std::string::String,
    /// Specifies the catalog associated with the request.
    pub catalog: ::std::string::String,
    /// Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
    pub dataset_name: ::std::string::String,
    /// How a dataset is delivered.
    pub delivery_method: crate::types::DeliveryMethod,
    /// The ARN of an S3 bucket.
    pub s3_arn: ::std::string::String,
    /// The ARN of a KMS key.
    pub kms_key_arn: ::std::string::String,
    /// When the subscription was created.
    pub create_timestamp: ::aws_smithy_types::DateTime,
    /// The extract date through which data has been delivered. Absent until the first successful delivery.
    pub delivery_completeness: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// The lifecycle state of the subscription.
    pub delivery_status: crate::types::DeliveryStatus,
    /// Additional detail about the delivery status, when available.
    pub delivery_status_message: ::std::option::Option<::std::string::String>,
    /// When the subscription was deleted. Present only on deleted subscriptions.
    pub delete_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
    pub delivery_state: ::std::option::Option<crate::types::DeliveryState>,
    /// The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
    pub delivered_through: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
    pub last_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
    pub delivery_state_message: ::std::option::Option<::std::string::String>,
    /// How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
    pub initial_delivery_progress: ::std::option::Option<crate::types::InitialDeliveryProgress>,
    _request_id: Option<String>,
}
impl GetDataSubscriptionOutput {
    /// The ARN of a data subscription.
    pub fn data_subscription_identifier(&self) -> &str {
        use std::ops::Deref;
        self.data_subscription_identifier.deref()
    }
    /// Specifies the catalog associated with the request.
    pub fn catalog(&self) -> &str {
        use std::ops::Deref;
        self.catalog.deref()
    }
    /// Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
    pub fn dataset_name(&self) -> &str {
        use std::ops::Deref;
        self.dataset_name.deref()
    }
    /// How a dataset is delivered.
    pub fn delivery_method(&self) -> &crate::types::DeliveryMethod {
        &self.delivery_method
    }
    /// The ARN of an S3 bucket.
    pub fn s3_arn(&self) -> &str {
        use std::ops::Deref;
        self.s3_arn.deref()
    }
    /// The ARN of a KMS key.
    pub fn kms_key_arn(&self) -> &str {
        use std::ops::Deref;
        self.kms_key_arn.deref()
    }
    /// When the subscription was created.
    pub fn create_timestamp(&self) -> &::aws_smithy_types::DateTime {
        &self.create_timestamp
    }
    /// The extract date through which data has been delivered. Absent until the first successful delivery.
    pub fn delivery_completeness(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.delivery_completeness.as_ref()
    }
    /// The lifecycle state of the subscription.
    pub fn delivery_status(&self) -> &crate::types::DeliveryStatus {
        &self.delivery_status
    }
    /// Additional detail about the delivery status, when available.
    pub fn delivery_status_message(&self) -> ::std::option::Option<&str> {
        self.delivery_status_message.as_deref()
    }
    /// When the subscription was deleted. Present only on deleted subscriptions.
    pub fn delete_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.delete_timestamp.as_ref()
    }
    /// The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
    pub fn delivery_state(&self) -> ::std::option::Option<&crate::types::DeliveryState> {
        self.delivery_state.as_ref()
    }
    /// The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
    pub fn delivered_through(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.delivered_through.as_ref()
    }
    /// When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
    pub fn last_delivery_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_delivery_time.as_ref()
    }
    /// A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
    pub fn delivery_state_message(&self) -> ::std::option::Option<&str> {
        self.delivery_state_message.as_deref()
    }
    /// How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
    pub fn initial_delivery_progress(&self) -> ::std::option::Option<&crate::types::InitialDeliveryProgress> {
        self.initial_delivery_progress.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetDataSubscriptionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetDataSubscriptionOutput {
    /// Creates a new builder-style object to manufacture [`GetDataSubscriptionOutput`](crate::operation::get_data_subscription::GetDataSubscriptionOutput).
    pub fn builder() -> crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder {
        crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::default()
    }
}

/// A builder for [`GetDataSubscriptionOutput`](crate::operation::get_data_subscription::GetDataSubscriptionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDataSubscriptionOutputBuilder {
    pub(crate) data_subscription_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) catalog: ::std::option::Option<::std::string::String>,
    pub(crate) dataset_name: ::std::option::Option<::std::string::String>,
    pub(crate) delivery_method: ::std::option::Option<crate::types::DeliveryMethod>,
    pub(crate) s3_arn: ::std::option::Option<::std::string::String>,
    pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
    pub(crate) create_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) delivery_completeness: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) delivery_status: ::std::option::Option<crate::types::DeliveryStatus>,
    pub(crate) delivery_status_message: ::std::option::Option<::std::string::String>,
    pub(crate) delete_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) delivery_state: ::std::option::Option<crate::types::DeliveryState>,
    pub(crate) delivered_through: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) delivery_state_message: ::std::option::Option<::std::string::String>,
    pub(crate) initial_delivery_progress: ::std::option::Option<crate::types::InitialDeliveryProgress>,
    _request_id: Option<String>,
}
impl GetDataSubscriptionOutputBuilder {
    /// The ARN of a data subscription.
    /// This field is required.
    pub fn data_subscription_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_subscription_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// The ARN of a data subscription.
    pub fn set_data_subscription_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_subscription_identifier = input;
        self
    }
    /// The ARN of a data subscription.
    pub fn get_data_subscription_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_subscription_identifier
    }
    /// Specifies the catalog associated with the request.
    /// This field is required.
    pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.catalog = ::std::option::Option::Some(input.into());
        self
    }
    /// Specifies the catalog associated with the request.
    pub fn set_catalog(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.catalog = input;
        self
    }
    /// Specifies the catalog associated with the request.
    pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> {
        &self.catalog
    }
    /// Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
    /// This field is required.
    pub fn dataset_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.dataset_name = ::std::option::Option::Some(input.into());
        self
    }
    /// Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
    pub fn set_dataset_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dataset_name = input;
        self
    }
    /// Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
    pub fn get_dataset_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.dataset_name
    }
    /// How a dataset is delivered.
    /// This field is required.
    pub fn delivery_method(mut self, input: crate::types::DeliveryMethod) -> Self {
        self.delivery_method = ::std::option::Option::Some(input);
        self
    }
    /// How a dataset is delivered.
    pub fn set_delivery_method(mut self, input: ::std::option::Option<crate::types::DeliveryMethod>) -> Self {
        self.delivery_method = input;
        self
    }
    /// How a dataset is delivered.
    pub fn get_delivery_method(&self) -> &::std::option::Option<crate::types::DeliveryMethod> {
        &self.delivery_method
    }
    /// The ARN of an S3 bucket.
    /// This field is required.
    pub fn s3_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The ARN of an S3 bucket.
    pub fn set_s3_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_arn = input;
        self
    }
    /// The ARN of an S3 bucket.
    pub fn get_s3_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_arn
    }
    /// The ARN of a KMS key.
    /// This field is required.
    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
    }
    /// The ARN of a KMS key.
    pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key_arn = input;
        self
    }
    /// The ARN of a KMS key.
    pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key_arn
    }
    /// When the subscription was created.
    /// This field is required.
    pub fn create_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.create_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// When the subscription was created.
    pub fn set_create_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.create_timestamp = input;
        self
    }
    /// When the subscription was created.
    pub fn get_create_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.create_timestamp
    }
    /// The extract date through which data has been delivered. Absent until the first successful delivery.
    pub fn delivery_completeness(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.delivery_completeness = ::std::option::Option::Some(input);
        self
    }
    /// The extract date through which data has been delivered. Absent until the first successful delivery.
    pub fn set_delivery_completeness(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.delivery_completeness = input;
        self
    }
    /// The extract date through which data has been delivered. Absent until the first successful delivery.
    pub fn get_delivery_completeness(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.delivery_completeness
    }
    /// The lifecycle state of the subscription.
    /// This field is required.
    pub fn delivery_status(mut self, input: crate::types::DeliveryStatus) -> Self {
        self.delivery_status = ::std::option::Option::Some(input);
        self
    }
    /// The lifecycle state of the subscription.
    pub fn set_delivery_status(mut self, input: ::std::option::Option<crate::types::DeliveryStatus>) -> Self {
        self.delivery_status = input;
        self
    }
    /// The lifecycle state of the subscription.
    pub fn get_delivery_status(&self) -> &::std::option::Option<crate::types::DeliveryStatus> {
        &self.delivery_status
    }
    /// Additional detail about the delivery status, when available.
    pub fn delivery_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.delivery_status_message = ::std::option::Option::Some(input.into());
        self
    }
    /// Additional detail about the delivery status, when available.
    pub fn set_delivery_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.delivery_status_message = input;
        self
    }
    /// Additional detail about the delivery status, when available.
    pub fn get_delivery_status_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.delivery_status_message
    }
    /// When the subscription was deleted. Present only on deleted subscriptions.
    pub fn delete_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.delete_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// When the subscription was deleted. Present only on deleted subscriptions.
    pub fn set_delete_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.delete_timestamp = input;
        self
    }
    /// When the subscription was deleted. Present only on deleted subscriptions.
    pub fn get_delete_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.delete_timestamp
    }
    /// The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
    pub fn delivery_state(mut self, input: crate::types::DeliveryState) -> Self {
        self.delivery_state = ::std::option::Option::Some(input);
        self
    }
    /// The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
    pub fn set_delivery_state(mut self, input: ::std::option::Option<crate::types::DeliveryState>) -> Self {
        self.delivery_state = input;
        self
    }
    /// The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
    pub fn get_delivery_state(&self) -> &::std::option::Option<crate::types::DeliveryState> {
        &self.delivery_state
    }
    /// The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
    pub fn delivered_through(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.delivered_through = ::std::option::Option::Some(input);
        self
    }
    /// The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
    pub fn set_delivered_through(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.delivered_through = input;
        self
    }
    /// The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
    pub fn get_delivered_through(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.delivered_through
    }
    /// When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
    pub fn last_delivery_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_delivery_time = ::std::option::Option::Some(input);
        self
    }
    /// When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
    pub fn set_last_delivery_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_delivery_time = input;
        self
    }
    /// When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
    pub fn get_last_delivery_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_delivery_time
    }
    /// A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
    pub fn delivery_state_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.delivery_state_message = ::std::option::Option::Some(input.into());
        self
    }
    /// A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
    pub fn set_delivery_state_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.delivery_state_message = input;
        self
    }
    /// A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
    pub fn get_delivery_state_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.delivery_state_message
    }
    /// How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
    pub fn initial_delivery_progress(mut self, input: crate::types::InitialDeliveryProgress) -> Self {
        self.initial_delivery_progress = ::std::option::Option::Some(input);
        self
    }
    /// How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
    pub fn set_initial_delivery_progress(mut self, input: ::std::option::Option<crate::types::InitialDeliveryProgress>) -> Self {
        self.initial_delivery_progress = input;
        self
    }
    /// How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
    pub fn get_initial_delivery_progress(&self) -> &::std::option::Option<crate::types::InitialDeliveryProgress> {
        &self.initial_delivery_progress
    }
    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 [`GetDataSubscriptionOutput`](crate::operation::get_data_subscription::GetDataSubscriptionOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`data_subscription_identifier`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::data_subscription_identifier)
    /// - [`catalog`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::catalog)
    /// - [`dataset_name`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::dataset_name)
    /// - [`delivery_method`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::delivery_method)
    /// - [`s3_arn`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::s3_arn)
    /// - [`kms_key_arn`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::kms_key_arn)
    /// - [`create_timestamp`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::create_timestamp)
    /// - [`delivery_status`](crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::delivery_status)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_data_subscription::GetDataSubscriptionOutput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_data_subscription::GetDataSubscriptionOutput {
            data_subscription_identifier: self.data_subscription_identifier.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "data_subscription_identifier",
                    "data_subscription_identifier was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            catalog: self.catalog.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "catalog",
                    "catalog was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            dataset_name: self.dataset_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "dataset_name",
                    "dataset_name was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            delivery_method: self.delivery_method.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "delivery_method",
                    "delivery_method was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            s3_arn: self.s3_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "s3_arn",
                    "s3_arn was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            kms_key_arn: self.kms_key_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "kms_key_arn",
                    "kms_key_arn was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            create_timestamp: self.create_timestamp.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "create_timestamp",
                    "create_timestamp was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            delivery_completeness: self.delivery_completeness,
            delivery_status: self.delivery_status.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "delivery_status",
                    "delivery_status was not specified but it is required when building GetDataSubscriptionOutput",
                )
            })?,
            delivery_status_message: self.delivery_status_message,
            delete_timestamp: self.delete_timestamp,
            delivery_state: self.delivery_state,
            delivered_through: self.delivered_through,
            last_delivery_time: self.last_delivery_time,
            delivery_state_message: self.delivery_state_message,
            initial_delivery_progress: self.initial_delivery_progress,
            _request_id: self._request_id,
        })
    }
}