AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCapacityTaskResult.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/outposts/model/CapacityTaskStatus.h>
11#include <aws/outposts/model/CapacityTaskFailure.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/outposts/model/InstanceTypeCapacity.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Outposts
29{
30namespace Model
31{
33 {
34 public:
35 AWS_OUTPOSTS_API GetCapacityTaskResult();
38
39
41
44 inline const Aws::String& GetCapacityTaskId() const{ return m_capacityTaskId; }
45 inline void SetCapacityTaskId(const Aws::String& value) { m_capacityTaskId = value; }
46 inline void SetCapacityTaskId(Aws::String&& value) { m_capacityTaskId = std::move(value); }
47 inline void SetCapacityTaskId(const char* value) { m_capacityTaskId.assign(value); }
48 inline GetCapacityTaskResult& WithCapacityTaskId(const Aws::String& value) { SetCapacityTaskId(value); return *this;}
49 inline GetCapacityTaskResult& WithCapacityTaskId(Aws::String&& value) { SetCapacityTaskId(std::move(value)); return *this;}
50 inline GetCapacityTaskResult& WithCapacityTaskId(const char* value) { SetCapacityTaskId(value); return *this;}
52
54
57 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
58 inline void SetOutpostId(const Aws::String& value) { m_outpostId = value; }
59 inline void SetOutpostId(Aws::String&& value) { m_outpostId = std::move(value); }
60 inline void SetOutpostId(const char* value) { m_outpostId.assign(value); }
61 inline GetCapacityTaskResult& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
62 inline GetCapacityTaskResult& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
63 inline GetCapacityTaskResult& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
65
67
71 inline const Aws::String& GetOrderId() const{ return m_orderId; }
72 inline void SetOrderId(const Aws::String& value) { m_orderId = value; }
73 inline void SetOrderId(Aws::String&& value) { m_orderId = std::move(value); }
74 inline void SetOrderId(const char* value) { m_orderId.assign(value); }
75 inline GetCapacityTaskResult& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;}
76 inline GetCapacityTaskResult& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;}
77 inline GetCapacityTaskResult& WithOrderId(const char* value) { SetOrderId(value); return *this;}
79
81
84 inline const Aws::Vector<InstanceTypeCapacity>& GetRequestedInstancePools() const{ return m_requestedInstancePools; }
85 inline void SetRequestedInstancePools(const Aws::Vector<InstanceTypeCapacity>& value) { m_requestedInstancePools = value; }
86 inline void SetRequestedInstancePools(Aws::Vector<InstanceTypeCapacity>&& value) { m_requestedInstancePools = std::move(value); }
89 inline GetCapacityTaskResult& AddRequestedInstancePools(const InstanceTypeCapacity& value) { m_requestedInstancePools.push_back(value); return *this; }
90 inline GetCapacityTaskResult& AddRequestedInstancePools(InstanceTypeCapacity&& value) { m_requestedInstancePools.push_back(std::move(value)); return *this; }
92
94
98 inline bool GetDryRun() const{ return m_dryRun; }
99 inline void SetDryRun(bool value) { m_dryRun = value; }
100 inline GetCapacityTaskResult& WithDryRun(bool value) { SetDryRun(value); return *this;}
102
104
113 inline const CapacityTaskStatus& GetCapacityTaskStatus() const{ return m_capacityTaskStatus; }
114 inline void SetCapacityTaskStatus(const CapacityTaskStatus& value) { m_capacityTaskStatus = value; }
115 inline void SetCapacityTaskStatus(CapacityTaskStatus&& value) { m_capacityTaskStatus = std::move(value); }
119
121
124 inline const CapacityTaskFailure& GetFailed() const{ return m_failed; }
125 inline void SetFailed(const CapacityTaskFailure& value) { m_failed = value; }
126 inline void SetFailed(CapacityTaskFailure&& value) { m_failed = std::move(value); }
127 inline GetCapacityTaskResult& WithFailed(const CapacityTaskFailure& value) { SetFailed(value); return *this;}
128 inline GetCapacityTaskResult& WithFailed(CapacityTaskFailure&& value) { SetFailed(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
136 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
137 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
138 inline GetCapacityTaskResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
139 inline GetCapacityTaskResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetCompletionDate() const{ return m_completionDate; }
147 inline void SetCompletionDate(const Aws::Utils::DateTime& value) { m_completionDate = value; }
148 inline void SetCompletionDate(Aws::Utils::DateTime&& value) { m_completionDate = std::move(value); }
150 inline GetCapacityTaskResult& WithCompletionDate(Aws::Utils::DateTime&& value) { SetCompletionDate(std::move(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
158 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
159 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
161 inline GetCapacityTaskResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
163
165
166 inline const Aws::String& GetRequestId() const{ return m_requestId; }
167 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
168 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
169 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
170 inline GetCapacityTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
171 inline GetCapacityTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
172 inline GetCapacityTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
174 private:
175
176 Aws::String m_capacityTaskId;
177
178 Aws::String m_outpostId;
179
180 Aws::String m_orderId;
181
182 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
183
184 bool m_dryRun;
185
186 CapacityTaskStatus m_capacityTaskStatus;
187
188 CapacityTaskFailure m_failed;
189
190 Aws::Utils::DateTime m_creationDate;
191
192 Aws::Utils::DateTime m_completionDate;
193
194 Aws::Utils::DateTime m_lastModifiedDate;
195
196 Aws::String m_requestId;
197 };
198
199} // namespace Model
200} // namespace Outposts
201} // namespace Aws
GetCapacityTaskResult & WithOrderId(Aws::String &&value)
GetCapacityTaskResult & WithOutpostId(Aws::String &&value)
GetCapacityTaskResult & WithCreationDate(const Aws::Utils::DateTime &value)
GetCapacityTaskResult & WithDryRun(bool value)
GetCapacityTaskResult & WithCapacityTaskStatus(const CapacityTaskStatus &value)
const CapacityTaskFailure & GetFailed() const
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
GetCapacityTaskResult & WithRequestedInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
GetCapacityTaskResult & WithCompletionDate(Aws::Utils::DateTime &&value)
void SetCapacityTaskStatus(CapacityTaskStatus &&value)
void SetFailed(CapacityTaskFailure &&value)
const CapacityTaskStatus & GetCapacityTaskStatus() const
const Aws::Utils::DateTime & GetCompletionDate() const
GetCapacityTaskResult & WithCapacityTaskId(const Aws::String &value)
GetCapacityTaskResult & WithCapacityTaskId(const char *value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
GetCapacityTaskResult & WithRequestId(const char *value)
GetCapacityTaskResult & WithRequestedInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
GetCapacityTaskResult & WithOrderId(const Aws::String &value)
void SetFailed(const CapacityTaskFailure &value)
GetCapacityTaskResult & WithCreationDate(Aws::Utils::DateTime &&value)
GetCapacityTaskResult & WithFailed(CapacityTaskFailure &&value)
void SetCompletionDate(const Aws::Utils::DateTime &value)
GetCapacityTaskResult & WithCompletionDate(const Aws::Utils::DateTime &value)
void SetCapacityTaskStatus(const CapacityTaskStatus &value)
GetCapacityTaskResult & WithCapacityTaskStatus(CapacityTaskStatus &&value)
GetCapacityTaskResult & WithRequestId(const Aws::String &value)
GetCapacityTaskResult & AddRequestedInstancePools(const InstanceTypeCapacity &value)
AWS_OUTPOSTS_API GetCapacityTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCapacityTaskResult & WithOutpostId(const char *value)
GetCapacityTaskResult & AddRequestedInstancePools(InstanceTypeCapacity &&value)
GetCapacityTaskResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetRequestedInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
GetCapacityTaskResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
GetCapacityTaskResult & WithOutpostId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
GetCapacityTaskResult & WithFailed(const CapacityTaskFailure &value)
GetCapacityTaskResult & WithRequestId(Aws::String &&value)
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
const Aws::Utils::DateTime & GetCreationDate() const
AWS_OUTPOSTS_API GetCapacityTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCapacityTaskId(const Aws::String &value)
GetCapacityTaskResult & WithOrderId(const char *value)
void SetCompletionDate(Aws::Utils::DateTime &&value)
void SetRequestedInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
GetCapacityTaskResult & WithCapacityTaskId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue