AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishLayerVersionRequest.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/LambdaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/model/LayerVersionContentInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lambda/model/Runtime.h>
13#include <aws/lambda/model/Architecture.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Lambda
19{
20namespace 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_LAMBDA_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetLayerName() const{ return m_layerName; }
44 inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
45 inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
46 inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
47 inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
48 inline PublishLayerVersionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
49 inline PublishLayerVersionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
50 inline PublishLayerVersionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline PublishLayerVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline PublishLayerVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline PublishLayerVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const LayerVersionContentInput& GetContent() const{ return m_content; }
72 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
73 inline void SetContent(const LayerVersionContentInput& value) { m_contentHasBeenSet = true; m_content = value; }
74 inline void SetContent(LayerVersionContentInput&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
75 inline PublishLayerVersionRequest& WithContent(const LayerVersionContentInput& value) { SetContent(value); return *this;}
76 inline PublishLayerVersionRequest& WithContent(LayerVersionContentInput&& value) { SetContent(std::move(value)); return *this;}
78
80
89 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
90 inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
91 inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = value; }
92 inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::move(value); }
95 inline PublishLayerVersionRequest& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
96 inline PublishLayerVersionRequest& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(std::move(value)); return *this; }
98
100
107 inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
108 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
109 inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = value; }
110 inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::move(value); }
111 inline void SetLicenseInfo(const char* value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.assign(value); }
112 inline PublishLayerVersionRequest& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
113 inline PublishLayerVersionRequest& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
114 inline PublishLayerVersionRequest& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
116
118
123 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const{ return m_compatibleArchitectures; }
124 inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
125 inline void SetCompatibleArchitectures(const Aws::Vector<Architecture>& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = value; }
126 inline void SetCompatibleArchitectures(Aws::Vector<Architecture>&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::move(value); }
129 inline PublishLayerVersionRequest& AddCompatibleArchitectures(const Architecture& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
130 inline PublishLayerVersionRequest& AddCompatibleArchitectures(Architecture&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::String m_layerName;
135 bool m_layerNameHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 LayerVersionContentInput m_content;
141 bool m_contentHasBeenSet = false;
142
143 Aws::Vector<Runtime> m_compatibleRuntimes;
144 bool m_compatibleRuntimesHasBeenSet = false;
145
146 Aws::String m_licenseInfo;
147 bool m_licenseInfoHasBeenSet = false;
148
149 Aws::Vector<Architecture> m_compatibleArchitectures;
150 bool m_compatibleArchitecturesHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Lambda
155} // namespace Aws
void SetContent(LayerVersionContentInput &&value)
void SetCompatibleArchitectures(Aws::Vector< Architecture > &&value)
PublishLayerVersionRequest & WithDescription(Aws::String &&value)
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
PublishLayerVersionRequest & WithLicenseInfo(const Aws::String &value)
const LayerVersionContentInput & GetContent() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
PublishLayerVersionRequest & WithLayerName(const char *value)
void SetCompatibleRuntimes(Aws::Vector< Runtime > &&value)
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
PublishLayerVersionRequest & AddCompatibleRuntimes(Runtime &&value)
PublishLayerVersionRequest & AddCompatibleRuntimes(const Runtime &value)
PublishLayerVersionRequest & WithContent(LayerVersionContentInput &&value)
PublishLayerVersionRequest & WithCompatibleRuntimes(Aws::Vector< Runtime > &&value)
PublishLayerVersionRequest & AddCompatibleArchitectures(Architecture &&value)
PublishLayerVersionRequest & WithCompatibleRuntimes(const Aws::Vector< Runtime > &value)
void SetContent(const LayerVersionContentInput &value)
PublishLayerVersionRequest & WithLicenseInfo(const char *value)
void SetCompatibleArchitectures(const Aws::Vector< Architecture > &value)
PublishLayerVersionRequest & WithDescription(const Aws::String &value)
PublishLayerVersionRequest & WithLicenseInfo(Aws::String &&value)
PublishLayerVersionRequest & WithCompatibleArchitectures(Aws::Vector< Architecture > &&value)
PublishLayerVersionRequest & AddCompatibleArchitectures(const Architecture &value)
virtual const char * GetServiceRequestName() const override
PublishLayerVersionRequest & WithCompatibleArchitectures(const Aws::Vector< Architecture > &value)
PublishLayerVersionRequest & WithLayerName(const Aws::String &value)
PublishLayerVersionRequest & WithLayerName(Aws::String &&value)
void SetCompatibleRuntimes(const Aws::Vector< Runtime > &value)
PublishLayerVersionRequest & WithContent(const LayerVersionContentInput &value)
PublishLayerVersionRequest & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector