AWS SDK for C++  1.9.97
AWS SDK for C++
PackageDetails.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ElasticsearchService
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetPackageID() const{ return m_packageID; }
48 
52  inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
53 
57  inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
58 
62  inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
63 
67  inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
68 
72  inline PackageDetails& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
73 
77  inline PackageDetails& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
78 
82  inline PackageDetails& WithPackageID(const char* value) { SetPackageID(value); return *this;}
83 
84 
88  inline const Aws::String& GetPackageName() const{ return m_packageName; }
89 
93  inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
94 
98  inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
99 
103  inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
104 
108  inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
109 
113  inline PackageDetails& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
114 
118  inline PackageDetails& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
119 
123  inline PackageDetails& WithPackageName(const char* value) { SetPackageName(value); return *this;}
124 
125 
129  inline const PackageType& GetPackageType() const{ return m_packageType; }
130 
134  inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
135 
139  inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
140 
144  inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
145 
149  inline PackageDetails& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
150 
154  inline PackageDetails& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
155 
156 
160  inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
161 
165  inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
166 
170  inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
171 
175  inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
176 
180  inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
181 
185  inline PackageDetails& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;}
186 
190  inline PackageDetails& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
191 
195  inline PackageDetails& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
196 
197 
202  inline const PackageStatus& GetPackageStatus() const{ return m_packageStatus; }
203 
208  inline bool PackageStatusHasBeenSet() const { return m_packageStatusHasBeenSet; }
209 
214  inline void SetPackageStatus(const PackageStatus& value) { m_packageStatusHasBeenSet = true; m_packageStatus = value; }
215 
220  inline void SetPackageStatus(PackageStatus&& value) { m_packageStatusHasBeenSet = true; m_packageStatus = std::move(value); }
221 
226  inline PackageDetails& WithPackageStatus(const PackageStatus& value) { SetPackageStatus(value); return *this;}
227 
232  inline PackageDetails& WithPackageStatus(PackageStatus&& value) { SetPackageStatus(std::move(value)); return *this;}
233 
234 
238  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
239 
243  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
244 
248  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
249 
253  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
254 
258  inline PackageDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
259 
263  inline PackageDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
264 
265 
266 
267  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
268 
269 
270  inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
271 
272 
273  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
274 
275 
276  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
277 
278 
279  inline PackageDetails& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
280 
281 
282  inline PackageDetails& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
283 
284 
285 
286  inline const Aws::String& GetAvailablePackageVersion() const{ return m_availablePackageVersion; }
287 
288 
289  inline bool AvailablePackageVersionHasBeenSet() const { return m_availablePackageVersionHasBeenSet; }
290 
291 
292  inline void SetAvailablePackageVersion(const Aws::String& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = value; }
293 
294 
295  inline void SetAvailablePackageVersion(Aws::String&& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = std::move(value); }
296 
297 
298  inline void SetAvailablePackageVersion(const char* value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion.assign(value); }
299 
300 
301  inline PackageDetails& WithAvailablePackageVersion(const Aws::String& value) { SetAvailablePackageVersion(value); return *this;}
302 
303 
304  inline PackageDetails& WithAvailablePackageVersion(Aws::String&& value) { SetAvailablePackageVersion(std::move(value)); return *this;}
305 
306 
307  inline PackageDetails& WithAvailablePackageVersion(const char* value) { SetAvailablePackageVersion(value); return *this;}
308 
309 
314  inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; }
315 
320  inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
321 
326  inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
327 
332  inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
333 
338  inline PackageDetails& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;}
339 
344  inline PackageDetails& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;}
345 
346  private:
347 
348  Aws::String m_packageID;
349  bool m_packageIDHasBeenSet;
350 
351  Aws::String m_packageName;
352  bool m_packageNameHasBeenSet;
353 
354  PackageType m_packageType;
355  bool m_packageTypeHasBeenSet;
356 
357  Aws::String m_packageDescription;
358  bool m_packageDescriptionHasBeenSet;
359 
360  PackageStatus m_packageStatus;
361  bool m_packageStatusHasBeenSet;
362 
363  Aws::Utils::DateTime m_createdAt;
364  bool m_createdAtHasBeenSet;
365 
366  Aws::Utils::DateTime m_lastUpdatedAt;
367  bool m_lastUpdatedAtHasBeenSet;
368 
369  Aws::String m_availablePackageVersion;
370  bool m_availablePackageVersionHasBeenSet;
371 
372  ErrorDetails m_errorDetails;
373  bool m_errorDetailsHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace ElasticsearchService
378 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticsearchService::Model::PackageDetails::WithPackageType
PackageDetails & WithPackageType(const PackageType &value)
Definition: PackageDetails.h:149
Aws::ElasticsearchService::Model::PackageDetails::WithLastUpdatedAt
PackageDetails & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: PackageDetails.h:282
Aws::ElasticsearchService::Model::PackageDetails::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: PackageDetails.h:253
Aws::ElasticsearchService::Model::PackageDetails::SetPackageStatus
void SetPackageStatus(const PackageStatus &value)
Definition: PackageDetails.h:214
Aws::ElasticsearchService::Model::PackageDetails
Definition: PackageDetails.h:36
Aws::ElasticsearchService::Model::PackageDetails::GetPackageName
const Aws::String & GetPackageName() const
Definition: PackageDetails.h:88
Aws::ElasticsearchService::Model::PackageDetails::LastUpdatedAtHasBeenSet
bool LastUpdatedAtHasBeenSet() const
Definition: PackageDetails.h:270
Aws::ElasticsearchService::Model::PackageDetails::ErrorDetailsHasBeenSet
bool ErrorDetailsHasBeenSet() const
Definition: PackageDetails.h:320
Aws::ElasticsearchService::Model::PackageDetails::WithAvailablePackageVersion
PackageDetails & WithAvailablePackageVersion(const Aws::String &value)
Definition: PackageDetails.h:301
Aws::ElasticsearchService::Model::PackageDetails::WithPackageStatus
PackageDetails & WithPackageStatus(PackageStatus &&value)
Definition: PackageDetails.h:232
Aws::ElasticsearchService::Model::PackageDetails::GetPackageStatus
const PackageStatus & GetPackageStatus() const
Definition: PackageDetails.h:202
Aws::ElasticsearchService::Model::PackageDetails::PackageDetails
PackageDetails()
Aws::ElasticsearchService::Model::PackageType
PackageType
Definition: PackageType.h:17
DateTime.h
Aws::ElasticsearchService::Model::PackageDetails::GetPackageType
const PackageType & GetPackageType() const
Definition: PackageDetails.h:129
Aws::ElasticsearchService::Model::PackageDetails::SetPackageType
void SetPackageType(const PackageType &value)
Definition: PackageDetails.h:139
Aws::ElasticsearchService::Model::PackageDetails::SetAvailablePackageVersion
void SetAvailablePackageVersion(Aws::String &&value)
Definition: PackageDetails.h:295
Aws::ElasticsearchService::Model::PackageDetails::SetPackageID
void SetPackageID(Aws::String &&value)
Definition: PackageDetails.h:62
Aws::ElasticsearchService::Model::PackageDetails::AvailablePackageVersionHasBeenSet
bool AvailablePackageVersionHasBeenSet() const
Definition: PackageDetails.h:289
Aws::ElasticsearchService::Model::PackageDetails::WithAvailablePackageVersion
PackageDetails & WithAvailablePackageVersion(const char *value)
Definition: PackageDetails.h:307
Aws::ElasticsearchService::Model::PackageDetails::SetPackageID
void SetPackageID(const char *value)
Definition: PackageDetails.h:67
Aws::ElasticsearchService::Model::PackageDetails::GetErrorDetails
const ErrorDetails & GetErrorDetails() const
Definition: PackageDetails.h:314
Aws::ElasticsearchService::Model::PackageDetails::WithAvailablePackageVersion
PackageDetails & WithAvailablePackageVersion(Aws::String &&value)
Definition: PackageDetails.h:304
Aws::ElasticsearchService::Model::PackageDetails::WithPackageID
PackageDetails & WithPackageID(const Aws::String &value)
Definition: PackageDetails.h:72
Aws::ElasticsearchService::Model::PackageDetails::WithPackageDescription
PackageDetails & WithPackageDescription(const char *value)
Definition: PackageDetails.h:195
Aws::ElasticsearchService::Model::PackageDetails::SetAvailablePackageVersion
void SetAvailablePackageVersion(const Aws::String &value)
Definition: PackageDetails.h:292
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::PackageDetails::WithPackageName
PackageDetails & WithPackageName(const Aws::String &value)
Definition: PackageDetails.h:113
Aws::ElasticsearchService::Model::PackageDetails::WithPackageType
PackageDetails & WithPackageType(PackageType &&value)
Definition: PackageDetails.h:154
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::PackageDetails::WithPackageStatus
PackageDetails & WithPackageStatus(const PackageStatus &value)
Definition: PackageDetails.h:226
Aws::ElasticsearchService::Model::PackageDetails::PackageTypeHasBeenSet
bool PackageTypeHasBeenSet() const
Definition: PackageDetails.h:134
Aws::ElasticsearchService::Model::PackageDetails::SetErrorDetails
void SetErrorDetails(const ErrorDetails &value)
Definition: PackageDetails.h:326
Aws::ElasticsearchService::Model::PackageDetails::WithPackageName
PackageDetails & WithPackageName(Aws::String &&value)
Definition: PackageDetails.h:118
Aws::ElasticsearchService::Model::PackageDetails::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: PackageDetails.h:248
Aws::ElasticsearchService::Model::PackageDetails::SetLastUpdatedAt
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: PackageDetails.h:273
Aws::ElasticsearchService::Model::PackageStatus
PackageStatus
Definition: PackageStatus.h:17
Aws::ElasticsearchService::Model::PackageDetails::SetAvailablePackageVersion
void SetAvailablePackageVersion(const char *value)
Definition: PackageDetails.h:298
Aws::ElasticsearchService::Model::PackageDetails::PackageIDHasBeenSet
bool PackageIDHasBeenSet() const
Definition: PackageDetails.h:52
Aws::ElasticsearchService::Model::PackageDetails::WithPackageDescription
PackageDetails & WithPackageDescription(const Aws::String &value)
Definition: PackageDetails.h:185
Aws::ElasticsearchService::Model::PackageDetails::WithPackageDescription
PackageDetails & WithPackageDescription(Aws::String &&value)
Definition: PackageDetails.h:190
Aws::ElasticsearchService::Model::PackageDetails::GetLastUpdatedAt
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: PackageDetails.h:267
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::PackageDetails::WithErrorDetails
PackageDetails & WithErrorDetails(const ErrorDetails &value)
Definition: PackageDetails.h:338
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::PackageDetails::WithPackageID
PackageDetails & WithPackageID(Aws::String &&value)
Definition: PackageDetails.h:77
Aws::ElasticsearchService::Model::PackageDetails::SetPackageID
void SetPackageID(const Aws::String &value)
Definition: PackageDetails.h:57
Aws::ElasticsearchService::Model::PackageDetails::WithErrorDetails
PackageDetails & WithErrorDetails(ErrorDetails &&value)
Definition: PackageDetails.h:344
Aws::ElasticsearchService::Model::PackageDetails::GetAvailablePackageVersion
const Aws::String & GetAvailablePackageVersion() const
Definition: PackageDetails.h:286
Aws::ElasticsearchService::Model::PackageDetails::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: PackageDetails.h:238
Aws::ElasticsearchService::Model::PackageDetails::PackageDetails
PackageDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::PackageDetails::SetPackageStatus
void SetPackageStatus(PackageStatus &&value)
Definition: PackageDetails.h:220
Aws::ElasticsearchService::Model::PackageDetails::operator=
PackageDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::PackageDetails::WithLastUpdatedAt
PackageDetails & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: PackageDetails.h:279
Aws::ElasticsearchService::Model::PackageDetails::PackageDescriptionHasBeenSet
bool PackageDescriptionHasBeenSet() const
Definition: PackageDetails.h:165
Aws::ElasticsearchService::Model::PackageDetails::SetPackageName
void SetPackageName(const char *value)
Definition: PackageDetails.h:108
Aws::ElasticsearchService::Model::ErrorDetails
Definition: ErrorDetails.h:27
Aws::ElasticsearchService::Model::PackageDetails::GetPackageID
const Aws::String & GetPackageID() const
Definition: PackageDetails.h:47
Aws::ElasticsearchService::Model::PackageDetails::WithPackageID
PackageDetails & WithPackageID(const char *value)
Definition: PackageDetails.h:82
PackageType.h
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::PackageDetails::SetLastUpdatedAt
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: PackageDetails.h:276
Aws::ElasticsearchService::Model::PackageDetails::WithPackageName
PackageDetails & WithPackageName(const char *value)
Definition: PackageDetails.h:123
Aws::ElasticsearchService::Model::PackageDetails::PackageNameHasBeenSet
bool PackageNameHasBeenSet() const
Definition: PackageDetails.h:93
Aws::ElasticsearchService::Model::PackageDetails::SetPackageDescription
void SetPackageDescription(const char *value)
Definition: PackageDetails.h:180
Aws::ElasticsearchService::Model::PackageDetails::SetErrorDetails
void SetErrorDetails(ErrorDetails &&value)
Definition: PackageDetails.h:332
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PackageStatus.h
Aws::ElasticsearchService::Model::PackageDetails::SetPackageDescription
void SetPackageDescription(Aws::String &&value)
Definition: PackageDetails.h:175
Aws::ElasticsearchService::Model::PackageDetails::SetPackageName
void SetPackageName(Aws::String &&value)
Definition: PackageDetails.h:103
Aws::ElasticsearchService::Model::PackageDetails::WithCreatedAt
PackageDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: PackageDetails.h:263
Aws::ElasticsearchService::Model::PackageDetails::GetPackageDescription
const Aws::String & GetPackageDescription() const
Definition: PackageDetails.h:160
ErrorDetails.h
Aws::ElasticsearchService::Model::PackageDetails::SetPackageType
void SetPackageType(PackageType &&value)
Definition: PackageDetails.h:144
Aws::ElasticsearchService::Model::PackageDetails::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: PackageDetails.h:243
Aws::ElasticsearchService::Model::PackageDetails::PackageStatusHasBeenSet
bool PackageStatusHasBeenSet() const
Definition: PackageDetails.h:208
Aws::ElasticsearchService::Model::PackageDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::PackageDetails::SetPackageName
void SetPackageName(const Aws::String &value)
Definition: PackageDetails.h:98
Aws::ElasticsearchService::Model::PackageDetails::SetPackageDescription
void SetPackageDescription(const Aws::String &value)
Definition: PackageDetails.h:170
Aws::ElasticsearchService::Model::PackageDetails::WithCreatedAt
PackageDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: PackageDetails.h:258