AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
CapacityTaskSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/CapacityTaskStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts {
22namespace Model {
23
30 public:
31 AWS_OUTPOSTS_API CapacityTaskSummary() = default;
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCapacityTaskId() const { return m_capacityTaskId; }
41 inline bool CapacityTaskIdHasBeenSet() const { return m_capacityTaskIdHasBeenSet; }
42 template <typename CapacityTaskIdT = Aws::String>
43 void SetCapacityTaskId(CapacityTaskIdT&& value) {
44 m_capacityTaskIdHasBeenSet = true;
45 m_capacityTaskId = std::forward<CapacityTaskIdT>(value);
46 }
47 template <typename CapacityTaskIdT = Aws::String>
48 CapacityTaskSummary& WithCapacityTaskId(CapacityTaskIdT&& value) {
49 SetCapacityTaskId(std::forward<CapacityTaskIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
59 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
60 template <typename OutpostIdT = Aws::String>
61 void SetOutpostId(OutpostIdT&& value) {
62 m_outpostIdHasBeenSet = true;
63 m_outpostId = std::forward<OutpostIdT>(value);
64 }
65 template <typename OutpostIdT = Aws::String>
66 CapacityTaskSummary& WithOutpostId(OutpostIdT&& value) {
67 SetOutpostId(std::forward<OutpostIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetOrderId() const { return m_orderId; }
78 inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; }
79 template <typename OrderIdT = Aws::String>
80 void SetOrderId(OrderIdT&& value) {
81 m_orderIdHasBeenSet = true;
82 m_orderId = std::forward<OrderIdT>(value);
83 }
84 template <typename OrderIdT = Aws::String>
85 CapacityTaskSummary& WithOrderId(OrderIdT&& value) {
86 SetOrderId(std::forward<OrderIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetAssetId() const { return m_assetId; }
97 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
98 template <typename AssetIdT = Aws::String>
99 void SetAssetId(AssetIdT&& value) {
100 m_assetIdHasBeenSet = true;
101 m_assetId = std::forward<AssetIdT>(value);
102 }
103 template <typename AssetIdT = Aws::String>
104 CapacityTaskSummary& WithAssetId(AssetIdT&& value) {
105 SetAssetId(std::forward<AssetIdT>(value));
106 return *this;
107 }
109
111
114 inline CapacityTaskStatus GetCapacityTaskStatus() const { return m_capacityTaskStatus; }
115 inline bool CapacityTaskStatusHasBeenSet() const { return m_capacityTaskStatusHasBeenSet; }
117 m_capacityTaskStatusHasBeenSet = true;
118 m_capacityTaskStatus = value;
119 }
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
131 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
132 template <typename CreationDateT = Aws::Utils::DateTime>
133 void SetCreationDate(CreationDateT&& value) {
134 m_creationDateHasBeenSet = true;
135 m_creationDate = std::forward<CreationDateT>(value);
136 }
137 template <typename CreationDateT = Aws::Utils::DateTime>
138 CapacityTaskSummary& WithCreationDate(CreationDateT&& value) {
139 SetCreationDate(std::forward<CreationDateT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
149 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
150 template <typename CompletionDateT = Aws::Utils::DateTime>
151 void SetCompletionDate(CompletionDateT&& value) {
152 m_completionDateHasBeenSet = true;
153 m_completionDate = std::forward<CompletionDateT>(value);
154 }
155 template <typename CompletionDateT = Aws::Utils::DateTime>
156 CapacityTaskSummary& WithCompletionDate(CompletionDateT&& value) {
157 SetCompletionDate(std::forward<CompletionDateT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
167 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
168 template <typename LastModifiedDateT = Aws::Utils::DateTime>
169 void SetLastModifiedDate(LastModifiedDateT&& value) {
170 m_lastModifiedDateHasBeenSet = true;
171 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
172 }
173 template <typename LastModifiedDateT = Aws::Utils::DateTime>
174 CapacityTaskSummary& WithLastModifiedDate(LastModifiedDateT&& value) {
175 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_capacityTaskId;
181
182 Aws::String m_outpostId;
183
184 Aws::String m_orderId;
185
186 Aws::String m_assetId;
187
189
190 Aws::Utils::DateTime m_creationDate{};
191
192 Aws::Utils::DateTime m_completionDate{};
193
194 Aws::Utils::DateTime m_lastModifiedDate{};
195 bool m_capacityTaskIdHasBeenSet = false;
196 bool m_outpostIdHasBeenSet = false;
197 bool m_orderIdHasBeenSet = false;
198 bool m_assetIdHasBeenSet = false;
199 bool m_capacityTaskStatusHasBeenSet = false;
200 bool m_creationDateHasBeenSet = false;
201 bool m_completionDateHasBeenSet = false;
202 bool m_lastModifiedDateHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace Outposts
207} // namespace Aws
AWS_OUTPOSTS_API CapacityTaskSummary()=default
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetCapacityTaskId() const
AWS_OUTPOSTS_API CapacityTaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCapacityTaskStatus(CapacityTaskStatus value)
CapacityTaskSummary & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCompletionDate() const
CapacityTaskSummary & WithAssetId(AssetIdT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityTaskSummary & WithOutpostId(OutpostIdT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_OUTPOSTS_API CapacityTaskSummary(Aws::Utils::Json::JsonView jsonValue)
CapacityTaskSummary & WithCompletionDate(CompletionDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetCompletionDate(CompletionDateT &&value)
CapacityTaskSummary & WithCapacityTaskStatus(CapacityTaskStatus value)
CapacityTaskSummary & WithOrderId(OrderIdT &&value)
CapacityTaskSummary & WithLastModifiedDate(LastModifiedDateT &&value)
CapacityTaskSummary & WithCapacityTaskId(CapacityTaskIdT &&value)
void SetCapacityTaskId(CapacityTaskIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue