AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
SignalResourceRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/ResourceSignalStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudFormation {
16namespace Model {
17
24 public:
25 AWS_CLOUDFORMATION_API SignalResourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SignalResource"; }
32
33 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
44 inline const Aws::String& GetStackName() const { return m_stackName; }
45 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
46 template <typename StackNameT = Aws::String>
47 void SetStackName(StackNameT&& value) {
48 m_stackNameHasBeenSet = true;
49 m_stackName = std::forward<StackNameT>(value);
50 }
51 template <typename StackNameT = Aws::String>
52 SignalResourceRequest& WithStackName(StackNameT&& value) {
53 SetStackName(std::forward<StackNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
64 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
65 template <typename LogicalResourceIdT = Aws::String>
66 void SetLogicalResourceId(LogicalResourceIdT&& value) {
67 m_logicalResourceIdHasBeenSet = true;
68 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
69 }
70 template <typename LogicalResourceIdT = Aws::String>
71 SignalResourceRequest& WithLogicalResourceId(LogicalResourceIdT&& value) {
72 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetUniqueId() const { return m_uniqueId; }
85 inline bool UniqueIdHasBeenSet() const { return m_uniqueIdHasBeenSet; }
86 template <typename UniqueIdT = Aws::String>
87 void SetUniqueId(UniqueIdT&& value) {
88 m_uniqueIdHasBeenSet = true;
89 m_uniqueId = std::forward<UniqueIdT>(value);
90 }
91 template <typename UniqueIdT = Aws::String>
92 SignalResourceRequest& WithUniqueId(UniqueIdT&& value) {
93 SetUniqueId(std::forward<UniqueIdT>(value));
94 return *this;
95 }
97
99
104 inline ResourceSignalStatus GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(ResourceSignalStatus value) {
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115 private:
116 Aws::String m_stackName;
117
118 Aws::String m_logicalResourceId;
119
120 Aws::String m_uniqueId;
121
123 bool m_stackNameHasBeenSet = false;
124 bool m_logicalResourceIdHasBeenSet = false;
125 bool m_uniqueIdHasBeenSet = false;
126 bool m_statusHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CloudFormation
131} // namespace Aws
SignalResourceRequest & WithStackName(StackNameT &&value)
SignalResourceRequest & WithLogicalResourceId(LogicalResourceIdT &&value)
virtual const char * GetServiceRequestName() const override
SignalResourceRequest & WithStatus(ResourceSignalStatus value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SignalResourceRequest & WithUniqueId(UniqueIdT &&value)
AWS_CLOUDFORMATION_API SignalResourceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String