AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_LAMBDA_API PublishLayerVersionRequest() = default;
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 template<typename LayerNameT = Aws::String>
46 void SetLayerName(LayerNameT&& value) { m_layerNameHasBeenSet = true; m_layerName = std::forward<LayerNameT>(value); }
47 template<typename LayerNameT = Aws::String>
48 PublishLayerVersionRequest& WithLayerName(LayerNameT&& value) { SetLayerName(std::forward<LayerNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 PublishLayerVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const LayerVersionContentInput& GetContent() const { return m_content; }
68 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
69 template<typename ContentT = LayerVersionContentInput>
70 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
71 template<typename ContentT = LayerVersionContentInput>
72 PublishLayerVersionRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
74
76
85 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
86 inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
87 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
88 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value); }
89 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
90 PublishLayerVersionRequest& WithCompatibleRuntimes(CompatibleRuntimesT&& value) { SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value)); return *this;}
91 inline PublishLayerVersionRequest& AddCompatibleRuntimes(Runtime value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
93
95
102 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
103 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
104 template<typename LicenseInfoT = Aws::String>
105 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
106 template<typename LicenseInfoT = Aws::String>
107 PublishLayerVersionRequest& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
109
111
116 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
117 inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; }
118 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
119 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value); }
120 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
121 PublishLayerVersionRequest& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) { SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value)); return *this;}
122 inline PublishLayerVersionRequest& AddCompatibleArchitectures(Architecture value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
124 private:
125
126 Aws::String m_layerName;
127 bool m_layerNameHasBeenSet = false;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
132 LayerVersionContentInput m_content;
133 bool m_contentHasBeenSet = false;
134
135 Aws::Vector<Runtime> m_compatibleRuntimes;
136 bool m_compatibleRuntimesHasBeenSet = false;
137
138 Aws::String m_licenseInfo;
139 bool m_licenseInfoHasBeenSet = false;
140
141 Aws::Vector<Architecture> m_compatibleArchitectures;
142 bool m_compatibleArchitecturesHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Lambda
147} // 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