AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LayerVersionsListItem.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda/model/Runtime.h>
11#include <aws/lambda/model/Architecture.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lambda
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_LAMBDA_API LayerVersionsListItem();
42 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetLayerVersionArn() const{ return m_layerVersionArn; }
50 inline bool LayerVersionArnHasBeenSet() const { return m_layerVersionArnHasBeenSet; }
51 inline void SetLayerVersionArn(const Aws::String& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = value; }
52 inline void SetLayerVersionArn(Aws::String&& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = std::move(value); }
53 inline void SetLayerVersionArn(const char* value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn.assign(value); }
54 inline LayerVersionsListItem& WithLayerVersionArn(const Aws::String& value) { SetLayerVersionArn(value); return *this;}
55 inline LayerVersionsListItem& WithLayerVersionArn(Aws::String&& value) { SetLayerVersionArn(std::move(value)); return *this;}
56 inline LayerVersionsListItem& WithLayerVersionArn(const char* value) { SetLayerVersionArn(value); return *this;}
58
60
63 inline long long GetVersion() const{ return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
66 inline LayerVersionsListItem& WithVersion(long long value) { SetVersion(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline LayerVersionsListItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline LayerVersionsListItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline LayerVersionsListItem& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
88 inline const Aws::String& GetCreatedDate() const{ return m_createdDate; }
89 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
90 inline void SetCreatedDate(const Aws::String& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
91 inline void SetCreatedDate(Aws::String&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
92 inline void SetCreatedDate(const char* value) { m_createdDateHasBeenSet = true; m_createdDate.assign(value); }
93 inline LayerVersionsListItem& WithCreatedDate(const Aws::String& value) { SetCreatedDate(value); return *this;}
94 inline LayerVersionsListItem& WithCreatedDate(Aws::String&& value) { SetCreatedDate(std::move(value)); return *this;}
95 inline LayerVersionsListItem& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;}
97
99
108 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
109 inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
110 inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = value; }
111 inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::move(value); }
114 inline LayerVersionsListItem& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
115 inline LayerVersionsListItem& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(std::move(value)); return *this; }
117
119
122 inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
123 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
124 inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = value; }
125 inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::move(value); }
126 inline void SetLicenseInfo(const char* value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.assign(value); }
127 inline LayerVersionsListItem& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
128 inline LayerVersionsListItem& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
129 inline LayerVersionsListItem& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
131
133
138 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const{ return m_compatibleArchitectures; }
139 inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
140 inline void SetCompatibleArchitectures(const Aws::Vector<Architecture>& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = value; }
141 inline void SetCompatibleArchitectures(Aws::Vector<Architecture>&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::move(value); }
144 inline LayerVersionsListItem& AddCompatibleArchitectures(const Architecture& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
145 inline LayerVersionsListItem& AddCompatibleArchitectures(Architecture&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_layerVersionArn;
150 bool m_layerVersionArnHasBeenSet = false;
151
152 long long m_version;
153 bool m_versionHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::String m_createdDate;
159 bool m_createdDateHasBeenSet = false;
160
161 Aws::Vector<Runtime> m_compatibleRuntimes;
162 bool m_compatibleRuntimesHasBeenSet = false;
163
164 Aws::String m_licenseInfo;
165 bool m_licenseInfoHasBeenSet = false;
166
167 Aws::Vector<Architecture> m_compatibleArchitectures;
168 bool m_compatibleArchitecturesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Lambda
173} // namespace Aws
LayerVersionsListItem & WithDescription(const Aws::String &value)
void SetLayerVersionArn(const Aws::String &value)
LayerVersionsListItem & WithCompatibleArchitectures(Aws::Vector< Architecture > &&value)
LayerVersionsListItem & WithCompatibleRuntimes(Aws::Vector< Runtime > &&value)
LayerVersionsListItem & WithCompatibleArchitectures(const Aws::Vector< Architecture > &value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const Aws::String &value)
LayerVersionsListItem & AddCompatibleArchitectures(const Architecture &value)
void SetCompatibleArchitectures(Aws::Vector< Architecture > &&value)
void SetLicenseInfo(const Aws::String &value)
void SetCreatedDate(const Aws::String &value)
void SetCompatibleArchitectures(const Aws::Vector< Architecture > &value)
LayerVersionsListItem & AddCompatibleArchitectures(Architecture &&value)
LayerVersionsListItem & WithLayerVersionArn(Aws::String &&value)
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
LayerVersionsListItem & WithLayerVersionArn(const Aws::String &value)
LayerVersionsListItem & WithCreatedDate(const Aws::String &value)
AWS_LAMBDA_API LayerVersionsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
LayerVersionsListItem & WithCreatedDate(const char *value)
LayerVersionsListItem & WithVersion(long long value)
LayerVersionsListItem & WithLicenseInfo(const Aws::String &value)
LayerVersionsListItem & WithDescription(const char *value)
void SetCompatibleRuntimes(const Aws::Vector< Runtime > &value)
LayerVersionsListItem & AddCompatibleRuntimes(Runtime &&value)
LayerVersionsListItem & WithLicenseInfo(const char *value)
LayerVersionsListItem & WithCompatibleRuntimes(const Aws::Vector< Runtime > &value)
LayerVersionsListItem & AddCompatibleRuntimes(const Runtime &value)
LayerVersionsListItem & WithCreatedDate(Aws::String &&value)
void SetCompatibleRuntimes(Aws::Vector< Runtime > &&value)
LayerVersionsListItem & WithDescription(Aws::String &&value)
AWS_LAMBDA_API LayerVersionsListItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
LayerVersionsListItem & WithLayerVersionArn(const char *value)
LayerVersionsListItem & WithLicenseInfo(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