AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PublishLayerVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/LambdaRequest.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/Architecture.h>
12#include <aws/lambda/model/LayerVersionContentInput.h>
13#include <aws/lambda/model/Runtime.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Lambda {
19namespace Model {
20
24 public:
25 AWS_LAMBDA_API PublishLayerVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PublishLayerVersion"; }
32
33 AWS_LAMBDA_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetLayerName() const { return m_layerName; }
40 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
41 template <typename LayerNameT = Aws::String>
42 void SetLayerName(LayerNameT&& value) {
43 m_layerNameHasBeenSet = true;
44 m_layerName = std::forward<LayerNameT>(value);
45 }
46 template <typename LayerNameT = Aws::String>
48 SetLayerName(std::forward<LayerNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const LayerVersionContentInput& GetContent() const { return m_content; }
76 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
77 template <typename ContentT = LayerVersionContentInput>
78 void SetContent(ContentT&& value) {
79 m_contentHasBeenSet = true;
80 m_content = std::forward<ContentT>(value);
81 }
82 template <typename ContentT = LayerVersionContentInput>
84 SetContent(std::forward<ContentT>(value));
85 return *this;
86 }
88
90
99 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
100 inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
101 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
102 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) {
103 m_compatibleRuntimesHasBeenSet = true;
104 m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value);
105 }
106 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
108 SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value));
109 return *this;
110 }
112 m_compatibleRuntimesHasBeenSet = true;
113 m_compatibleRuntimes.push_back(value);
114 return *this;
115 }
117
119
126 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
127 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
128 template <typename LicenseInfoT = Aws::String>
129 void SetLicenseInfo(LicenseInfoT&& value) {
130 m_licenseInfoHasBeenSet = true;
131 m_licenseInfo = std::forward<LicenseInfoT>(value);
132 }
133 template <typename LicenseInfoT = Aws::String>
135 SetLicenseInfo(std::forward<LicenseInfoT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
147 inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
148 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
149 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) {
150 m_compatibleArchitecturesHasBeenSet = true;
151 m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value);
152 }
153 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
154 PublishLayerVersionRequest& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) {
155 SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value));
156 return *this;
157 }
159 m_compatibleArchitecturesHasBeenSet = true;
160 m_compatibleArchitectures.push_back(value);
161 return *this;
162 }
164 private:
165 Aws::String m_layerName;
166
167 Aws::String m_description;
168
169 LayerVersionContentInput m_content;
170
171 Aws::Vector<Runtime> m_compatibleRuntimes;
172
173 Aws::String m_licenseInfo;
174
175 Aws::Vector<Architecture> m_compatibleArchitectures;
176 bool m_layerNameHasBeenSet = false;
177 bool m_descriptionHasBeenSet = false;
178 bool m_contentHasBeenSet = false;
179 bool m_compatibleRuntimesHasBeenSet = false;
180 bool m_licenseInfoHasBeenSet = false;
181 bool m_compatibleArchitecturesHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Lambda
186} // namespace Aws
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
PublishLayerVersionRequest & AddCompatibleRuntimes(Runtime value)
AWS_LAMBDA_API PublishLayerVersionRequest()=default
PublishLayerVersionRequest & WithCompatibleRuntimes(CompatibleRuntimesT &&value)
const LayerVersionContentInput & GetContent() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
PublishLayerVersionRequest & WithLicenseInfo(LicenseInfoT &&value)
void SetCompatibleArchitectures(CompatibleArchitecturesT &&value)
PublishLayerVersionRequest & WithDescription(DescriptionT &&value)
PublishLayerVersionRequest & AddCompatibleArchitectures(Architecture value)
PublishLayerVersionRequest & WithLayerName(LayerNameT &&value)
virtual const char * GetServiceRequestName() const override
PublishLayerVersionRequest & WithCompatibleArchitectures(CompatibleArchitecturesT &&value)
PublishLayerVersionRequest & WithContent(ContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector