AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
47 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
48 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
51 inline NotifyResourceDeploymentStatusChangeRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
53
55
59 inline const Aws::Vector<Output>& GetOutputs() const{ return m_outputs; }
60 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
61 inline void SetOutputs(const Aws::Vector<Output>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
62 inline void SetOutputs(Aws::Vector<Output>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
65 inline NotifyResourceDeploymentStatusChangeRequest& AddOutputs(const Output& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
66 inline NotifyResourceDeploymentStatusChangeRequest& AddOutputs(Output&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
74 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
75 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
76 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
77 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
80 inline NotifyResourceDeploymentStatusChangeRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
82
84
87 inline const ResourceDeploymentStatus& GetStatus() const{ return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(const ResourceDeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
90 inline void SetStatus(ResourceDeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94
96
99 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
100 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
101 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
102 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
103 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
106 inline NotifyResourceDeploymentStatusChangeRequest& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
108 private:
109
110 Aws::String m_deploymentId;
111 bool m_deploymentIdHasBeenSet = false;
112
113 Aws::Vector<Output> m_outputs;
114 bool m_outputsHasBeenSet = false;
115
116 Aws::String m_resourceArn;
117 bool m_resourceArnHasBeenSet = false;
118
120 bool m_statusHasBeenSet = false;
121
122 Aws::String m_statusMessage;
123 bool m_statusMessageHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Proton
128} // namespace Aws
NotifyResourceDeploymentStatusChangeRequest & WithDeploymentId(const Aws::String &value)
NotifyResourceDeploymentStatusChangeRequest & WithDeploymentId(Aws::String &&value)
NotifyResourceDeploymentStatusChangeRequest & WithDeploymentId(const char *value)
NotifyResourceDeploymentStatusChangeRequest & AddOutputs(Output &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
NotifyResourceDeploymentStatusChangeRequest & WithResourceArn(const char *value)
NotifyResourceDeploymentStatusChangeRequest & WithStatus(const ResourceDeploymentStatus &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
NotifyResourceDeploymentStatusChangeRequest & WithStatusMessage(Aws::String &&value)
NotifyResourceDeploymentStatusChangeRequest & WithStatus(ResourceDeploymentStatus &&value)
NotifyResourceDeploymentStatusChangeRequest & WithStatusMessage(const Aws::String &value)
NotifyResourceDeploymentStatusChangeRequest & WithOutputs(Aws::Vector< Output > &&value)
NotifyResourceDeploymentStatusChangeRequest & WithStatusMessage(const char *value)
NotifyResourceDeploymentStatusChangeRequest & WithResourceArn(Aws::String &&value)
NotifyResourceDeploymentStatusChangeRequest & AddOutputs(const Output &value)
NotifyResourceDeploymentStatusChangeRequest & WithOutputs(const Aws::Vector< Output > &value)
NotifyResourceDeploymentStatusChangeRequest & WithResourceArn(const Aws::String &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