aws_sdk_proton/operation/notify_resource_deployment_status_change/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::notify_resource_deployment_status_change::_notify_resource_deployment_status_change_output::NotifyResourceDeploymentStatusChangeOutputBuilder;
3
4pub use crate::operation::notify_resource_deployment_status_change::_notify_resource_deployment_status_change_input::NotifyResourceDeploymentStatusChangeInputBuilder;
5
6impl crate::operation::notify_resource_deployment_status_change::builders::NotifyResourceDeploymentStatusChangeInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.notify_resource_deployment_status_change();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `NotifyResourceDeploymentStatusChange`.
24///
25/// <p>Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.</p>
26/// <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">Self-managed provisioning</a> in the <i>Proton User Guide</i>.</p>
27#[deprecated(note = "AWS Proton is not accepting new customers.", since = "10/07/2025")]
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct NotifyResourceDeploymentStatusChangeFluentBuilder {
30    handle: ::std::sync::Arc<crate::client::Handle>,
31    inner: crate::operation::notify_resource_deployment_status_change::builders::NotifyResourceDeploymentStatusChangeInputBuilder,
32    config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35    crate::client::customize::internal::CustomizableSend<
36        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeOutput,
37        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
38    > for NotifyResourceDeploymentStatusChangeFluentBuilder
39{
40    fn send(
41        self,
42        config_override: crate::config::Builder,
43    ) -> crate::client::customize::internal::BoxFuture<
44        crate::client::customize::internal::SendResult<
45            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeOutput,
46            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
47        >,
48    > {
49        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50    }
51}
52impl NotifyResourceDeploymentStatusChangeFluentBuilder {
53    /// Creates a new `NotifyResourceDeploymentStatusChangeFluentBuilder`.
54    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
55        Self {
56            handle,
57            inner: ::std::default::Default::default(),
58            config_override: ::std::option::Option::None,
59        }
60    }
61    /// Access the NotifyResourceDeploymentStatusChange as a reference.
62    pub fn as_input(
63        &self,
64    ) -> &crate::operation::notify_resource_deployment_status_change::builders::NotifyResourceDeploymentStatusChangeInputBuilder {
65        &self.inner
66    }
67    /// Sends the request and returns the response.
68    ///
69    /// If an error occurs, an `SdkError` will be returned with additional details that
70    /// can be matched against.
71    ///
72    /// By default, any retryable failures will be retried twice. Retry behavior
73    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
74    /// set when configuring the client.
75    pub async fn send(
76        self,
77    ) -> ::std::result::Result<
78        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeOutput,
79        ::aws_smithy_runtime_api::client::result::SdkError<
80            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
81            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
82        >,
83    > {
84        let input = self
85            .inner
86            .build()
87            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
88        let runtime_plugins =
89            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChange::operation_runtime_plugins(
90                self.handle.runtime_plugins.clone(),
91                &self.handle.conf,
92                self.config_override,
93            );
94        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChange::orchestrate(&runtime_plugins, input).await
95    }
96
97    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
98    pub fn customize(
99        self,
100    ) -> crate::client::customize::CustomizableOperation<
101        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeOutput,
102        crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
103        Self,
104    > {
105        crate::client::customize::CustomizableOperation::new(self)
106    }
107    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
108        self.set_config_override(::std::option::Option::Some(config_override.into()));
109        self
110    }
111
112    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
113        self.config_override = config_override;
114        self
115    }
116    /// <p>The provisioned resource Amazon Resource Name (ARN).</p>
117    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118        self.inner = self.inner.resource_arn(input.into());
119        self
120    }
121    /// <p>The provisioned resource Amazon Resource Name (ARN).</p>
122    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123        self.inner = self.inner.set_resource_arn(input);
124        self
125    }
126    /// <p>The provisioned resource Amazon Resource Name (ARN).</p>
127    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
128        self.inner.get_resource_arn()
129    }
130    /// <p>The status of your provisioned resource.</p>
131    pub fn status(mut self, input: crate::types::ResourceDeploymentStatus) -> Self {
132        self.inner = self.inner.status(input);
133        self
134    }
135    /// <p>The status of your provisioned resource.</p>
136    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ResourceDeploymentStatus>) -> Self {
137        self.inner = self.inner.set_status(input);
138        self
139    }
140    /// <p>The status of your provisioned resource.</p>
141    pub fn get_status(&self) -> &::std::option::Option<crate::types::ResourceDeploymentStatus> {
142        self.inner.get_status()
143    }
144    ///
145    /// Appends an item to `outputs`.
146    ///
147    /// To override the contents of this collection use [`set_outputs`](Self::set_outputs).
148    ///
149    /// <p>The provisioned resource state change detail data that's returned by Proton.</p>
150    pub fn outputs(mut self, input: crate::types::Output) -> Self {
151        self.inner = self.inner.outputs(input);
152        self
153    }
154    /// <p>The provisioned resource state change detail data that's returned by Proton.</p>
155    pub fn set_outputs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Output>>) -> Self {
156        self.inner = self.inner.set_outputs(input);
157        self
158    }
159    /// <p>The provisioned resource state change detail data that's returned by Proton.</p>
160    pub fn get_outputs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Output>> {
161        self.inner.get_outputs()
162    }
163    /// <p>The deployment ID for your provisioned resource.</p>
164    pub fn deployment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
165        self.inner = self.inner.deployment_id(input.into());
166        self
167    }
168    /// <p>The deployment ID for your provisioned resource.</p>
169    pub fn set_deployment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
170        self.inner = self.inner.set_deployment_id(input);
171        self
172    }
173    /// <p>The deployment ID for your provisioned resource.</p>
174    pub fn get_deployment_id(&self) -> &::std::option::Option<::std::string::String> {
175        self.inner.get_deployment_id()
176    }
177    /// <p>The deployment status message for your provisioned resource.</p>
178    pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179        self.inner = self.inner.status_message(input.into());
180        self
181    }
182    /// <p>The deployment status message for your provisioned resource.</p>
183    pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
184        self.inner = self.inner.set_status_message(input);
185        self
186    }
187    /// <p>The deployment status message for your provisioned resource.</p>
188    pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
189        self.inner.get_status_message()
190    }
191}