AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageDetails.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/model/PackageType.h>
10#include <aws/es/model/PackageStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/es/model/ErrorDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ElasticsearchService
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API PackageDetails();
39 AWS_ELASTICSEARCHSERVICE_API PackageDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API PackageDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPackageID() const{ return m_packageID; }
49 inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
50 inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
51 inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
52 inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
53 inline PackageDetails& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
54 inline PackageDetails& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
55 inline PackageDetails& WithPackageID(const char* value) { SetPackageID(value); return *this;}
57
59
62 inline const Aws::String& GetPackageName() const{ return m_packageName; }
63 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
64 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
65 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
66 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
67 inline PackageDetails& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
68 inline PackageDetails& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
69 inline PackageDetails& WithPackageName(const char* value) { SetPackageName(value); return *this;}
71
73
76 inline const PackageType& GetPackageType() const{ return m_packageType; }
77 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
78 inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
79 inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
80 inline PackageDetails& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
81 inline PackageDetails& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
89 inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
90 inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
91 inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
92 inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
93 inline PackageDetails& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;}
94 inline PackageDetails& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
95 inline PackageDetails& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
97
99
103 inline const PackageStatus& GetPackageStatus() const{ return m_packageStatus; }
104 inline bool PackageStatusHasBeenSet() const { return m_packageStatusHasBeenSet; }
105 inline void SetPackageStatus(const PackageStatus& value) { m_packageStatusHasBeenSet = true; m_packageStatus = value; }
106 inline void SetPackageStatus(PackageStatus&& value) { m_packageStatusHasBeenSet = true; m_packageStatus = std::move(value); }
107 inline PackageDetails& WithPackageStatus(const PackageStatus& value) { SetPackageStatus(value); return *this;}
108 inline PackageDetails& WithPackageStatus(PackageStatus&& value) { SetPackageStatus(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
116 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
117 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
118 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
119 inline PackageDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
120 inline PackageDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
122
124
125 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
126 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
127 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
128 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
129 inline PackageDetails& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
130 inline PackageDetails& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
132
134
135 inline const Aws::String& GetAvailablePackageVersion() const{ return m_availablePackageVersion; }
136 inline bool AvailablePackageVersionHasBeenSet() const { return m_availablePackageVersionHasBeenSet; }
137 inline void SetAvailablePackageVersion(const Aws::String& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = value; }
138 inline void SetAvailablePackageVersion(Aws::String&& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = std::move(value); }
139 inline void SetAvailablePackageVersion(const char* value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion.assign(value); }
141 inline PackageDetails& WithAvailablePackageVersion(Aws::String&& value) { SetAvailablePackageVersion(std::move(value)); return *this;}
142 inline PackageDetails& WithAvailablePackageVersion(const char* value) { SetAvailablePackageVersion(value); return *this;}
144
146
150 inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; }
151 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
152 inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
153 inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
154 inline PackageDetails& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;}
155 inline PackageDetails& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;}
157 private:
158
159 Aws::String m_packageID;
160 bool m_packageIDHasBeenSet = false;
161
162 Aws::String m_packageName;
163 bool m_packageNameHasBeenSet = false;
164
165 PackageType m_packageType;
166 bool m_packageTypeHasBeenSet = false;
167
168 Aws::String m_packageDescription;
169 bool m_packageDescriptionHasBeenSet = false;
170
171 PackageStatus m_packageStatus;
172 bool m_packageStatusHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdAt;
175 bool m_createdAtHasBeenSet = false;
176
177 Aws::Utils::DateTime m_lastUpdatedAt;
178 bool m_lastUpdatedAtHasBeenSet = false;
179
180 Aws::String m_availablePackageVersion;
181 bool m_availablePackageVersionHasBeenSet = false;
182
183 ErrorDetails m_errorDetails;
184 bool m_errorDetailsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace ElasticsearchService
189} // namespace Aws
PackageDetails & WithPackageDescription(const Aws::String &value)
PackageDetails & WithPackageID(Aws::String &&value)
void SetPackageStatus(const PackageStatus &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
PackageDetails & WithPackageType(PackageType &&value)
AWS_ELASTICSEARCHSERVICE_API PackageDetails()
PackageDetails & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetPackageDescription() const
AWS_ELASTICSEARCHSERVICE_API PackageDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
AWS_ELASTICSEARCHSERVICE_API PackageDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageDetails & WithPackageType(const PackageType &value)
void SetAvailablePackageVersion(const Aws::String &value)
void SetPackageType(const PackageType &value)
PackageDetails & WithPackageName(const Aws::String &value)
void SetPackageID(const Aws::String &value)
PackageDetails & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
PackageDetails & WithPackageStatus(const PackageStatus &value)
PackageDetails & WithPackageName(Aws::String &&value)
PackageDetails & WithAvailablePackageVersion(const char *value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAvailablePackageVersion() const
PackageDetails & WithPackageID(const Aws::String &value)
PackageDetails & WithPackageName(const char *value)
PackageDetails & WithErrorDetails(ErrorDetails &&value)
PackageDetails & WithErrorDetails(const ErrorDetails &value)
PackageDetails & WithPackageDescription(const char *value)
void SetPackageDescription(const Aws::String &value)
void SetErrorDetails(const ErrorDetails &value)
PackageDetails & WithPackageID(const char *value)
PackageDetails & WithPackageDescription(Aws::String &&value)
void SetPackageName(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
PackageDetails & WithPackageStatus(PackageStatus &&value)
PackageDetails & WithAvailablePackageVersion(Aws::String &&value)
PackageDetails & WithAvailablePackageVersion(const Aws::String &value)
PackageDetails & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
PackageDetails & WithCreatedAt(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue