AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTaskResult.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/snow-device-management/model/TaskState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SnowDeviceManagement
28{
29namespace Model
30{
32 {
33 public:
34 AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult();
37
38
40
43 inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
44 inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; }
45 inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); }
46 inline DescribeTaskResult& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
47 inline DescribeTaskResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
49
51
54 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
55 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
56 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
57 inline DescribeTaskResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
58 inline DescribeTaskResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline void SetDescription(const Aws::String& value) { m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_description.assign(value); }
69 inline DescribeTaskResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline DescribeTaskResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline DescribeTaskResult& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
79 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; }
80 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); }
81 inline DescribeTaskResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
82 inline DescribeTaskResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
84
86
89 inline const TaskState& GetState() const{ return m_state; }
90 inline void SetState(const TaskState& value) { m_state = value; }
91 inline void SetState(TaskState&& value) { m_state = std::move(value); }
92 inline DescribeTaskResult& WithState(const TaskState& value) { SetState(value); return *this;}
93 inline DescribeTaskResult& WithState(TaskState&& value) { SetState(std::move(value)); return *this;}
95
97
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
103 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
104 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
105 inline DescribeTaskResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
106 inline DescribeTaskResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
107 inline DescribeTaskResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
108 inline DescribeTaskResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
109 inline DescribeTaskResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
110 inline DescribeTaskResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
111 inline DescribeTaskResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
112 inline DescribeTaskResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
113 inline DescribeTaskResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
115
117
120 inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
121 inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targets = value; }
122 inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targets = std::move(value); }
123 inline DescribeTaskResult& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
124 inline DescribeTaskResult& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
125 inline DescribeTaskResult& AddTargets(const Aws::String& value) { m_targets.push_back(value); return *this; }
126 inline DescribeTaskResult& AddTargets(Aws::String&& value) { m_targets.push_back(std::move(value)); return *this; }
127 inline DescribeTaskResult& AddTargets(const char* value) { m_targets.push_back(value); return *this; }
129
131
134 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
135 inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
136 inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
137 inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
138 inline DescribeTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
139 inline DescribeTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
140 inline DescribeTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
142
144
147 inline const Aws::String& GetTaskId() const{ return m_taskId; }
148 inline void SetTaskId(const Aws::String& value) { m_taskId = value; }
149 inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); }
150 inline void SetTaskId(const char* value) { m_taskId.assign(value); }
151 inline DescribeTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
152 inline DescribeTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
153 inline DescribeTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;}
155
157
158 inline const Aws::String& GetRequestId() const{ return m_requestId; }
159 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
160 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
161 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
162 inline DescribeTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
163 inline DescribeTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
164 inline DescribeTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
166 private:
167
168 Aws::Utils::DateTime m_completedAt;
169
170 Aws::Utils::DateTime m_createdAt;
171
172 Aws::String m_description;
173
174 Aws::Utils::DateTime m_lastUpdatedAt;
175
176 TaskState m_state;
177
179
180 Aws::Vector<Aws::String> m_targets;
181
182 Aws::String m_taskArn;
183
184 Aws::String m_taskId;
185
186 Aws::String m_requestId;
187 };
188
189} // namespace Model
190} // namespace SnowDeviceManagement
191} // namespace Aws
DescribeTaskResult & WithDescription(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
DescribeTaskResult & AddTags(Aws::String &&key, Aws::String &&value)
DescribeTaskResult & WithCreatedAt(const Aws::Utils::DateTime &value)
DescribeTaskResult & WithCreatedAt(Aws::Utils::DateTime &&value)
DescribeTaskResult & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithRequestId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeTaskResult & WithTargets(Aws::Vector< Aws::String > &&value)
DescribeTaskResult & WithTaskId(Aws::String &&value)
DescribeTaskResult & WithCompletedAt(Aws::Utils::DateTime &&value)
DescribeTaskResult & AddTargets(Aws::String &&value)
void SetTargets(Aws::Vector< Aws::String > &&value)
DescribeTaskResult & AddTargets(const Aws::String &value)
DescribeTaskResult & WithRequestId(const Aws::String &value)
DescribeTaskResult & AddTargets(const char *value)
DescribeTaskResult & WithTaskArn(const Aws::String &value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult()
DescribeTaskResult & WithTaskId(const char *value)
DescribeTaskResult & WithTargets(const Aws::Vector< Aws::String > &value)
DescribeTaskResult & AddTags(const char *key, const char *value)
void SetTargets(const Aws::Vector< Aws::String > &value)
DescribeTaskResult & WithTaskArn(Aws::String &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTaskResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeTaskResult & AddTags(const char *key, Aws::String &&value)
DescribeTaskResult & WithState(TaskState &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
void SetCompletedAt(const Aws::Utils::DateTime &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
DescribeTaskResult & WithCompletedAt(const Aws::Utils::DateTime &value)
DescribeTaskResult & WithDescription(const char *value)
DescribeTaskResult & AddTags(Aws::String &&key, const char *value)
DescribeTaskResult & WithDescription(const Aws::String &value)
DescribeTaskResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeTaskResult & AddTags(Aws::String &&key, const Aws::String &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Vector< Aws::String > & GetTargets() const
DescribeTaskResult & AddTags(const Aws::String &key, const Aws::String &value)
DescribeTaskResult & WithTaskId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeTaskResult & WithTaskArn(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeTaskResult & AddTags(const Aws::String &key, Aws::String &&value)
DescribeTaskResult & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
DescribeTaskResult & WithRequestId(Aws::String &&value)
DescribeTaskResult & WithState(const TaskState &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