1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Information about a resource data sync configuration, including its current status and last successful sync.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct ResourceDataSyncItem {
|
7 + | /// <p>The name of the resource data sync.</p>
|
8 + | pub sync_name: ::std::option::Option<::std::string::String>,
|
9 + | /// <p>The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.</p>
|
10 + | pub sync_type: ::std::option::Option<::std::string::String>,
|
11 + | /// <p>Information about the source where the data was synchronized.</p>
|
12 + | pub sync_source: ::std::option::Option<crate::types::ResourceDataSyncSourceWithState>,
|
13 + | /// <p>Configuration information for the target S3 bucket.</p>
|
14 + | pub s3_destination: ::std::option::Option<crate::types::ResourceDataSyncS3Destination>,
|
15 + | /// <p>The last time the configuration attempted to sync (UTC).</p>
|
16 + | pub last_sync_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17 + | /// <p>The last time the sync operations returned a status of <code>SUCCESSFUL</code> (UTC).</p>
|
18 + | pub last_successful_sync_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
19 + | /// <p>The date and time the resource data sync was changed.</p>
|
20 + | pub sync_last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
21 + | /// <p>The status reported by the last sync.</p>
|
22 + | pub last_status: ::std::option::Option<crate::types::LastResourceDataSyncStatus>,
|
23 + | /// <p>The date and time the configuration was created (UTC).</p>
|
24 + | pub sync_created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
25 + | /// <p>The status message details reported by the last sync.</p>
|
26 + | pub last_sync_status_message: ::std::option::Option<::std::string::String>,
|
27 + | }
|
28 + | impl ResourceDataSyncItem {
|
29 + | /// <p>The name of the resource data sync.</p>
|
30 + | pub fn sync_name(&self) -> ::std::option::Option<&str> {
|
31 + | self.sync_name.as_deref()
|
32 + | }
|
33 + | /// <p>The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.</p>
|
34 + | pub fn sync_type(&self) -> ::std::option::Option<&str> {
|
35 + | self.sync_type.as_deref()
|
36 + | }
|
37 + | /// <p>Information about the source where the data was synchronized.</p>
|
38 + | pub fn sync_source(&self) -> ::std::option::Option<&crate::types::ResourceDataSyncSourceWithState> {
|
39 + | self.sync_source.as_ref()
|
40 + | }
|
41 + | /// <p>Configuration information for the target S3 bucket.</p>
|
42 + | pub fn s3_destination(&self) -> ::std::option::Option<&crate::types::ResourceDataSyncS3Destination> {
|
43 + | self.s3_destination.as_ref()
|
44 + | }
|
45 + | /// <p>The last time the configuration attempted to sync (UTC).</p>
|
46 + | pub fn last_sync_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
47 + | self.last_sync_time.as_ref()
|
48 + | }
|
49 + | /// <p>The last time the sync operations returned a status of <code>SUCCESSFUL</code> (UTC).</p>
|
50 + | pub fn last_successful_sync_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
51 + | self.last_successful_sync_time.as_ref()
|
52 + | }
|
53 + | /// <p>The date and time the resource data sync was changed.</p>
|
54 + | pub fn sync_last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
55 + | self.sync_last_modified_time.as_ref()
|
56 + | }
|
57 + | /// <p>The status reported by the last sync.</p>
|
58 + | pub fn last_status(&self) -> ::std::option::Option<&crate::types::LastResourceDataSyncStatus> {
|
59 + | self.last_status.as_ref()
|
60 + | }
|
61 + | /// <p>The date and time the configuration was created (UTC).</p>
|
62 + | pub fn sync_created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
63 + | self.sync_created_time.as_ref()
|
64 + | }
|
65 + | /// <p>The status message details reported by the last sync.</p>
|
66 + | pub fn last_sync_status_message(&self) -> ::std::option::Option<&str> {
|
67 + | self.last_sync_status_message.as_deref()
|
68 + | }
|
69 + | }
|
70 + | static RESOURCEDATASYNCITEM_MEMBER_SYNC_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
71 + | ::aws_smithy_schema::ShapeId::from_parts(
|
72 + | "com.amazonaws.ssm#ResourceDataSyncItem$SyncName",
|
73 + | "com.amazonaws.ssm",
|
74 + | "ResourceDataSyncItem",
|
75 + | ),
|
76 + | ::aws_smithy_schema::ShapeType::String,
|
77 + | "SyncName",
|
78 + | 0,
|
79 + | );
|
80 + | static RESOURCEDATASYNCITEM_MEMBER_SYNC_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
81 + | ::aws_smithy_schema::ShapeId::from_parts(
|
82 + | "com.amazonaws.ssm#ResourceDataSyncItem$SyncType",
|
83 + | "com.amazonaws.ssm",
|
84 + | "ResourceDataSyncItem",
|
85 + | ),
|
86 + | ::aws_smithy_schema::ShapeType::String,
|
87 + | "SyncType",
|
88 + | 1,
|
89 + | );
|
90 + | static RESOURCEDATASYNCITEM_MEMBER_SYNC_SOURCE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
91 + | ::aws_smithy_schema::ShapeId::from_parts(
|
92 + | "com.amazonaws.ssm#ResourceDataSyncItem$SyncSource",
|
93 + | "com.amazonaws.ssm",
|
94 + | "ResourceDataSyncItem",
|
95 + | ),
|
96 + | ::aws_smithy_schema::ShapeType::Structure,
|
97 + | "SyncSource",
|
98 + | 2,
|
99 + | );
|
100 + | static RESOURCEDATASYNCITEM_MEMBER_S3_DESTINATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
101 + | ::aws_smithy_schema::ShapeId::from_parts(
|
102 + | "com.amazonaws.ssm#ResourceDataSyncItem$S3Destination",
|
103 + | "com.amazonaws.ssm",
|
104 + | "ResourceDataSyncItem",
|
105 + | ),
|
106 + | ::aws_smithy_schema::ShapeType::Structure,
|
107 + | "S3Destination",
|
108 + | 3,
|
109 + | );
|
110 + | static RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
111 + | ::aws_smithy_schema::ShapeId::from_parts(
|
112 + | "com.amazonaws.ssm#ResourceDataSyncItem$LastSyncTime",
|
113 + | "com.amazonaws.ssm",
|
114 + | "ResourceDataSyncItem",
|
115 + | ),
|
116 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
117 + | "LastSyncTime",
|
118 + | 4,
|
119 + | );
|
120 + | static RESOURCEDATASYNCITEM_MEMBER_LAST_SUCCESSFUL_SYNC_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
121 + | ::aws_smithy_schema::ShapeId::from_parts(
|
122 + | "com.amazonaws.ssm#ResourceDataSyncItem$LastSuccessfulSyncTime",
|
123 + | "com.amazonaws.ssm",
|
124 + | "ResourceDataSyncItem",
|
125 + | ),
|
126 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
127 + | "LastSuccessfulSyncTime",
|
128 + | 5,
|
129 + | );
|
130 + | static RESOURCEDATASYNCITEM_MEMBER_SYNC_LAST_MODIFIED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
131 + | ::aws_smithy_schema::ShapeId::from_parts(
|
132 + | "com.amazonaws.ssm#ResourceDataSyncItem$SyncLastModifiedTime",
|
133 + | "com.amazonaws.ssm",
|
134 + | "ResourceDataSyncItem",
|
135 + | ),
|
136 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
137 + | "SyncLastModifiedTime",
|
138 + | 6,
|
139 + | );
|
140 + | static RESOURCEDATASYNCITEM_MEMBER_LAST_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
141 + | ::aws_smithy_schema::ShapeId::from_parts(
|
142 + | "com.amazonaws.ssm#ResourceDataSyncItem$LastStatus",
|
143 + | "com.amazonaws.ssm",
|
144 + | "ResourceDataSyncItem",
|
145 + | ),
|
146 + | ::aws_smithy_schema::ShapeType::String,
|
147 + | "LastStatus",
|
148 + | 7,
|
149 + | );
|
150 + | static RESOURCEDATASYNCITEM_MEMBER_SYNC_CREATED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
151 + | ::aws_smithy_schema::ShapeId::from_parts(
|
152 + | "com.amazonaws.ssm#ResourceDataSyncItem$SyncCreatedTime",
|
153 + | "com.amazonaws.ssm",
|
154 + | "ResourceDataSyncItem",
|
155 + | ),
|
156 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
157 + | "SyncCreatedTime",
|
158 + | 8,
|
159 + | );
|
160 + | static RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_STATUS_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
161 + | ::aws_smithy_schema::ShapeId::from_parts(
|
162 + | "com.amazonaws.ssm#ResourceDataSyncItem$LastSyncStatusMessage",
|
163 + | "com.amazonaws.ssm",
|
164 + | "ResourceDataSyncItem",
|
165 + | ),
|
166 + | ::aws_smithy_schema::ShapeType::String,
|
167 + | "LastSyncStatusMessage",
|
168 + | 9,
|
169 + | );
|
170 + | static RESOURCEDATASYNCITEM_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
171 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#ResourceDataSyncItem", "com.amazonaws.ssm", "ResourceDataSyncItem"),
|
172 + | ::aws_smithy_schema::ShapeType::Structure,
|
173 + | &[
|
174 + | &RESOURCEDATASYNCITEM_MEMBER_SYNC_NAME,
|
175 + | &RESOURCEDATASYNCITEM_MEMBER_SYNC_TYPE,
|
176 + | &RESOURCEDATASYNCITEM_MEMBER_SYNC_SOURCE,
|
177 + | &RESOURCEDATASYNCITEM_MEMBER_S3_DESTINATION,
|
178 + | &RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_TIME,
|
179 + | &RESOURCEDATASYNCITEM_MEMBER_LAST_SUCCESSFUL_SYNC_TIME,
|
180 + | &RESOURCEDATASYNCITEM_MEMBER_SYNC_LAST_MODIFIED_TIME,
|
181 + | &RESOURCEDATASYNCITEM_MEMBER_LAST_STATUS,
|
182 + | &RESOURCEDATASYNCITEM_MEMBER_SYNC_CREATED_TIME,
|
183 + | &RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_STATUS_MESSAGE,
|
184 + | ],
|
185 + | );
|
186 + | impl ResourceDataSyncItem {
|
187 + | /// The schema for this shape.
|
188 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &RESOURCEDATASYNCITEM_SCHEMA;
|
189 + | }
|
190 + | impl ::aws_smithy_schema::serde::SerializableStruct for ResourceDataSyncItem {
|
191 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
192 + | fn serialize_members(
|
193 + | &self,
|
194 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
195 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
196 + | if let Some(ref val) = self.sync_name {
|
197 + | ser.write_string(&RESOURCEDATASYNCITEM_MEMBER_SYNC_NAME, val)?;
|
198 + | }
|
199 + | if let Some(ref val) = self.sync_type {
|
200 + | ser.write_string(&RESOURCEDATASYNCITEM_MEMBER_SYNC_TYPE, val)?;
|
201 + | }
|
202 + | if let Some(ref val) = self.sync_source {
|
203 + | ser.write_struct(&RESOURCEDATASYNCITEM_MEMBER_SYNC_SOURCE, val)?;
|
204 + | }
|
205 + | if let Some(ref val) = self.s3_destination {
|
206 + | ser.write_struct(&RESOURCEDATASYNCITEM_MEMBER_S3_DESTINATION, val)?;
|
207 + | }
|
208 + | if let Some(ref val) = self.last_sync_time {
|
209 + | ser.write_timestamp(&RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_TIME, val)?;
|
210 + | }
|
211 + | if let Some(ref val) = self.last_successful_sync_time {
|
212 + | ser.write_timestamp(&RESOURCEDATASYNCITEM_MEMBER_LAST_SUCCESSFUL_SYNC_TIME, val)?;
|
213 + | }
|
214 + | if let Some(ref val) = self.sync_last_modified_time {
|
215 + | ser.write_timestamp(&RESOURCEDATASYNCITEM_MEMBER_SYNC_LAST_MODIFIED_TIME, val)?;
|
216 + | }
|
217 + | if let Some(ref val) = self.last_status {
|
218 + | ser.write_string(&RESOURCEDATASYNCITEM_MEMBER_LAST_STATUS, val.as_str())?;
|
219 + | }
|
220 + | if let Some(ref val) = self.sync_created_time {
|
221 + | ser.write_timestamp(&RESOURCEDATASYNCITEM_MEMBER_SYNC_CREATED_TIME, val)?;
|
222 + | }
|
223 + | if let Some(ref val) = self.last_sync_status_message {
|
224 + | ser.write_string(&RESOURCEDATASYNCITEM_MEMBER_LAST_SYNC_STATUS_MESSAGE, val)?;
|
225 + | }
|
226 + | Ok(())
|
227 + | }
|
228 + | }
|
229 + | impl ResourceDataSyncItem {
|
230 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
231 + | pub fn deserialize(
|
232 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
233 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
234 + | #[allow(unused_variables, unused_mut)]
|
235 + | let mut builder = Self::builder();
|
236 + | #[allow(
|
237 + | unused_variables,
|
238 + | unreachable_code,
|
239 + | clippy::single_match,
|
240 + | clippy::match_single_binding,
|
241 + | clippy::diverging_sub_expression
|
242 + | )]
|
243 + | deserializer.read_struct(&RESOURCEDATASYNCITEM_SCHEMA, &mut |member, deser| {
|
244 + | match member.member_index() {
|
245 + | Some(0) => {
|
246 + | if deser.is_null() {
|
247 + | deser.read_null()?;
|
248 + | } else {
|
249 + | builder.sync_name = Some(deser.read_string(member)?);
|
250 + | }
|
251 + | }
|
252 + | Some(1) => {
|
253 + | if deser.is_null() {
|
254 + | deser.read_null()?;
|
255 + | } else {
|
256 + | builder.sync_type = Some(deser.read_string(member)?);
|
257 + | }
|
258 + | }
|
259 + | Some(2) => {
|
260 + | if deser.is_null() {
|
261 + | deser.read_null()?;
|
262 + | } else {
|
263 + | builder.sync_source = Some(crate::types::ResourceDataSyncSourceWithState::deserialize(deser)?);
|
264 + | }
|
265 + | }
|
266 + | Some(3) => {
|
267 + | if deser.is_null() {
|
268 + | deser.read_null()?;
|
269 + | } else {
|
270 + | builder.s3_destination = Some(crate::types::ResourceDataSyncS3Destination::deserialize(deser)?);
|
271 + | }
|
272 + | }
|
273 + | Some(4) => {
|
274 + | if deser.is_null() {
|
275 + | deser.read_null()?;
|
276 + | } else {
|
277 + | builder.last_sync_time = Some(deser.read_timestamp(member)?);
|
278 + | }
|
279 + | }
|
280 + | Some(5) => {
|
281 + | if deser.is_null() {
|
282 + | deser.read_null()?;
|
283 + | } else {
|
284 + | builder.last_successful_sync_time = Some(deser.read_timestamp(member)?);
|
285 + | }
|
286 + | }
|
287 + | Some(6) => {
|
288 + | if deser.is_null() {
|
289 + | deser.read_null()?;
|
290 + | } else {
|
291 + | builder.sync_last_modified_time = Some(deser.read_timestamp(member)?);
|
292 + | }
|
293 + | }
|
294 + | Some(7) => {
|
295 + | if deser.is_null() {
|
296 + | deser.read_null()?;
|
297 + | } else {
|
298 + | builder.last_status = Some(crate::types::LastResourceDataSyncStatus::from(deser.read_string(member)?.as_str()));
|
299 + | }
|
300 + | }
|
301 + | Some(8) => {
|
302 + | if deser.is_null() {
|
303 + | deser.read_null()?;
|
304 + | } else {
|
305 + | builder.sync_created_time = Some(deser.read_timestamp(member)?);
|
306 + | }
|
307 + | }
|
308 + | Some(9) => {
|
309 + | if deser.is_null() {
|
310 + | deser.read_null()?;
|
311 + | } else {
|
312 + | builder.last_sync_status_message = Some(deser.read_string(member)?);
|
313 + | }
|
314 + | }
|
315 + | _ => {}
|
316 + | }
|
317 + | Ok(())
|
318 + | })?;
|
319 + | Ok(builder.build())
|
320 + | }
|
321 + | }
|
322 + | impl ResourceDataSyncItem {
|
323 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
324 + | pub fn deserialize_with_response(
|
325 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
326 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
327 + | _status: u16,
|
328 + | _body: &[u8],
|
329 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
330 + | Self::deserialize(deserializer)
|
331 + | }
|
332 + | }
|
333 + | impl ResourceDataSyncItem {
|
334 + | /// Creates a new builder-style object to manufacture [`ResourceDataSyncItem`](crate::types::ResourceDataSyncItem).
|
335 + | pub fn builder() -> crate::types::builders::ResourceDataSyncItemBuilder {
|
336 + | crate::types::builders::ResourceDataSyncItemBuilder::default()
|
337 + | }
|
338 + | }
|
339 + |
|
340 + | /// A builder for [`ResourceDataSyncItem`](crate::types::ResourceDataSyncItem).
|
341 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
342 + | #[non_exhaustive]
|
343 + | pub struct ResourceDataSyncItemBuilder {
|
344 + | pub(crate) sync_name: ::std::option::Option<::std::string::String>,
|
345 + | pub(crate) sync_type: ::std::option::Option<::std::string::String>,
|
346 + | pub(crate) sync_source: ::std::option::Option<crate::types::ResourceDataSyncSourceWithState>,
|
347 + | pub(crate) s3_destination: ::std::option::Option<crate::types::ResourceDataSyncS3Destination>,
|
348 + | pub(crate) last_sync_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
349 + | pub(crate) last_successful_sync_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
350 + | pub(crate) sync_last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
351 + | pub(crate) last_status: ::std::option::Option<crate::types::LastResourceDataSyncStatus>,
|
352 + | pub(crate) sync_created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
353 + | pub(crate) last_sync_status_message: ::std::option::Option<::std::string::String>,
|
354 + | }
|
355 + | impl ResourceDataSyncItemBuilder {
|
356 + | /// <p>The name of the resource data sync.</p>
|
357 + | pub fn sync_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
358 + | self.sync_name = ::std::option::Option::Some(input.into());
|
359 + | self
|
360 + | }
|
361 + | /// <p>The name of the resource data sync.</p>
|
362 + | pub fn set_sync_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
363 + | self.sync_name = input;
|
364 + | self
|
365 + | }
|
366 + | /// <p>The name of the resource data sync.</p>
|
367 + | pub fn get_sync_name(&self) -> &::std::option::Option<::std::string::String> {
|
368 + | &self.sync_name
|
369 + | }
|
370 + | /// <p>The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.</p>
|
371 + | pub fn sync_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
372 + | self.sync_type = ::std::option::Option::Some(input.into());
|
373 + | self
|
374 + | }
|
375 + | /// <p>The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.</p>
|
376 + | pub fn set_sync_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
377 + | self.sync_type = input;
|
378 + | self
|
379 + | }
|
380 + | /// <p>The type of resource data sync. If <code>SyncType</code> is <code>SyncToDestination</code>, then the resource data sync synchronizes data to an S3 bucket. If the <code>SyncType</code> is <code>SyncFromSource</code> then the resource data sync synchronizes data from Organizations or from multiple Amazon Web Services Regions.</p>
|
381 + | pub fn get_sync_type(&self) -> &::std::option::Option<::std::string::String> {
|
382 + | &self.sync_type
|
383 + | }
|
384 + | /// <p>Information about the source where the data was synchronized.</p>
|
385 + | pub fn sync_source(mut self, input: crate::types::ResourceDataSyncSourceWithState) -> Self {
|
386 + | self.sync_source = ::std::option::Option::Some(input);
|
387 + | self
|
388 + | }
|
389 + | /// <p>Information about the source where the data was synchronized.</p>
|
390 + | pub fn set_sync_source(mut self, input: ::std::option::Option<crate::types::ResourceDataSyncSourceWithState>) -> Self {
|
391 + | self.sync_source = input;
|
392 + | self
|
393 + | }
|
394 + | /// <p>Information about the source where the data was synchronized.</p>
|
395 + | pub fn get_sync_source(&self) -> &::std::option::Option<crate::types::ResourceDataSyncSourceWithState> {
|
396 + | &self.sync_source
|
397 + | }
|
398 + | /// <p>Configuration information for the target S3 bucket.</p>
|
399 + | pub fn s3_destination(mut self, input: crate::types::ResourceDataSyncS3Destination) -> Self {
|
400 + | self.s3_destination = ::std::option::Option::Some(input);
|
401 + | self
|
402 + | }
|
403 + | /// <p>Configuration information for the target S3 bucket.</p>
|
404 + | pub fn set_s3_destination(mut self, input: ::std::option::Option<crate::types::ResourceDataSyncS3Destination>) -> Self {
|
405 + | self.s3_destination = input;
|
406 + | self
|
407 + | }
|
408 + | /// <p>Configuration information for the target S3 bucket.</p>
|
409 + | pub fn get_s3_destination(&self) -> &::std::option::Option<crate::types::ResourceDataSyncS3Destination> {
|
410 + | &self.s3_destination
|
411 + | }
|
412 + | /// <p>The last time the configuration attempted to sync (UTC).</p>
|
413 + | pub fn last_sync_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
414 + | self.last_sync_time = ::std::option::Option::Some(input);
|
415 + | self
|
416 + | }
|
417 + | /// <p>The last time the configuration attempted to sync (UTC).</p>
|
418 + | pub fn set_last_sync_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
419 + | self.last_sync_time = input;
|
420 + | self
|
421 + | }
|
422 + | /// <p>The last time the configuration attempted to sync (UTC).</p>
|
423 + | pub fn get_last_sync_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
424 + | &self.last_sync_time
|
425 + | }
|
426 + | /// <p>The last time the sync operations returned a status of <code>SUCCESSFUL</code> (UTC).</p>
|
427 + | pub fn last_successful_sync_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
428 + | self.last_successful_sync_time = ::std::option::Option::Some(input);
|
429 + | self
|
430 + | }
|
431 + | /// <p>The last time the sync operations returned a status of <code>SUCCESSFUL</code> (UTC).</p>
|
432 + | pub fn set_last_successful_sync_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
433 + | self.last_successful_sync_time = input;
|
434 + | self
|
435 + | }
|
436 + | /// <p>The last time the sync operations returned a status of <code>SUCCESSFUL</code> (UTC).</p>
|
437 + | pub fn get_last_successful_sync_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
438 + | &self.last_successful_sync_time
|
439 + | }
|
440 + | /// <p>The date and time the resource data sync was changed.</p>
|
441 + | pub fn sync_last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
442 + | self.sync_last_modified_time = ::std::option::Option::Some(input);
|
443 + | self
|
444 + | }
|
445 + | /// <p>The date and time the resource data sync was changed.</p>
|
446 + | pub fn set_sync_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
447 + | self.sync_last_modified_time = input;
|
448 + | self
|
449 + | }
|
450 + | /// <p>The date and time the resource data sync was changed.</p>
|
451 + | pub fn get_sync_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
452 + | &self.sync_last_modified_time
|
453 + | }
|
454 + | /// <p>The status reported by the last sync.</p>
|
455 + | pub fn last_status(mut self, input: crate::types::LastResourceDataSyncStatus) -> Self {
|
456 + | self.last_status = ::std::option::Option::Some(input);
|
457 + | self
|
458 + | }
|
459 + | /// <p>The status reported by the last sync.</p>
|
460 + | pub fn set_last_status(mut self, input: ::std::option::Option<crate::types::LastResourceDataSyncStatus>) -> Self {
|
461 + | self.last_status = input;
|
462 + | self
|
463 + | }
|
464 + | /// <p>The status reported by the last sync.</p>
|
465 + | pub fn get_last_status(&self) -> &::std::option::Option<crate::types::LastResourceDataSyncStatus> {
|
466 + | &self.last_status
|
467 + | }
|
468 + | /// <p>The date and time the configuration was created (UTC).</p>
|
469 + | pub fn sync_created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
470 + | self.sync_created_time = ::std::option::Option::Some(input);
|
471 + | self
|
472 + | }
|
473 + | /// <p>The date and time the configuration was created (UTC).</p>
|
474 + | pub fn set_sync_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
475 + | self.sync_created_time = input;
|
476 + | self
|
477 + | }
|
478 + | /// <p>The date and time the configuration was created (UTC).</p>
|
479 + | pub fn get_sync_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
480 + | &self.sync_created_time
|
481 + | }
|
482 + | /// <p>The status message details reported by the last sync.</p>
|
483 + | pub fn last_sync_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
484 + | self.last_sync_status_message = ::std::option::Option::Some(input.into());
|
485 + | self
|
486 + | }
|
487 + | /// <p>The status message details reported by the last sync.</p>
|
488 + | pub fn set_last_sync_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
489 + | self.last_sync_status_message = input;
|
490 + | self
|
491 + | }
|
492 + | /// <p>The status message details reported by the last sync.</p>
|
493 + | pub fn get_last_sync_status_message(&self) -> &::std::option::Option<::std::string::String> {
|
494 + | &self.last_sync_status_message
|
495 + | }
|
496 + | /// Consumes the builder and constructs a [`ResourceDataSyncItem`](crate::types::ResourceDataSyncItem).
|
497 + | pub fn build(self) -> crate::types::ResourceDataSyncItem {
|
498 + | crate::types::ResourceDataSyncItem {
|
499 + | sync_name: self.sync_name,
|
500 + | sync_type: self.sync_type,
|
501 + | sync_source: self.sync_source,
|
502 + | s3_destination: self.s3_destination,
|
503 + | last_sync_time: self.last_sync_time,
|
504 + | last_successful_sync_time: self.last_successful_sync_time,
|
505 + | sync_last_modified_time: self.sync_last_modified_time,
|
506 + | last_status: self.last_status,
|
507 + | sync_created_time: self.sync_created_time,
|
508 + | last_sync_status_message: self.last_sync_status_message,
|
509 + | }
|
510 + | }
|
511 + | }
|