aws_sdk_cloudcontrol/operation/update_resource/_update_resource_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateResourceOutput {
6 /// <p>Represents the current status of the resource update request.</p>
7 /// <p>Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>
8 pub progress_event: ::std::option::Option<crate::types::ProgressEvent>,
9 _request_id: Option<String>,
10}
11impl UpdateResourceOutput {
12 /// <p>Represents the current status of the resource update request.</p>
13 /// <p>Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>
14 pub fn progress_event(&self) -> ::std::option::Option<&crate::types::ProgressEvent> {
15 self.progress_event.as_ref()
16 }
17}
18impl ::aws_types::request_id::RequestId for UpdateResourceOutput {
19 fn request_id(&self) -> Option<&str> {
20 self._request_id.as_deref()
21 }
22}
23impl UpdateResourceOutput {
24 /// Creates a new builder-style object to manufacture [`UpdateResourceOutput`](crate::operation::update_resource::UpdateResourceOutput).
25 pub fn builder() -> crate::operation::update_resource::builders::UpdateResourceOutputBuilder {
26 crate::operation::update_resource::builders::UpdateResourceOutputBuilder::default()
27 }
28}
29
30/// A builder for [`UpdateResourceOutput`](crate::operation::update_resource::UpdateResourceOutput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct UpdateResourceOutputBuilder {
34 pub(crate) progress_event: ::std::option::Option<crate::types::ProgressEvent>,
35 _request_id: Option<String>,
36}
37impl UpdateResourceOutputBuilder {
38 /// <p>Represents the current status of the resource update request.</p>
39 /// <p>Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>
40 pub fn progress_event(mut self, input: crate::types::ProgressEvent) -> Self {
41 self.progress_event = ::std::option::Option::Some(input);
42 self
43 }
44 /// <p>Represents the current status of the resource update request.</p>
45 /// <p>Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>
46 pub fn set_progress_event(mut self, input: ::std::option::Option<crate::types::ProgressEvent>) -> Self {
47 self.progress_event = input;
48 self
49 }
50 /// <p>Represents the current status of the resource update request.</p>
51 /// <p>Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>
52 pub fn get_progress_event(&self) -> &::std::option::Option<crate::types::ProgressEvent> {
53 &self.progress_event
54 }
55 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
56 self._request_id = Some(request_id.into());
57 self
58 }
59
60 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
61 self._request_id = request_id;
62 self
63 }
64 /// Consumes the builder and constructs a [`UpdateResourceOutput`](crate::operation::update_resource::UpdateResourceOutput).
65 pub fn build(self) -> crate::operation::update_resource::UpdateResourceOutput {
66 crate::operation::update_resource::UpdateResourceOutput {
67 progress_event: self.progress_event,
68 _request_id: self._request_id,
69 }
70 }
71}