AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeTaskResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
12#include <aws/snow-device-management/model/TaskState.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 SnowDeviceManagement {
26namespace Model {
28 public:
29 AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult() = default;
32
34
37 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
38 template <typename CompletedAtT = Aws::Utils::DateTime>
39 void SetCompletedAt(CompletedAtT&& value) {
40 m_completedAtHasBeenSet = true;
41 m_completedAt = std::forward<CompletedAtT>(value);
42 }
43 template <typename CompletedAtT = Aws::Utils::DateTime>
44 DescribeTaskResult& WithCompletedAt(CompletedAtT&& value) {
45 SetCompletedAt(std::forward<CompletedAtT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
55 template <typename CreatedAtT = Aws::Utils::DateTime>
56 void SetCreatedAt(CreatedAtT&& value) {
57 m_createdAtHasBeenSet = true;
58 m_createdAt = std::forward<CreatedAtT>(value);
59 }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 DescribeTaskResult& WithCreatedAt(CreatedAtT&& value) {
62 SetCreatedAt(std::forward<CreatedAtT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 template <typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) {
74 m_descriptionHasBeenSet = true;
75 m_description = std::forward<DescriptionT>(value);
76 }
77 template <typename DescriptionT = Aws::String>
78 DescribeTaskResult& WithDescription(DescriptionT&& value) {
79 SetDescription(std::forward<DescriptionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
89 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
90 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
91 m_lastUpdatedAtHasBeenSet = true;
92 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
93 }
94 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
95 DescribeTaskResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
96 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
97 return *this;
98 }
100
102
105 inline TaskState GetState() const { return m_state; }
106 inline void SetState(TaskState value) {
107 m_stateHasBeenSet = true;
108 m_state = value;
109 }
111 SetState(value);
112 return *this;
113 }
115
117
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 DescribeTaskResult& WithTags(TagsT&& value) {
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 DescribeTaskResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
146 template <typename TargetsT = Aws::Vector<Aws::String>>
147 void SetTargets(TargetsT&& value) {
148 m_targetsHasBeenSet = true;
149 m_targets = std::forward<TargetsT>(value);
150 }
151 template <typename TargetsT = Aws::Vector<Aws::String>>
152 DescribeTaskResult& WithTargets(TargetsT&& value) {
153 SetTargets(std::forward<TargetsT>(value));
154 return *this;
155 }
156 template <typename TargetsT = Aws::String>
157 DescribeTaskResult& AddTargets(TargetsT&& value) {
158 m_targetsHasBeenSet = true;
159 m_targets.emplace_back(std::forward<TargetsT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
169 template <typename TaskArnT = Aws::String>
170 void SetTaskArn(TaskArnT&& value) {
171 m_taskArnHasBeenSet = true;
172 m_taskArn = std::forward<TaskArnT>(value);
173 }
174 template <typename TaskArnT = Aws::String>
175 DescribeTaskResult& WithTaskArn(TaskArnT&& value) {
176 SetTaskArn(std::forward<TaskArnT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetTaskId() const { return m_taskId; }
186 template <typename TaskIdT = Aws::String>
187 void SetTaskId(TaskIdT&& value) {
188 m_taskIdHasBeenSet = true;
189 m_taskId = std::forward<TaskIdT>(value);
190 }
191 template <typename TaskIdT = Aws::String>
192 DescribeTaskResult& WithTaskId(TaskIdT&& value) {
193 SetTaskId(std::forward<TaskIdT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 DescribeTaskResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 private:
213 Aws::Utils::DateTime m_completedAt{};
214
215 Aws::Utils::DateTime m_createdAt{};
216
217 Aws::String m_description;
218
219 Aws::Utils::DateTime m_lastUpdatedAt{};
220
222
224
225 Aws::Vector<Aws::String> m_targets;
226
227 Aws::String m_taskArn;
228
229 Aws::String m_taskId;
230
231 Aws::String m_requestId;
232 bool m_completedAtHasBeenSet = false;
233 bool m_createdAtHasBeenSet = false;
234 bool m_descriptionHasBeenSet = false;
235 bool m_lastUpdatedAtHasBeenSet = false;
236 bool m_stateHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238 bool m_targetsHasBeenSet = false;
239 bool m_taskArnHasBeenSet = false;
240 bool m_taskIdHasBeenSet = false;
241 bool m_requestIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace SnowDeviceManagement
246} // 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_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