AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribeMitigationActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/MitigationActionParams.h>
12#include <aws/iot/model/MitigationActionType.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT {
26namespace Model {
28 public:
29 AWS_IOT_API DescribeMitigationActionResult() = default;
32
34
37 inline const Aws::String& GetActionName() const { return m_actionName; }
38 template <typename ActionNameT = Aws::String>
39 void SetActionName(ActionNameT&& value) {
40 m_actionNameHasBeenSet = true;
41 m_actionName = std::forward<ActionNameT>(value);
42 }
43 template <typename ActionNameT = Aws::String>
45 SetActionName(std::forward<ActionNameT>(value));
46 return *this;
47 }
49
51
54 inline MitigationActionType GetActionType() const { return m_actionType; }
56 m_actionTypeHasBeenSet = true;
57 m_actionType = value;
58 }
60 SetActionType(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetActionArn() const { return m_actionArn; }
70 template <typename ActionArnT = Aws::String>
71 void SetActionArn(ActionArnT&& value) {
72 m_actionArnHasBeenSet = true;
73 m_actionArn = std::forward<ActionArnT>(value);
74 }
75 template <typename ActionArnT = Aws::String>
77 SetActionArn(std::forward<ActionArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetActionId() const { return m_actionId; }
87 template <typename ActionIdT = Aws::String>
88 void SetActionId(ActionIdT&& value) {
89 m_actionIdHasBeenSet = true;
90 m_actionId = std::forward<ActionIdT>(value);
91 }
92 template <typename ActionIdT = Aws::String>
94 SetActionId(std::forward<ActionIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
104 template <typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) {
106 m_roleArnHasBeenSet = true;
107 m_roleArn = std::forward<RoleArnT>(value);
108 }
109 template <typename RoleArnT = Aws::String>
111 SetRoleArn(std::forward<RoleArnT>(value));
112 return *this;
113 }
115
117
121 inline const MitigationActionParams& GetActionParams() const { return m_actionParams; }
122 template <typename ActionParamsT = MitigationActionParams>
123 void SetActionParams(ActionParamsT&& value) {
124 m_actionParamsHasBeenSet = true;
125 m_actionParams = std::forward<ActionParamsT>(value);
126 }
127 template <typename ActionParamsT = MitigationActionParams>
129 SetActionParams(std::forward<ActionParamsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
140 template <typename CreationDateT = Aws::Utils::DateTime>
141 void SetCreationDate(CreationDateT&& value) {
142 m_creationDateHasBeenSet = true;
143 m_creationDate = std::forward<CreationDateT>(value);
144 }
145 template <typename CreationDateT = Aws::Utils::DateTime>
147 SetCreationDate(std::forward<CreationDateT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
157 template <typename LastModifiedDateT = Aws::Utils::DateTime>
158 void SetLastModifiedDate(LastModifiedDateT&& value) {
159 m_lastModifiedDateHasBeenSet = true;
160 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
161 }
162 template <typename LastModifiedDateT = Aws::Utils::DateTime>
164 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
165 return *this;
166 }
168
170
171 inline const Aws::String& GetRequestId() const { return m_requestId; }
172 template <typename RequestIdT = Aws::String>
173 void SetRequestId(RequestIdT&& value) {
174 m_requestIdHasBeenSet = true;
175 m_requestId = std::forward<RequestIdT>(value);
176 }
177 template <typename RequestIdT = Aws::String>
179 SetRequestId(std::forward<RequestIdT>(value));
180 return *this;
181 }
183 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
184
185 private:
186 Aws::String m_actionName;
187
189
190 Aws::String m_actionArn;
191
192 Aws::String m_actionId;
193
194 Aws::String m_roleArn;
195
196 MitigationActionParams m_actionParams;
197
198 Aws::Utils::DateTime m_creationDate{};
199
200 Aws::Utils::DateTime m_lastModifiedDate{};
201
202 Aws::String m_requestId;
203 Aws::Http::HttpResponseCode m_HttpResponseCode;
204 bool m_actionNameHasBeenSet = false;
205 bool m_actionTypeHasBeenSet = false;
206 bool m_actionArnHasBeenSet = false;
207 bool m_actionIdHasBeenSet = false;
208 bool m_roleArnHasBeenSet = false;
209 bool m_actionParamsHasBeenSet = false;
210 bool m_creationDateHasBeenSet = false;
211 bool m_lastModifiedDateHasBeenSet = false;
212 bool m_requestIdHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace IoT
217} // namespace Aws
DescribeMitigationActionResult & WithRoleArn(RoleArnT &&value)
DescribeMitigationActionResult & WithActionType(MitigationActionType value)
DescribeMitigationActionResult & WithActionArn(ActionArnT &&value)
DescribeMitigationActionResult & WithActionParams(ActionParamsT &&value)
AWS_IOT_API DescribeMitigationActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeMitigationActionResult & WithActionName(ActionNameT &&value)
DescribeMitigationActionResult & WithRequestId(RequestIdT &&value)
DescribeMitigationActionResult & WithActionId(ActionIdT &&value)
DescribeMitigationActionResult & WithLastModifiedDate(LastModifiedDateT &&value)
DescribeMitigationActionResult & WithCreationDate(CreationDateT &&value)
AWS_IOT_API DescribeMitigationActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue