AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NotifyResourceDeploymentStatusChangeRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/proton/model/ResourceDeploymentStatus.h>
12#include <aws/proton/model/Output.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "NotifyResourceDeploymentStatusChange"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
45 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
46 template<typename DeploymentIdT = Aws::String>
47 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
48 template<typename DeploymentIdT = Aws::String>
49 NotifyResourceDeploymentStatusChangeRequest& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
51
53
57 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
58 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
59 template<typename OutputsT = Aws::Vector<Output>>
60 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
61 template<typename OutputsT = Aws::Vector<Output>>
62 NotifyResourceDeploymentStatusChangeRequest& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
63 template<typename OutputsT = Output>
64 NotifyResourceDeploymentStatusChangeRequest& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
66
68
71 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
72 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
73 template<typename ResourceArnT = Aws::String>
74 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
75 template<typename ResourceArnT = Aws::String>
76 NotifyResourceDeploymentStatusChangeRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
78
80
83 inline ResourceDeploymentStatus GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(ResourceDeploymentStatus value) { m_statusHasBeenSet = true; m_status = value; }
88
90
93 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
94 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
95 template<typename StatusMessageT = Aws::String>
96 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
97 template<typename StatusMessageT = Aws::String>
98 NotifyResourceDeploymentStatusChangeRequest& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
100 private:
101
102 Aws::String m_deploymentId;
103 bool m_deploymentIdHasBeenSet = false;
104
105 Aws::Vector<Output> m_outputs;
106 bool m_outputsHasBeenSet = false;
107
108 Aws::String m_resourceArn;
109 bool m_resourceArnHasBeenSet = false;
110
112 bool m_statusHasBeenSet = false;
113
114 Aws::String m_statusMessage;
115 bool m_statusMessageHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Proton
120} // namespace Aws
NotifyResourceDeploymentStatusChangeRequest & WithOutputs(OutputsT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
NotifyResourceDeploymentStatusChangeRequest & WithDeploymentId(DeploymentIdT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
NotifyResourceDeploymentStatusChangeRequest & WithResourceArn(ResourceArnT &&value)
NotifyResourceDeploymentStatusChangeRequest & AddOutputs(OutputsT &&value)
NotifyResourceDeploymentStatusChangeRequest & WithStatus(ResourceDeploymentStatus value)
NotifyResourceDeploymentStatusChangeRequest & WithStatusMessage(StatusMessageT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector