AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename LayerVersionArnT = Aws::String>
52 void SetLayerVersionArn(LayerVersionArnT&& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = std::forward<LayerVersionArnT>(value); }
53 template<typename LayerVersionArnT = Aws::String>
54 LayerVersionsListItem& WithLayerVersionArn(LayerVersionArnT&& value) { SetLayerVersionArn(std::forward<LayerVersionArnT>(value)); return *this;}
56
58
61 inline long long GetVersion() const { return m_version; }
62 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
63 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
64 inline LayerVersionsListItem& WithVersion(long long value) { SetVersion(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 LayerVersionsListItem& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetCreatedDate() const { return m_createdDate; }
85 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
86 template<typename CreatedDateT = Aws::String>
87 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
88 template<typename CreatedDateT = Aws::String>
89 LayerVersionsListItem& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
91
93
102 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
103 inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
104 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
105 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value); }
106 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
107 LayerVersionsListItem& WithCompatibleRuntimes(CompatibleRuntimesT&& value) { SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value)); return *this;}
108 inline LayerVersionsListItem& AddCompatibleRuntimes(Runtime value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
110
112
115 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
116 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
117 template<typename LicenseInfoT = Aws::String>
118 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
119 template<typename LicenseInfoT = Aws::String>
120 LayerVersionsListItem& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
122
124
129 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
130 inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
131 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
132 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value); }
133 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
134 LayerVersionsListItem& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) { SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value)); return *this;}
135 inline LayerVersionsListItem& AddCompatibleArchitectures(Architecture value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
137 private:
138
139 Aws::String m_layerVersionArn;
140 bool m_layerVersionArnHasBeenSet = false;
141
142 long long m_version{0};
143 bool m_versionHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_createdDate;
149 bool m_createdDateHasBeenSet = false;
150
151 Aws::Vector<Runtime> m_compatibleRuntimes;
152 bool m_compatibleRuntimesHasBeenSet = false;
153
154 Aws::String m_licenseInfo;
155 bool m_licenseInfoHasBeenSet = false;
156
157 Aws::Vector<Architecture> m_compatibleArchitectures;
158 bool m_compatibleArchitecturesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace Lambda
163} // namespace Aws
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
LayerVersionsListItem & AddCompatibleRuntimes(Runtime value)
LayerVersionsListItem & WithLayerVersionArn(LayerVersionArnT &&value)
LayerVersionsListItem & WithCompatibleArchitectures(CompatibleArchitecturesT &&value)
AWS_LAMBDA_API LayerVersionsListItem()=default
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
LayerVersionsListItem & AddCompatibleArchitectures(Architecture value)
AWS_LAMBDA_API LayerVersionsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
LayerVersionsListItem & WithVersion(long long value)
void SetLayerVersionArn(LayerVersionArnT &&value)
LayerVersionsListItem & WithCreatedDate(CreatedDateT &&value)
LayerVersionsListItem & WithCompatibleRuntimes(CompatibleRuntimesT &&value)
void SetCompatibleArchitectures(CompatibleArchitecturesT &&value)
void SetCompatibleRuntimes(CompatibleRuntimesT &&value)
LayerVersionsListItem & WithLicenseInfo(LicenseInfoT &&value)
AWS_LAMBDA_API LayerVersionsListItem(Aws::Utils::Json::JsonView jsonValue)
LayerVersionsListItem & WithDescription(DescriptionT &&value)
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue