aws-sdk-ssm 1.133.0

AWS SDK for Amazon Simple Systems Manager (SSM)
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
// 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 PutComplianceItemsInput {
    /// <p>Specify an ID for this resource. For a managed node, this is the node ID.</p>
    pub resource_id: ::std::option::Option<::std::string::String>,
    /// <p>Specify the type of resource. <code>ManagedInstance</code> is currently the only supported resource type.</p>
    pub resource_type: ::std::option::Option<::std::string::String>,
    /// <p>Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:<code>string</code>.</p>
    pub compliance_type: ::std::option::Option<::std::string::String>,
    /// <p>A summary of the call execution that includes an execution ID, the type of execution (for example, <code>Command</code>), and the date/time of the execution using a datetime object that is saved in the following format: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code></p>
    pub execution_summary: ::std::option::Option<crate::types::ComplianceExecutionSummary>,
    /// <p>Information about the compliance as defined by the resource type. For example, for a patch compliance type, <code>Items</code> includes information about the PatchSeverity, Classification, and so on.</p>
    pub items: ::std::option::Option<::std::vec::Vec<crate::types::ComplianceItemEntry>>,
    /// <p>MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.</p>
    pub item_content_hash: ::std::option::Option<::std::string::String>,
    /// <p>The mode for uploading compliance items. You can specify <code>COMPLETE</code> or <code>PARTIAL</code>. In <code>COMPLETE</code> mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.</p>
    /// <p>In <code>PARTIAL</code> mode, the system overwrites compliance information for a specific association. The association must be configured with <code>SyncCompliance</code> set to <code>MANUAL</code>. By default, all requests use <code>COMPLETE</code> mode.</p><note>
    /// <p>This attribute is only valid for association compliance.</p>
    /// </note>
    pub upload_type: ::std::option::Option<crate::types::ComplianceUploadType>,
}
impl PutComplianceItemsInput {
    /// <p>Specify an ID for this resource. For a managed node, this is the node ID.</p>
    pub fn resource_id(&self) -> ::std::option::Option<&str> {
        self.resource_id.as_deref()
    }
    /// <p>Specify the type of resource. <code>ManagedInstance</code> is currently the only supported resource type.</p>
    pub fn resource_type(&self) -> ::std::option::Option<&str> {
        self.resource_type.as_deref()
    }
    /// <p>Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:<code>string</code>.</p>
    pub fn compliance_type(&self) -> ::std::option::Option<&str> {
        self.compliance_type.as_deref()
    }
    /// <p>A summary of the call execution that includes an execution ID, the type of execution (for example, <code>Command</code>), and the date/time of the execution using a datetime object that is saved in the following format: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code></p>
    pub fn execution_summary(&self) -> ::std::option::Option<&crate::types::ComplianceExecutionSummary> {
        self.execution_summary.as_ref()
    }
    /// <p>Information about the compliance as defined by the resource type. For example, for a patch compliance type, <code>Items</code> includes information about the PatchSeverity, Classification, and so on.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.items.is_none()`.
    pub fn items(&self) -> &[crate::types::ComplianceItemEntry] {
        self.items.as_deref().unwrap_or_default()
    }
    /// <p>MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.</p>
    pub fn item_content_hash(&self) -> ::std::option::Option<&str> {
        self.item_content_hash.as_deref()
    }
    /// <p>The mode for uploading compliance items. You can specify <code>COMPLETE</code> or <code>PARTIAL</code>. In <code>COMPLETE</code> mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.</p>
    /// <p>In <code>PARTIAL</code> mode, the system overwrites compliance information for a specific association. The association must be configured with <code>SyncCompliance</code> set to <code>MANUAL</code>. By default, all requests use <code>COMPLETE</code> mode.</p><note>
    /// <p>This attribute is only valid for association compliance.</p>
    /// </note>
    pub fn upload_type(&self) -> ::std::option::Option<&crate::types::ComplianceUploadType> {
        self.upload_type.as_ref()
    }
}
static PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$ResourceId",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ResourceId",
    0,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$ResourceType",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ResourceType",
    1,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_COMPLIANCE_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$ComplianceType",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ComplianceType",
    2,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_EXECUTION_SUMMARY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$ExecutionSummary",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::Structure,
    "ExecutionSummary",
    3,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEMS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm#ComplianceItemEntryList$member",
        "com.amazonaws.ssm",
        "ComplianceItemEntryList",
    ),
    ::aws_smithy_schema::ShapeType::Structure,
    "member",
    0,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEMS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$Items",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::List,
    "Items",
    4,
)
.with_list_member(&PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEMS_MEMBER);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEM_CONTENT_HASH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$ItemContentHash",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ItemContentHash",
    5,
);
static PUTCOMPLIANCEITEMSINPUT_MEMBER_UPLOAD_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput$UploadType",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "UploadType",
    6,
);
static PUTCOMPLIANCEITEMSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#PutComplianceItemsInput",
        "com.amazonaws.ssm.synthetic",
        "PutComplianceItemsInput",
    ),
    ::aws_smithy_schema::ShapeType::Structure,
    &[
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_ID,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_TYPE,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_COMPLIANCE_TYPE,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_EXECUTION_SUMMARY,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEMS,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEM_CONTENT_HASH,
        &PUTCOMPLIANCEITEMSINPUT_MEMBER_UPLOAD_TYPE,
    ],
)
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
.with_original_name("PutComplianceItemsRequest");
impl PutComplianceItemsInput {
    /// The schema for this shape.
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PUTCOMPLIANCEITEMSINPUT_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for PutComplianceItemsInput {
    fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
        Self::SCHEMA
    }

    #[allow(unused_variables, clippy::diverging_sub_expression)]
    fn serialize_members(
        &self,
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        if let Some(ref val) = self.resource_id {
            ser.write_string(&PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_ID, val)?;
        }
        if let Some(ref val) = self.resource_type {
            ser.write_string(&PUTCOMPLIANCEITEMSINPUT_MEMBER_RESOURCE_TYPE, val)?;
        }
        if let Some(ref val) = self.compliance_type {
            ser.write_string(&PUTCOMPLIANCEITEMSINPUT_MEMBER_COMPLIANCE_TYPE, val)?;
        }
        if let Some(ref val) = self.execution_summary {
            ser.write_struct(&PUTCOMPLIANCEITEMSINPUT_MEMBER_EXECUTION_SUMMARY, val)?;
        }
        if let Some(ref val) = self.items {
            ser.write_list(
                &PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEMS,
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
                    for item in val {
                        ser.write_struct(crate::types::ComplianceItemEntry::SCHEMA, item)?;
                    }
                    Ok(())
                },
            )?;
        }
        if let Some(ref val) = self.item_content_hash {
            ser.write_string(&PUTCOMPLIANCEITEMSINPUT_MEMBER_ITEM_CONTENT_HASH, val)?;
        }
        if let Some(ref val) = self.upload_type {
            ser.write_string(&PUTCOMPLIANCEITEMSINPUT_MEMBER_UPLOAD_TYPE, val.as_str())?;
        }
        Ok(())
    }
}
impl crate::operation::put_compliance_items::builders::PutComplianceItemsInputBuilder {
    #[allow(
        unused_variables,
        unreachable_code,
        clippy::single_match,
        clippy::match_single_binding,
        clippy::diverging_sub_expression
    )]
    pub(crate) fn deserialize_members(
        &mut self,
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        deserializer.read_struct(&PUTCOMPLIANCEITEMSINPUT_SCHEMA, &mut |member, deser| {
            match member.member_index() {
                Some(0) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.resource_id = Some(deser.read_string(member)?);
                    }
                }
                Some(1) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.resource_type = Some(deser.read_string(member)?);
                    }
                }
                Some(2) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.compliance_type = Some(deser.read_string(member)?);
                    }
                }
                Some(3) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.execution_summary = Some(crate::types::ComplianceExecutionSummary::deserialize(deser)?);
                    }
                }
                Some(4) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.items = Some({
                            let mut container = Vec::new();
                            deser.read_list(member, &mut |deser| {
                                container.push(crate::types::ComplianceItemEntry::deserialize(deser)?);
                                Ok(())
                            })?;
                            container
                        });
                    }
                }
                Some(5) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.item_content_hash = Some(deser.read_string(member)?);
                    }
                }
                Some(6) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.upload_type = Some(crate::types::ComplianceUploadType::from(deser.read_string(member)?.as_str()));
                    }
                }
                _ => {}
            }
            Ok(())
        })
    }
}

impl PutComplianceItemsInput {
    /// Deserializes this structure from a [`ShapeDeserializer`].
    pub fn deserialize(
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
        let mut builder = Self::builder();
        builder.deserialize_members(deserializer)?;
        builder.resource_id = builder.resource_id.or(Some(String::new()));
        builder.resource_type = builder.resource_type.or(Some(String::new()));
        builder.compliance_type = builder.compliance_type.or(Some(String::new()));
        builder.items = builder.items.or(Some(Vec::new()));
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
    }
}
impl PutComplianceItemsInput {
    /// Creates a new builder-style object to manufacture [`PutComplianceItemsInput`](crate::operation::put_compliance_items::PutComplianceItemsInput).
    pub fn builder() -> crate::operation::put_compliance_items::builders::PutComplianceItemsInputBuilder {
        crate::operation::put_compliance_items::builders::PutComplianceItemsInputBuilder::default()
    }
}

/// A builder for [`PutComplianceItemsInput`](crate::operation::put_compliance_items::PutComplianceItemsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutComplianceItemsInputBuilder {
    pub(crate) resource_id: ::std::option::Option<::std::string::String>,
    pub(crate) resource_type: ::std::option::Option<::std::string::String>,
    pub(crate) compliance_type: ::std::option::Option<::std::string::String>,
    pub(crate) execution_summary: ::std::option::Option<crate::types::ComplianceExecutionSummary>,
    pub(crate) items: ::std::option::Option<::std::vec::Vec<crate::types::ComplianceItemEntry>>,
    pub(crate) item_content_hash: ::std::option::Option<::std::string::String>,
    pub(crate) upload_type: ::std::option::Option<crate::types::ComplianceUploadType>,
}
impl PutComplianceItemsInputBuilder {
    /// <p>Specify an ID for this resource. For a managed node, this is the node ID.</p>
    /// This field is required.
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specify an ID for this resource. For a managed node, this is the node ID.</p>
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_id = input;
        self
    }
    /// <p>Specify an ID for this resource. For a managed node, this is the node ID.</p>
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_id
    }
    /// <p>Specify the type of resource. <code>ManagedInstance</code> is currently the only supported resource type.</p>
    /// This field is required.
    pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specify the type of resource. <code>ManagedInstance</code> is currently the only supported resource type.</p>
    pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_type = input;
        self
    }
    /// <p>Specify the type of resource. <code>ManagedInstance</code> is currently the only supported resource type.</p>
    pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_type
    }
    /// <p>Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:<code>string</code>.</p>
    /// This field is required.
    pub fn compliance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.compliance_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:<code>string</code>.</p>
    pub fn set_compliance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.compliance_type = input;
        self
    }
    /// <p>Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:<code>string</code>.</p>
    pub fn get_compliance_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.compliance_type
    }
    /// <p>A summary of the call execution that includes an execution ID, the type of execution (for example, <code>Command</code>), and the date/time of the execution using a datetime object that is saved in the following format: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code></p>
    /// This field is required.
    pub fn execution_summary(mut self, input: crate::types::ComplianceExecutionSummary) -> Self {
        self.execution_summary = ::std::option::Option::Some(input);
        self
    }
    /// <p>A summary of the call execution that includes an execution ID, the type of execution (for example, <code>Command</code>), and the date/time of the execution using a datetime object that is saved in the following format: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code></p>
    pub fn set_execution_summary(mut self, input: ::std::option::Option<crate::types::ComplianceExecutionSummary>) -> Self {
        self.execution_summary = input;
        self
    }
    /// <p>A summary of the call execution that includes an execution ID, the type of execution (for example, <code>Command</code>), and the date/time of the execution using a datetime object that is saved in the following format: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code></p>
    pub fn get_execution_summary(&self) -> &::std::option::Option<crate::types::ComplianceExecutionSummary> {
        &self.execution_summary
    }
    /// Appends an item to `items`.
    ///
    /// To override the contents of this collection use [`set_items`](Self::set_items).
    ///
    /// <p>Information about the compliance as defined by the resource type. For example, for a patch compliance type, <code>Items</code> includes information about the PatchSeverity, Classification, and so on.</p>
    pub fn items(mut self, input: crate::types::ComplianceItemEntry) -> Self {
        let mut v = self.items.unwrap_or_default();
        v.push(input);
        self.items = ::std::option::Option::Some(v);
        self
    }
    /// <p>Information about the compliance as defined by the resource type. For example, for a patch compliance type, <code>Items</code> includes information about the PatchSeverity, Classification, and so on.</p>
    pub fn set_items(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ComplianceItemEntry>>) -> Self {
        self.items = input;
        self
    }
    /// <p>Information about the compliance as defined by the resource type. For example, for a patch compliance type, <code>Items</code> includes information about the PatchSeverity, Classification, and so on.</p>
    pub fn get_items(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ComplianceItemEntry>> {
        &self.items
    }
    /// <p>MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.</p>
    pub fn item_content_hash(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.item_content_hash = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.</p>
    pub fn set_item_content_hash(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.item_content_hash = input;
        self
    }
    /// <p>MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.</p>
    pub fn get_item_content_hash(&self) -> &::std::option::Option<::std::string::String> {
        &self.item_content_hash
    }
    /// <p>The mode for uploading compliance items. You can specify <code>COMPLETE</code> or <code>PARTIAL</code>. In <code>COMPLETE</code> mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.</p>
    /// <p>In <code>PARTIAL</code> mode, the system overwrites compliance information for a specific association. The association must be configured with <code>SyncCompliance</code> set to <code>MANUAL</code>. By default, all requests use <code>COMPLETE</code> mode.</p><note>
    /// <p>This attribute is only valid for association compliance.</p>
    /// </note>
    pub fn upload_type(mut self, input: crate::types::ComplianceUploadType) -> Self {
        self.upload_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The mode for uploading compliance items. You can specify <code>COMPLETE</code> or <code>PARTIAL</code>. In <code>COMPLETE</code> mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.</p>
    /// <p>In <code>PARTIAL</code> mode, the system overwrites compliance information for a specific association. The association must be configured with <code>SyncCompliance</code> set to <code>MANUAL</code>. By default, all requests use <code>COMPLETE</code> mode.</p><note>
    /// <p>This attribute is only valid for association compliance.</p>
    /// </note>
    pub fn set_upload_type(mut self, input: ::std::option::Option<crate::types::ComplianceUploadType>) -> Self {
        self.upload_type = input;
        self
    }
    /// <p>The mode for uploading compliance items. You can specify <code>COMPLETE</code> or <code>PARTIAL</code>. In <code>COMPLETE</code> mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.</p>
    /// <p>In <code>PARTIAL</code> mode, the system overwrites compliance information for a specific association. The association must be configured with <code>SyncCompliance</code> set to <code>MANUAL</code>. By default, all requests use <code>COMPLETE</code> mode.</p><note>
    /// <p>This attribute is only valid for association compliance.</p>
    /// </note>
    pub fn get_upload_type(&self) -> &::std::option::Option<crate::types::ComplianceUploadType> {
        &self.upload_type
    }
    /// Consumes the builder and constructs a [`PutComplianceItemsInput`](crate::operation::put_compliance_items::PutComplianceItemsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::put_compliance_items::PutComplianceItemsInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::put_compliance_items::PutComplianceItemsInput {
            resource_id: self.resource_id,
            resource_type: self.resource_type,
            compliance_type: self.compliance_type,
            execution_summary: self.execution_summary,
            items: self.items,
            item_content_hash: self.item_content_hash,
            upload_type: self.upload_type,
        })
    }
}