AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeTaskResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
13#include <aws/snow-device-management/model/TaskState.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SnowDeviceManagement {
27namespace Model {
29 public:
30 AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult() = default;
33
35
38 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
39 template <typename CompletedAtT = Aws::Utils::DateTime>
40 void SetCompletedAt(CompletedAtT&& value) {
41 m_completedAtHasBeenSet = true;
42 m_completedAt = std::forward<CompletedAtT>(value);
43 }
44 template <typename CompletedAtT = Aws::Utils::DateTime>
45 DescribeTaskResult& WithCompletedAt(CompletedAtT&& value) {
46 SetCompletedAt(std::forward<CompletedAtT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template <typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) {
58 m_createdAtHasBeenSet = true;
59 m_createdAt = std::forward<CreatedAtT>(value);
60 }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 DescribeTaskResult& WithCreatedAt(CreatedAtT&& value) {
63 SetCreatedAt(std::forward<CreatedAtT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 DescribeTaskResult& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
90 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
91 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
92 m_lastUpdatedAtHasBeenSet = true;
93 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
94 }
95 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
96 DescribeTaskResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
97 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
98 return *this;
99 }
101
103
106 inline TaskState GetState() const { return m_state; }
107 inline void SetState(TaskState value) {
108 m_stateHasBeenSet = true;
109 m_state = value;
110 }
112 SetState(value);
113 return *this;
114 }
116
118
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 DescribeTaskResult& WithTags(TagsT&& value) {
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 DescribeTaskResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
147 template <typename TargetsT = Aws::Vector<Aws::String>>
148 void SetTargets(TargetsT&& value) {
149 m_targetsHasBeenSet = true;
150 m_targets = std::forward<TargetsT>(value);
151 }
152 template <typename TargetsT = Aws::Vector<Aws::String>>
153 DescribeTaskResult& WithTargets(TargetsT&& value) {
154 SetTargets(std::forward<TargetsT>(value));
155 return *this;
156 }
157 template <typename TargetsT = Aws::String>
158 DescribeTaskResult& AddTargets(TargetsT&& value) {
159 m_targetsHasBeenSet = true;
160 m_targets.emplace_back(std::forward<TargetsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
170 template <typename TaskArnT = Aws::String>
171 void SetTaskArn(TaskArnT&& value) {
172 m_taskArnHasBeenSet = true;
173 m_taskArn = std::forward<TaskArnT>(value);
174 }
175 template <typename TaskArnT = Aws::String>
176 DescribeTaskResult& WithTaskArn(TaskArnT&& value) {
177 SetTaskArn(std::forward<TaskArnT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetTaskId() const { return m_taskId; }
187 template <typename TaskIdT = Aws::String>
188 void SetTaskId(TaskIdT&& value) {
189 m_taskIdHasBeenSet = true;
190 m_taskId = std::forward<TaskIdT>(value);
191 }
192 template <typename TaskIdT = Aws::String>
193 DescribeTaskResult& WithTaskId(TaskIdT&& value) {
194 SetTaskId(std::forward<TaskIdT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 DescribeTaskResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::Utils::DateTime m_completedAt{};
217
218 Aws::Utils::DateTime m_createdAt{};
219
220 Aws::String m_description;
221
222 Aws::Utils::DateTime m_lastUpdatedAt{};
223
225
227
228 Aws::Vector<Aws::String> m_targets;
229
230 Aws::String m_taskArn;
231
232 Aws::String m_taskId;
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_completedAtHasBeenSet = false;
237 bool m_createdAtHasBeenSet = false;
238 bool m_descriptionHasBeenSet = false;
239 bool m_lastUpdatedAtHasBeenSet = false;
240 bool m_stateHasBeenSet = false;
241 bool m_tagsHasBeenSet = false;
242 bool m_targetsHasBeenSet = false;
243 bool m_taskArnHasBeenSet = false;
244 bool m_taskIdHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace SnowDeviceManagement
250} // namespace Aws
DescribeTaskResult & WithRequestId(RequestIdT &&value)
DescribeTaskResult & WithTaskArn(TaskArnT &&value)
DescribeTaskResult & WithDescription(DescriptionT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult()=default
DescribeTaskResult & WithTaskId(TaskIdT &&value)
DescribeTaskResult & WithState(TaskState value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
DescribeTaskResult & WithTargets(TargetsT &&value)
DescribeTaskResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeTaskResult & AddTargets(TargetsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Vector< Aws::String > & GetTargets() const
DescribeTaskResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DescribeTaskResult & WithCompletedAt(CompletedAtT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue