AWS SDK for C++  1.9.123
AWS SDK for C++
PublishLayerVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Lambda
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "PublishLayerVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetLayerName() const{ return m_layerName; }
43 
47  inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
48 
52  inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
53 
57  inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
58 
62  inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
63 
67  inline PublishLayerVersionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
68 
72  inline PublishLayerVersionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
73 
77  inline PublishLayerVersionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline PublishLayerVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline PublishLayerVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline PublishLayerVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const LayerVersionContentInput& GetContent() const{ return m_content; }
125 
129  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
130 
134  inline void SetContent(const LayerVersionContentInput& value) { m_contentHasBeenSet = true; m_content = value; }
135 
139  inline void SetContent(LayerVersionContentInput&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
140 
144  inline PublishLayerVersionRequest& WithContent(const LayerVersionContentInput& value) { SetContent(value); return *this;}
145 
149  inline PublishLayerVersionRequest& WithContent(LayerVersionContentInput&& value) { SetContent(std::move(value)); return *this;}
150 
151 
158  inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
159 
166  inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
167 
174  inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = value; }
175 
182  inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::move(value); }
183 
190  inline PublishLayerVersionRequest& WithCompatibleRuntimes(const Aws::Vector<Runtime>& value) { SetCompatibleRuntimes(value); return *this;}
191 
198  inline PublishLayerVersionRequest& WithCompatibleRuntimes(Aws::Vector<Runtime>&& value) { SetCompatibleRuntimes(std::move(value)); return *this;}
199 
206  inline PublishLayerVersionRequest& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
207 
214  inline PublishLayerVersionRequest& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(std::move(value)); return *this; }
215 
216 
224  inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
225 
233  inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
234 
242  inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = value; }
243 
251  inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::move(value); }
252 
260  inline void SetLicenseInfo(const char* value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.assign(value); }
261 
269  inline PublishLayerVersionRequest& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
270 
278  inline PublishLayerVersionRequest& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
279 
287  inline PublishLayerVersionRequest& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
288 
289 
295  inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const{ return m_compatibleArchitectures; }
296 
302  inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
303 
309  inline void SetCompatibleArchitectures(const Aws::Vector<Architecture>& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = value; }
310 
316  inline void SetCompatibleArchitectures(Aws::Vector<Architecture>&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::move(value); }
317 
323  inline PublishLayerVersionRequest& WithCompatibleArchitectures(const Aws::Vector<Architecture>& value) { SetCompatibleArchitectures(value); return *this;}
324 
330  inline PublishLayerVersionRequest& WithCompatibleArchitectures(Aws::Vector<Architecture>&& value) { SetCompatibleArchitectures(std::move(value)); return *this;}
331 
337  inline PublishLayerVersionRequest& AddCompatibleArchitectures(const Architecture& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
338 
344  inline PublishLayerVersionRequest& AddCompatibleArchitectures(Architecture&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(std::move(value)); return *this; }
345 
346  private:
347 
348  Aws::String m_layerName;
349  bool m_layerNameHasBeenSet;
350 
351  Aws::String m_description;
352  bool m_descriptionHasBeenSet;
353 
354  LayerVersionContentInput m_content;
355  bool m_contentHasBeenSet;
356 
357  Aws::Vector<Runtime> m_compatibleRuntimes;
358  bool m_compatibleRuntimesHasBeenSet;
359 
360  Aws::String m_licenseInfo;
361  bool m_licenseInfoHasBeenSet;
362 
363  Aws::Vector<Architecture> m_compatibleArchitectures;
364  bool m_compatibleArchitecturesHasBeenSet;
365  };
366 
367 } // namespace Model
368 } // namespace Lambda
369 } // namespace Aws
Aws::Lambda::Model::PublishLayerVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PublishLayerVersionRequest.h:88
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(const char *value)
Definition: PublishLayerVersionRequest.h:287
Aws::Lambda::Model::PublishLayerVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:98
Aws::Lambda::Model::PublishLayerVersionRequest::AddCompatibleArchitectures
PublishLayerVersionRequest & AddCompatibleArchitectures(Architecture &&value)
Definition: PublishLayerVersionRequest.h:344
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:242
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:108
Aws::Lambda::Model::PublishLayerVersionRequest::SetCompatibleArchitectures
void SetCompatibleArchitectures(Aws::Vector< Architecture > &&value)
Definition: PublishLayerVersionRequest.h:316
Aws::Lambda::Model::PublishLayerVersionRequest::GetLicenseInfo
const Aws::String & GetLicenseInfo() const
Definition: PublishLayerVersionRequest.h:224
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(const char *value)
Definition: PublishLayerVersionRequest.h:118
Aws::Lambda::Model::PublishLayerVersionRequest
Definition: PublishLayerVersionRequest.h:26
Aws::Lambda::Model::PublishLayerVersionRequest::LayerNameHasBeenSet
bool LayerNameHasBeenSet() const
Definition: PublishLayerVersionRequest.h:47
Aws::Lambda::Model::LayerVersionContentInput
Definition: LayerVersionContentInput.h:36
Aws::Lambda::Model::PublishLayerVersionRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: PublishLayerVersionRequest.h:129
Aws::Lambda::Model::PublishLayerVersionRequest::SetCompatibleArchitectures
void SetCompatibleArchitectures(const Aws::Vector< Architecture > &value)
Definition: PublishLayerVersionRequest.h:309
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleRuntimes
PublishLayerVersionRequest & WithCompatibleRuntimes(const Aws::Vector< Runtime > &value)
Definition: PublishLayerVersionRequest.h:190
Aws::Lambda::Model::PublishLayerVersionRequest::CompatibleRuntimesHasBeenSet
bool CompatibleRuntimesHasBeenSet() const
Definition: PublishLayerVersionRequest.h:166
Aws::Lambda::Model::PublishLayerVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::PublishLayerVersionRequest::SetContent
void SetContent(const LayerVersionContentInput &value)
Definition: PublishLayerVersionRequest.h:134
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:72
Aws::Lambda::Model::PublishLayerVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PublishLayerVersionRequest.h:34
Runtime.h
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleArchitectures
PublishLayerVersionRequest & WithCompatibleArchitectures(const Aws::Vector< Architecture > &value)
Definition: PublishLayerVersionRequest.h:323
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:251
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:278
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lambda::Model::PublishLayerVersionRequest::AddCompatibleRuntimes
PublishLayerVersionRequest & AddCompatibleRuntimes(const Runtime &value)
Definition: PublishLayerVersionRequest.h:206
Aws::Lambda::Model::PublishLayerVersionRequest::GetCompatibleArchitectures
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
Definition: PublishLayerVersionRequest.h:295
AWSVector.h
Aws::Lambda::Model::PublishLayerVersionRequest::WithContent
PublishLayerVersionRequest & WithContent(const LayerVersionContentInput &value)
Definition: PublishLayerVersionRequest.h:144
Aws::Lambda::Model::PublishLayerVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: PublishLayerVersionRequest.h:103
Aws::Lambda::Model::Runtime
Runtime
Definition: Runtime.h:17
Aws::Lambda::Model::PublishLayerVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PublishLayerVersionRequest.h:83
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::PublishLayerVersionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:93
Aws::Lambda::Model::PublishLayerVersionRequest::SetContent
void SetContent(LayerVersionContentInput &&value)
Definition: PublishLayerVersionRequest.h:139
Aws::Lambda::Model::PublishLayerVersionRequest::PublishLayerVersionRequest
PublishLayerVersionRequest()
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(const char *value)
Definition: PublishLayerVersionRequest.h:260
Aws::Lambda::Model::PublishLayerVersionRequest::SetCompatibleRuntimes
void SetCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: PublishLayerVersionRequest.h:182
LayerVersionContentInput.h
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(const char *value)
Definition: PublishLayerVersionRequest.h:62
Architecture.h
AWSString.h
Aws::Lambda::Model::PublishLayerVersionRequest::WithContent
PublishLayerVersionRequest & WithContent(LayerVersionContentInput &&value)
Definition: PublishLayerVersionRequest.h:149
Aws::Lambda::Model::PublishLayerVersionRequest::AddCompatibleRuntimes
PublishLayerVersionRequest & AddCompatibleRuntimes(Runtime &&value)
Definition: PublishLayerVersionRequest.h:214
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(const char *value)
Definition: PublishLayerVersionRequest.h:77
LambdaRequest.h
Aws::Lambda::Model::PublishLayerVersionRequest::LicenseInfoHasBeenSet
bool LicenseInfoHasBeenSet() const
Definition: PublishLayerVersionRequest.h:233
Aws::Lambda::Model::PublishLayerVersionRequest::GetCompatibleRuntimes
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
Definition: PublishLayerVersionRequest.h:158
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:269
Aws::Lambda::Model::PublishLayerVersionRequest::GetContent
const LayerVersionContentInput & GetContent() const
Definition: PublishLayerVersionRequest.h:124
Aws::Lambda::Model::PublishLayerVersionRequest::CompatibleArchitecturesHasBeenSet
bool CompatibleArchitecturesHasBeenSet() const
Definition: PublishLayerVersionRequest.h:302
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::Architecture
Architecture
Definition: Architecture.h:17
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::PublishLayerVersionRequest::SetCompatibleRuntimes
void SetCompatibleRuntimes(const Aws::Vector< Runtime > &value)
Definition: PublishLayerVersionRequest.h:174
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:67
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleArchitectures
PublishLayerVersionRequest & WithCompatibleArchitectures(Aws::Vector< Architecture > &&value)
Definition: PublishLayerVersionRequest.h:330
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:52
Lambda_EXPORTS.h
Aws::Lambda::Model::PublishLayerVersionRequest::AddCompatibleArchitectures
PublishLayerVersionRequest & AddCompatibleArchitectures(const Architecture &value)
Definition: PublishLayerVersionRequest.h:337
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:57
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleRuntimes
PublishLayerVersionRequest & WithCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: PublishLayerVersionRequest.h:198
Aws::Lambda::Model::PublishLayerVersionRequest::GetLayerName
const Aws::String & GetLayerName() const
Definition: PublishLayerVersionRequest.h:42