1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Version information about the document.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct DocumentVersionInfo {
|
7 + | /// <p>The document name.</p>
|
8 + | pub name: ::std::option::Option<::std::string::String>,
|
9 + | /// <p>The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see <code>UpdateDocument</code>.</p>
|
10 + | pub display_name: ::std::option::Option<::std::string::String>,
|
11 + | /// <p>The document version.</p>
|
12 + | pub document_version: ::std::option::Option<::std::string::String>,
|
13 + | /// <p>The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.</p>
|
14 + | pub version_name: ::std::option::Option<::std::string::String>,
|
15 + | /// <p>The date the document was created.</p>
|
16 + | pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17 + | /// <p>An identifier for the default version of the document.</p>
|
18 + | pub is_default_version: bool,
|
19 + | /// <p>The document format, either JSON or YAML.</p>
|
20 + | pub document_format: ::std::option::Option<crate::types::DocumentFormat>,
|
21 + | /// <p>The status of the SSM document, such as <code>Creating</code>, <code>Active</code>, <code>Failed</code>, and <code>Deleting</code>.</p>
|
22 + | pub status: ::std::option::Option<crate::types::DocumentStatus>,
|
23 + | /// <p>A message returned by Amazon Web Services Systems Manager that explains the <code>Status</code> value. For example, a <code>Failed</code> status might be explained by the <code>StatusInformation</code> message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."</p>
|
24 + | pub status_information: ::std::option::Option<::std::string::String>,
|
25 + | /// <p>The current status of the approval review for the latest version of the document.</p>
|
26 + | pub review_status: ::std::option::Option<crate::types::ReviewStatus>,
|
27 + | }
|
28 + | impl DocumentVersionInfo {
|
29 + | /// <p>The document name.</p>
|
30 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
31 + | self.name.as_deref()
|
32 + | }
|
33 + | /// <p>The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see <code>UpdateDocument</code>.</p>
|
34 + | pub fn display_name(&self) -> ::std::option::Option<&str> {
|
35 + | self.display_name.as_deref()
|
36 + | }
|
37 + | /// <p>The document version.</p>
|
38 + | pub fn document_version(&self) -> ::std::option::Option<&str> {
|
39 + | self.document_version.as_deref()
|
40 + | }
|
41 + | /// <p>The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.</p>
|
42 + | pub fn version_name(&self) -> ::std::option::Option<&str> {
|
43 + | self.version_name.as_deref()
|
44 + | }
|
45 + | /// <p>The date the document was created.</p>
|
46 + | pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
47 + | self.created_date.as_ref()
|
48 + | }
|
49 + | /// <p>An identifier for the default version of the document.</p>
|
50 + | pub fn is_default_version(&self) -> bool {
|
51 + | self.is_default_version
|
52 + | }
|
53 + | /// <p>The document format, either JSON or YAML.</p>
|
54 + | pub fn document_format(&self) -> ::std::option::Option<&crate::types::DocumentFormat> {
|
55 + | self.document_format.as_ref()
|
56 + | }
|
57 + | /// <p>The status of the SSM document, such as <code>Creating</code>, <code>Active</code>, <code>Failed</code>, and <code>Deleting</code>.</p>
|
58 + | pub fn status(&self) -> ::std::option::Option<&crate::types::DocumentStatus> {
|
59 + | self.status.as_ref()
|
60 + | }
|
61 + | /// <p>A message returned by Amazon Web Services Systems Manager that explains the <code>Status</code> value. For example, a <code>Failed</code> status might be explained by the <code>StatusInformation</code> message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."</p>
|
62 + | pub fn status_information(&self) -> ::std::option::Option<&str> {
|
63 + | self.status_information.as_deref()
|
64 + | }
|
65 + | /// <p>The current status of the approval review for the latest version of the document.</p>
|
66 + | pub fn review_status(&self) -> ::std::option::Option<&crate::types::ReviewStatus> {
|
67 + | self.review_status.as_ref()
|
68 + | }
|
69 + | }
|
70 + | static DOCUMENTVERSIONINFO_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
71 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#DocumentVersionInfo$Name", "com.amazonaws.ssm", "DocumentVersionInfo"),
|
72 + | ::aws_smithy_schema::ShapeType::String,
|
73 + | "Name",
|
74 + | 0,
|
75 + | );
|
76 + | static DOCUMENTVERSIONINFO_MEMBER_DISPLAY_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
77 + | ::aws_smithy_schema::ShapeId::from_parts(
|
78 + | "com.amazonaws.ssm#DocumentVersionInfo$DisplayName",
|
79 + | "com.amazonaws.ssm",
|
80 + | "DocumentVersionInfo",
|
81 + | ),
|
82 + | ::aws_smithy_schema::ShapeType::String,
|
83 + | "DisplayName",
|
84 + | 1,
|
85 + | );
|
86 + | static DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
87 + | ::aws_smithy_schema::ShapeId::from_parts(
|
88 + | "com.amazonaws.ssm#DocumentVersionInfo$DocumentVersion",
|
89 + | "com.amazonaws.ssm",
|
90 + | "DocumentVersionInfo",
|
91 + | ),
|
92 + | ::aws_smithy_schema::ShapeType::String,
|
93 + | "DocumentVersion",
|
94 + | 2,
|
95 + | );
|
96 + | static DOCUMENTVERSIONINFO_MEMBER_VERSION_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
97 + | ::aws_smithy_schema::ShapeId::from_parts(
|
98 + | "com.amazonaws.ssm#DocumentVersionInfo$VersionName",
|
99 + | "com.amazonaws.ssm",
|
100 + | "DocumentVersionInfo",
|
101 + | ),
|
102 + | ::aws_smithy_schema::ShapeType::String,
|
103 + | "VersionName",
|
104 + | 3,
|
105 + | );
|
106 + | static DOCUMENTVERSIONINFO_MEMBER_CREATED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
107 + | ::aws_smithy_schema::ShapeId::from_parts(
|
108 + | "com.amazonaws.ssm#DocumentVersionInfo$CreatedDate",
|
109 + | "com.amazonaws.ssm",
|
110 + | "DocumentVersionInfo",
|
111 + | ),
|
112 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
113 + | "CreatedDate",
|
114 + | 4,
|
115 + | );
|
116 + | static DOCUMENTVERSIONINFO_MEMBER_IS_DEFAULT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
117 + | ::aws_smithy_schema::ShapeId::from_parts(
|
118 + | "com.amazonaws.ssm#DocumentVersionInfo$IsDefaultVersion",
|
119 + | "com.amazonaws.ssm",
|
120 + | "DocumentVersionInfo",
|
121 + | ),
|
122 + | ::aws_smithy_schema::ShapeType::Boolean,
|
123 + | "IsDefaultVersion",
|
124 + | 5,
|
125 + | );
|
126 + | static DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_FORMAT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
127 + | ::aws_smithy_schema::ShapeId::from_parts(
|
128 + | "com.amazonaws.ssm#DocumentVersionInfo$DocumentFormat",
|
129 + | "com.amazonaws.ssm",
|
130 + | "DocumentVersionInfo",
|
131 + | ),
|
132 + | ::aws_smithy_schema::ShapeType::String,
|
133 + | "DocumentFormat",
|
134 + | 6,
|
135 + | );
|
136 + | static DOCUMENTVERSIONINFO_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
137 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#DocumentVersionInfo$Status", "com.amazonaws.ssm", "DocumentVersionInfo"),
|
138 + | ::aws_smithy_schema::ShapeType::String,
|
139 + | "Status",
|
140 + | 7,
|
141 + | );
|
142 + | static DOCUMENTVERSIONINFO_MEMBER_STATUS_INFORMATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
143 + | ::aws_smithy_schema::ShapeId::from_parts(
|
144 + | "com.amazonaws.ssm#DocumentVersionInfo$StatusInformation",
|
145 + | "com.amazonaws.ssm",
|
146 + | "DocumentVersionInfo",
|
147 + | ),
|
148 + | ::aws_smithy_schema::ShapeType::String,
|
149 + | "StatusInformation",
|
150 + | 8,
|
151 + | );
|
152 + | static DOCUMENTVERSIONINFO_MEMBER_REVIEW_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
153 + | ::aws_smithy_schema::ShapeId::from_parts(
|
154 + | "com.amazonaws.ssm#DocumentVersionInfo$ReviewStatus",
|
155 + | "com.amazonaws.ssm",
|
156 + | "DocumentVersionInfo",
|
157 + | ),
|
158 + | ::aws_smithy_schema::ShapeType::String,
|
159 + | "ReviewStatus",
|
160 + | 9,
|
161 + | );
|
162 + | static DOCUMENTVERSIONINFO_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
163 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#DocumentVersionInfo", "com.amazonaws.ssm", "DocumentVersionInfo"),
|
164 + | ::aws_smithy_schema::ShapeType::Structure,
|
165 + | &[
|
166 + | &DOCUMENTVERSIONINFO_MEMBER_NAME,
|
167 + | &DOCUMENTVERSIONINFO_MEMBER_DISPLAY_NAME,
|
168 + | &DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_VERSION,
|
169 + | &DOCUMENTVERSIONINFO_MEMBER_VERSION_NAME,
|
170 + | &DOCUMENTVERSIONINFO_MEMBER_CREATED_DATE,
|
171 + | &DOCUMENTVERSIONINFO_MEMBER_IS_DEFAULT_VERSION,
|
172 + | &DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_FORMAT,
|
173 + | &DOCUMENTVERSIONINFO_MEMBER_STATUS,
|
174 + | &DOCUMENTVERSIONINFO_MEMBER_STATUS_INFORMATION,
|
175 + | &DOCUMENTVERSIONINFO_MEMBER_REVIEW_STATUS,
|
176 + | ],
|
177 + | );
|
178 + | impl DocumentVersionInfo {
|
179 + | /// The schema for this shape.
|
180 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DOCUMENTVERSIONINFO_SCHEMA;
|
181 + | }
|
182 + | impl ::aws_smithy_schema::serde::SerializableStruct for DocumentVersionInfo {
|
183 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
184 + | fn serialize_members(
|
185 + | &self,
|
186 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
187 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
188 + | if let Some(ref val) = self.name {
|
189 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_NAME, val)?;
|
190 + | }
|
191 + | if let Some(ref val) = self.display_name {
|
192 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_DISPLAY_NAME, val)?;
|
193 + | }
|
194 + | if let Some(ref val) = self.document_version {
|
195 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_VERSION, val)?;
|
196 + | }
|
197 + | if let Some(ref val) = self.version_name {
|
198 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_VERSION_NAME, val)?;
|
199 + | }
|
200 + | if let Some(ref val) = self.created_date {
|
201 + | ser.write_timestamp(&DOCUMENTVERSIONINFO_MEMBER_CREATED_DATE, val)?;
|
202 + | }
|
203 + | {
|
204 + | let val = &self.is_default_version;
|
205 + | ser.write_boolean(&DOCUMENTVERSIONINFO_MEMBER_IS_DEFAULT_VERSION, *val)?;
|
206 + | }
|
207 + | if let Some(ref val) = self.document_format {
|
208 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_DOCUMENT_FORMAT, val.as_str())?;
|
209 + | }
|
210 + | if let Some(ref val) = self.status {
|
211 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_STATUS, val.as_str())?;
|
212 + | }
|
213 + | if let Some(ref val) = self.status_information {
|
214 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_STATUS_INFORMATION, val)?;
|
215 + | }
|
216 + | if let Some(ref val) = self.review_status {
|
217 + | ser.write_string(&DOCUMENTVERSIONINFO_MEMBER_REVIEW_STATUS, val.as_str())?;
|
218 + | }
|
219 + | Ok(())
|
220 + | }
|
221 + | }
|
222 + | impl DocumentVersionInfo {
|
223 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
224 + | pub fn deserialize(
|
225 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
226 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
227 + | #[allow(unused_variables, unused_mut)]
|
228 + | let mut builder = Self::builder();
|
229 + | #[allow(
|
230 + | unused_variables,
|
231 + | unreachable_code,
|
232 + | clippy::single_match,
|
233 + | clippy::match_single_binding,
|
234 + | clippy::diverging_sub_expression
|
235 + | )]
|
236 + | deserializer.read_struct(&DOCUMENTVERSIONINFO_SCHEMA, &mut |member, deser| {
|
237 + | match member.member_index() {
|
238 + | Some(0) => {
|
239 + | if deser.is_null() {
|
240 + | deser.read_null()?;
|
241 + | } else {
|
242 + | builder.name = Some(deser.read_string(member)?);
|
243 + | }
|
244 + | }
|
245 + | Some(1) => {
|
246 + | if deser.is_null() {
|
247 + | deser.read_null()?;
|
248 + | } else {
|
249 + | builder.display_name = Some(deser.read_string(member)?);
|
250 + | }
|
251 + | }
|
252 + | Some(2) => {
|
253 + | if deser.is_null() {
|
254 + | deser.read_null()?;
|
255 + | } else {
|
256 + | builder.document_version = Some(deser.read_string(member)?);
|
257 + | }
|
258 + | }
|
259 + | Some(3) => {
|
260 + | if deser.is_null() {
|
261 + | deser.read_null()?;
|
262 + | } else {
|
263 + | builder.version_name = Some(deser.read_string(member)?);
|
264 + | }
|
265 + | }
|
266 + | Some(4) => {
|
267 + | if deser.is_null() {
|
268 + | deser.read_null()?;
|
269 + | } else {
|
270 + | builder.created_date = Some(deser.read_timestamp(member)?);
|
271 + | }
|
272 + | }
|
273 + | Some(5) => {
|
274 + | builder.is_default_version = Some(deser.read_boolean(member)?);
|
275 + | }
|
276 + | Some(6) => {
|
277 + | if deser.is_null() {
|
278 + | deser.read_null()?;
|
279 + | } else {
|
280 + | builder.document_format = Some(crate::types::DocumentFormat::from(deser.read_string(member)?.as_str()));
|
281 + | }
|
282 + | }
|
283 + | Some(7) => {
|
284 + | if deser.is_null() {
|
285 + | deser.read_null()?;
|
286 + | } else {
|
287 + | builder.status = Some(crate::types::DocumentStatus::from(deser.read_string(member)?.as_str()));
|
288 + | }
|
289 + | }
|
290 + | Some(8) => {
|
291 + | if deser.is_null() {
|
292 + | deser.read_null()?;
|
293 + | } else {
|
294 + | builder.status_information = Some(deser.read_string(member)?);
|
295 + | }
|
296 + | }
|
297 + | Some(9) => {
|
298 + | if deser.is_null() {
|
299 + | deser.read_null()?;
|
300 + | } else {
|
301 + | builder.review_status = Some(crate::types::ReviewStatus::from(deser.read_string(member)?.as_str()));
|
302 + | }
|
303 + | }
|
304 + | _ => {}
|
305 + | }
|
306 + | Ok(())
|
307 + | })?;
|
308 + | Ok(builder.build())
|
309 + | }
|
310 + | }
|
311 + | impl DocumentVersionInfo {
|
312 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
313 + | pub fn deserialize_with_response(
|
314 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
315 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
316 + | _status: u16,
|
317 + | _body: &[u8],
|
318 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
319 + | Self::deserialize(deserializer)
|
320 + | }
|
321 + | }
|
322 + | impl DocumentVersionInfo {
|
323 + | /// Creates a new builder-style object to manufacture [`DocumentVersionInfo`](crate::types::DocumentVersionInfo).
|
324 + | pub fn builder() -> crate::types::builders::DocumentVersionInfoBuilder {
|
325 + | crate::types::builders::DocumentVersionInfoBuilder::default()
|
326 + | }
|
327 + | }
|
328 + |
|
329 + | /// A builder for [`DocumentVersionInfo`](crate::types::DocumentVersionInfo).
|
330 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
331 + | #[non_exhaustive]
|
332 + | pub struct DocumentVersionInfoBuilder {
|
333 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
334 + | pub(crate) display_name: ::std::option::Option<::std::string::String>,
|
335 + | pub(crate) document_version: ::std::option::Option<::std::string::String>,
|
336 + | pub(crate) version_name: ::std::option::Option<::std::string::String>,
|
337 + | pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
338 + | pub(crate) is_default_version: ::std::option::Option<bool>,
|
339 + | pub(crate) document_format: ::std::option::Option<crate::types::DocumentFormat>,
|
340 + | pub(crate) status: ::std::option::Option<crate::types::DocumentStatus>,
|
341 + | pub(crate) status_information: ::std::option::Option<::std::string::String>,
|
342 + | pub(crate) review_status: ::std::option::Option<crate::types::ReviewStatus>,
|
343 + | }
|
344 + | impl DocumentVersionInfoBuilder {
|
345 + | /// <p>The document name.</p>
|
346 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
347 + | self.name = ::std::option::Option::Some(input.into());
|
348 + | self
|
349 + | }
|
350 + | /// <p>The document name.</p>
|
351 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
352 + | self.name = input;
|
353 + | self
|
354 + | }
|
355 + | /// <p>The document name.</p>
|
356 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
357 + | &self.name
|
358 + | }
|
359 + | /// <p>The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see <code>UpdateDocument</code>.</p>
|
360 + | pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
361 + | self.display_name = ::std::option::Option::Some(input.into());
|
362 + | self
|
363 + | }
|
364 + | /// <p>The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see <code>UpdateDocument</code>.</p>
|
365 + | pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
366 + | self.display_name = input;
|
367 + | self
|
368 + | }
|
369 + | /// <p>The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see <code>UpdateDocument</code>.</p>
|
370 + | pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
|
371 + | &self.display_name
|
372 + | }
|
373 + | /// <p>The document version.</p>
|
374 + | pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
375 + | self.document_version = ::std::option::Option::Some(input.into());
|
376 + | self
|
377 + | }
|
378 + | /// <p>The document version.</p>
|
379 + | pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
380 + | self.document_version = input;
|
381 + | self
|
382 + | }
|
383 + | /// <p>The document version.</p>
|
384 + | pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
|
385 + | &self.document_version
|
386 + | }
|
387 + | /// <p>The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.</p>
|
388 + | pub fn version_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
389 + | self.version_name = ::std::option::Option::Some(input.into());
|
390 + | self
|
391 + | }
|
392 + | /// <p>The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.</p>
|
393 + | pub fn set_version_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
394 + | self.version_name = input;
|
395 + | self
|
396 + | }
|
397 + | /// <p>The version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.</p>
|
398 + | pub fn get_version_name(&self) -> &::std::option::Option<::std::string::String> {
|
399 + | &self.version_name
|
400 + | }
|
401 + | /// <p>The date the document was created.</p>
|
402 + | pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
403 + | self.created_date = ::std::option::Option::Some(input);
|
404 + | self
|
405 + | }
|
406 + | /// <p>The date the document was created.</p>
|
407 + | pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
408 + | self.created_date = input;
|
409 + | self
|
410 + | }
|
411 + | /// <p>The date the document was created.</p>
|
412 + | pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
413 + | &self.created_date
|
414 + | }
|
415 + | /// <p>An identifier for the default version of the document.</p>
|
416 + | pub fn is_default_version(mut self, input: bool) -> Self {
|
417 + | self.is_default_version = ::std::option::Option::Some(input);
|
418 + | self
|
419 + | }
|
420 + | /// <p>An identifier for the default version of the document.</p>
|
421 + | pub fn set_is_default_version(mut self, input: ::std::option::Option<bool>) -> Self {
|
422 + | self.is_default_version = input;
|
423 + | self
|
424 + | }
|
425 + | /// <p>An identifier for the default version of the document.</p>
|
426 + | pub fn get_is_default_version(&self) -> &::std::option::Option<bool> {
|
427 + | &self.is_default_version
|
428 + | }
|
429 + | /// <p>The document format, either JSON or YAML.</p>
|
430 + | pub fn document_format(mut self, input: crate::types::DocumentFormat) -> Self {
|
431 + | self.document_format = ::std::option::Option::Some(input);
|
432 + | self
|
433 + | }
|
434 + | /// <p>The document format, either JSON or YAML.</p>
|
435 + | pub fn set_document_format(mut self, input: ::std::option::Option<crate::types::DocumentFormat>) -> Self {
|
436 + | self.document_format = input;
|
437 + | self
|
438 + | }
|
439 + | /// <p>The document format, either JSON or YAML.</p>
|
440 + | pub fn get_document_format(&self) -> &::std::option::Option<crate::types::DocumentFormat> {
|
441 + | &self.document_format
|
442 + | }
|
443 + | /// <p>The status of the SSM document, such as <code>Creating</code>, <code>Active</code>, <code>Failed</code>, and <code>Deleting</code>.</p>
|
444 + | pub fn status(mut self, input: crate::types::DocumentStatus) -> Self {
|
445 + | self.status = ::std::option::Option::Some(input);
|
446 + | self
|
447 + | }
|
448 + | /// <p>The status of the SSM document, such as <code>Creating</code>, <code>Active</code>, <code>Failed</code>, and <code>Deleting</code>.</p>
|
449 + | pub fn set_status(mut self, input: ::std::option::Option<crate::types::DocumentStatus>) -> Self {
|
450 + | self.status = input;
|
451 + | self
|
452 + | }
|
453 + | /// <p>The status of the SSM document, such as <code>Creating</code>, <code>Active</code>, <code>Failed</code>, and <code>Deleting</code>.</p>
|
454 + | pub fn get_status(&self) -> &::std::option::Option<crate::types::DocumentStatus> {
|
455 + | &self.status
|
456 + | }
|
457 + | /// <p>A message returned by Amazon Web Services Systems Manager that explains the <code>Status</code> value. For example, a <code>Failed</code> status might be explained by the <code>StatusInformation</code> message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."</p>
|
458 + | pub fn status_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
459 + | self.status_information = ::std::option::Option::Some(input.into());
|
460 + | self
|
461 + | }
|
462 + | /// <p>A message returned by Amazon Web Services Systems Manager that explains the <code>Status</code> value. For example, a <code>Failed</code> status might be explained by the <code>StatusInformation</code> message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."</p>
|
463 + | pub fn set_status_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
464 + | self.status_information = input;
|
465 + | self
|
466 + | }
|
467 + | /// <p>A message returned by Amazon Web Services Systems Manager that explains the <code>Status</code> value. For example, a <code>Failed</code> status might be explained by the <code>StatusInformation</code> message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."</p>
|
468 + | pub fn get_status_information(&self) -> &::std::option::Option<::std::string::String> {
|
469 + | &self.status_information
|
470 + | }
|
471 + | /// <p>The current status of the approval review for the latest version of the document.</p>
|
472 + | pub fn review_status(mut self, input: crate::types::ReviewStatus) -> Self {
|
473 + | self.review_status = ::std::option::Option::Some(input);
|
474 + | self
|
475 + | }
|
476 + | /// <p>The current status of the approval review for the latest version of the document.</p>
|
477 + | pub fn set_review_status(mut self, input: ::std::option::Option<crate::types::ReviewStatus>) -> Self {
|
478 + | self.review_status = input;
|
479 + | self
|
480 + | }
|
481 + | /// <p>The current status of the approval review for the latest version of the document.</p>
|
482 + | pub fn get_review_status(&self) -> &::std::option::Option<crate::types::ReviewStatus> {
|
483 + | &self.review_status
|
484 + | }
|
485 + | /// Consumes the builder and constructs a [`DocumentVersionInfo`](crate::types::DocumentVersionInfo).
|
486 + | pub fn build(self) -> crate::types::DocumentVersionInfo {
|
487 + | crate::types::DocumentVersionInfo {
|
488 + | name: self.name,
|
489 + | display_name: self.display_name,
|
490 + | document_version: self.document_version,
|
491 + | version_name: self.version_name,
|
492 + | created_date: self.created_date,
|
493 + | is_default_version: self.is_default_version.unwrap_or_default(),
|
494 + | document_format: self.document_format,
|
495 + | status: self.status,
|
496 + | status_information: self.status_information,
|
497 + | review_status: self.review_status,
|
498 + | }
|
499 + | }
|
500 + | }
|