AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartCapacityTaskResult.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 StartCapacityTaskResult();
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 StartCapacityTaskResult& WithCapacityTaskId(const Aws::String& value) { SetCapacityTaskId(value); return *this;}
49 inline StartCapacityTaskResult& WithCapacityTaskId(Aws::String&& value) { SetCapacityTaskId(std::move(value)); return *this;}
50 inline StartCapacityTaskResult& 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 StartCapacityTaskResult& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
62 inline StartCapacityTaskResult& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
63 inline StartCapacityTaskResult& 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 StartCapacityTaskResult& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;}
76 inline StartCapacityTaskResult& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;}
77 inline StartCapacityTaskResult& 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 StartCapacityTaskResult& AddRequestedInstancePools(const InstanceTypeCapacity& value) { m_requestedInstancePools.push_back(value); return *this; }
90 inline StartCapacityTaskResult& 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 StartCapacityTaskResult& WithDryRun(bool value) { SetDryRun(value); return *this;}
102
104
107 inline const CapacityTaskStatus& GetCapacityTaskStatus() const{ return m_capacityTaskStatus; }
108 inline void SetCapacityTaskStatus(const CapacityTaskStatus& value) { m_capacityTaskStatus = value; }
109 inline void SetCapacityTaskStatus(CapacityTaskStatus&& value) { m_capacityTaskStatus = std::move(value); }
113
115
118 inline const CapacityTaskFailure& GetFailed() const{ return m_failed; }
119 inline void SetFailed(const CapacityTaskFailure& value) { m_failed = value; }
120 inline void SetFailed(CapacityTaskFailure&& value) { m_failed = std::move(value); }
121 inline StartCapacityTaskResult& WithFailed(const CapacityTaskFailure& value) { SetFailed(value); return *this;}
122 inline StartCapacityTaskResult& WithFailed(CapacityTaskFailure&& value) { SetFailed(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
130 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
131 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
133 inline StartCapacityTaskResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetCompletionDate() const{ return m_completionDate; }
141 inline void SetCompletionDate(const Aws::Utils::DateTime& value) { m_completionDate = value; }
142 inline void SetCompletionDate(Aws::Utils::DateTime&& value) { m_completionDate = std::move(value); }
144 inline StartCapacityTaskResult& WithCompletionDate(Aws::Utils::DateTime&& value) { SetCompletionDate(std::move(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
152 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
153 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
157
159
160 inline const Aws::String& GetRequestId() const{ return m_requestId; }
161 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
162 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
163 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
164 inline StartCapacityTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
165 inline StartCapacityTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
166 inline StartCapacityTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
168 private:
169
170 Aws::String m_capacityTaskId;
171
172 Aws::String m_outpostId;
173
174 Aws::String m_orderId;
175
176 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
177
178 bool m_dryRun;
179
180 CapacityTaskStatus m_capacityTaskStatus;
181
182 CapacityTaskFailure m_failed;
183
184 Aws::Utils::DateTime m_creationDate;
185
186 Aws::Utils::DateTime m_completionDate;
187
188 Aws::Utils::DateTime m_lastModifiedDate;
189
190 Aws::String m_requestId;
191 };
192
193} // namespace Model
194} // namespace Outposts
195} // namespace Aws
StartCapacityTaskResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
StartCapacityTaskResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
StartCapacityTaskResult & AddRequestedInstancePools(const InstanceTypeCapacity &value)
void SetRequestedInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
StartCapacityTaskResult & WithCompletionDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationDate() const
StartCapacityTaskResult & WithOutpostId(const Aws::String &value)
StartCapacityTaskResult & WithOrderId(const Aws::String &value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
StartCapacityTaskResult & WithCapacityTaskId(const Aws::String &value)
void SetCompletionDate(const Aws::Utils::DateTime &value)
StartCapacityTaskResult & WithFailed(const CapacityTaskFailure &value)
AWS_OUTPOSTS_API StartCapacityTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCompletionDate(Aws::Utils::DateTime &&value)
void SetRequestedInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
void SetCapacityTaskStatus(const CapacityTaskStatus &value)
StartCapacityTaskResult & WithOutpostId(const char *value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
const CapacityTaskStatus & GetCapacityTaskStatus() const
StartCapacityTaskResult & WithRequestedInstancePools(Aws::Vector< InstanceTypeCapacity > &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
StartCapacityTaskResult & WithFailed(CapacityTaskFailure &&value)
StartCapacityTaskResult & WithOutpostId(Aws::String &&value)
StartCapacityTaskResult & WithRequestId(const Aws::String &value)
StartCapacityTaskResult & WithCreationDate(const Aws::Utils::DateTime &value)
StartCapacityTaskResult & AddRequestedInstancePools(InstanceTypeCapacity &&value)
StartCapacityTaskResult & WithCapacityTaskId(const char *value)
StartCapacityTaskResult & WithCreationDate(Aws::Utils::DateTime &&value)
StartCapacityTaskResult & WithCompletionDate(const Aws::Utils::DateTime &value)
StartCapacityTaskResult & WithOrderId(const char *value)
StartCapacityTaskResult & WithRequestId(const char *value)
StartCapacityTaskResult & WithRequestId(Aws::String &&value)
StartCapacityTaskResult & WithOrderId(Aws::String &&value)
StartCapacityTaskResult & WithCapacityTaskId(Aws::String &&value)
const Aws::Utils::DateTime & GetCompletionDate() const
StartCapacityTaskResult & WithDryRun(bool value)
void SetFailed(const CapacityTaskFailure &value)
void SetCapacityTaskStatus(CapacityTaskStatus &&value)
StartCapacityTaskResult & WithRequestedInstancePools(const Aws::Vector< InstanceTypeCapacity > &value)
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
StartCapacityTaskResult & WithCapacityTaskStatus(CapacityTaskStatus &&value)
AWS_OUTPOSTS_API StartCapacityTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartCapacityTaskResult & WithCapacityTaskStatus(const CapacityTaskStatus &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