AWS SDK for C++  1.9.20
AWS SDK for C++
PublishLayerVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Lambda
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PublishLayerVersion"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetLayerName() const{ return m_layerName; }
42 
46  inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
47 
51  inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
52 
56  inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
57 
61  inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
62 
66  inline PublishLayerVersionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
67 
71  inline PublishLayerVersionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
72 
76  inline PublishLayerVersionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline PublishLayerVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline PublishLayerVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline PublishLayerVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const LayerVersionContentInput& GetContent() const{ return m_content; }
124 
128  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
129 
133  inline void SetContent(const LayerVersionContentInput& value) { m_contentHasBeenSet = true; m_content = value; }
134 
138  inline void SetContent(LayerVersionContentInput&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
139 
143  inline PublishLayerVersionRequest& WithContent(const LayerVersionContentInput& value) { SetContent(value); return *this;}
144 
148  inline PublishLayerVersionRequest& WithContent(LayerVersionContentInput&& value) { SetContent(std::move(value)); return *this;}
149 
150 
157  inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
158 
165  inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; }
166 
173  inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = value; }
174 
181  inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::move(value); }
182 
189  inline PublishLayerVersionRequest& WithCompatibleRuntimes(const Aws::Vector<Runtime>& value) { SetCompatibleRuntimes(value); return *this;}
190 
197  inline PublishLayerVersionRequest& WithCompatibleRuntimes(Aws::Vector<Runtime>&& value) { SetCompatibleRuntimes(std::move(value)); return *this;}
198 
205  inline PublishLayerVersionRequest& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
206 
213  inline PublishLayerVersionRequest& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(std::move(value)); return *this; }
214 
215 
223  inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
224 
232  inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
233 
241  inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = value; }
242 
250  inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::move(value); }
251 
259  inline void SetLicenseInfo(const char* value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.assign(value); }
260 
268  inline PublishLayerVersionRequest& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
269 
277  inline PublishLayerVersionRequest& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
278 
286  inline PublishLayerVersionRequest& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
287 
288  private:
289 
290  Aws::String m_layerName;
291  bool m_layerNameHasBeenSet;
292 
293  Aws::String m_description;
294  bool m_descriptionHasBeenSet;
295 
296  LayerVersionContentInput m_content;
297  bool m_contentHasBeenSet;
298 
299  Aws::Vector<Runtime> m_compatibleRuntimes;
300  bool m_compatibleRuntimesHasBeenSet;
301 
302  Aws::String m_licenseInfo;
303  bool m_licenseInfoHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace Lambda
308 } // namespace Aws
Aws::Lambda::Model::PublishLayerVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PublishLayerVersionRequest.h:87
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(const char *value)
Definition: PublishLayerVersionRequest.h:286
Aws::Lambda::Model::PublishLayerVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:97
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:241
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:107
Aws::Lambda::Model::PublishLayerVersionRequest::GetLicenseInfo
const Aws::String & GetLicenseInfo() const
Definition: PublishLayerVersionRequest.h:223
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(const char *value)
Definition: PublishLayerVersionRequest.h:117
Aws::Lambda::Model::PublishLayerVersionRequest
Definition: PublishLayerVersionRequest.h:25
Aws::Lambda::Model::PublishLayerVersionRequest::LayerNameHasBeenSet
bool LayerNameHasBeenSet() const
Definition: PublishLayerVersionRequest.h:46
Aws::Lambda::Model::LayerVersionContentInput
Definition: LayerVersionContentInput.h:36
Aws::Lambda::Model::PublishLayerVersionRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: PublishLayerVersionRequest.h:128
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleRuntimes
PublishLayerVersionRequest & WithCompatibleRuntimes(const Aws::Vector< Runtime > &value)
Definition: PublishLayerVersionRequest.h:189
Aws::Lambda::Model::PublishLayerVersionRequest::CompatibleRuntimesHasBeenSet
bool CompatibleRuntimesHasBeenSet() const
Definition: PublishLayerVersionRequest.h:165
Aws::Lambda::Model::PublishLayerVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lambda::Model::PublishLayerVersionRequest::SetContent
void SetContent(const LayerVersionContentInput &value)
Definition: PublishLayerVersionRequest.h:133
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:71
Aws::Lambda::Model::PublishLayerVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PublishLayerVersionRequest.h:33
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:250
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:277
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:205
AWSVector.h
Aws::Lambda::Model::PublishLayerVersionRequest::WithContent
PublishLayerVersionRequest & WithContent(const LayerVersionContentInput &value)
Definition: PublishLayerVersionRequest.h:143
Aws::Lambda::Model::PublishLayerVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: PublishLayerVersionRequest.h:102
Aws::Lambda::Model::Runtime
Runtime
Definition: Runtime.h:17
Aws::Lambda::Model::PublishLayerVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PublishLayerVersionRequest.h:82
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:92
Aws::Lambda::Model::PublishLayerVersionRequest::SetContent
void SetContent(LayerVersionContentInput &&value)
Definition: PublishLayerVersionRequest.h:138
Aws::Lambda::Model::PublishLayerVersionRequest::PublishLayerVersionRequest
PublishLayerVersionRequest()
Aws::Lambda::Model::PublishLayerVersionRequest::SetLicenseInfo
void SetLicenseInfo(const char *value)
Definition: PublishLayerVersionRequest.h:259
Aws::Lambda::Model::PublishLayerVersionRequest::SetCompatibleRuntimes
void SetCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: PublishLayerVersionRequest.h:181
LayerVersionContentInput.h
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(const char *value)
Definition: PublishLayerVersionRequest.h:61
AWSString.h
Aws::Lambda::Model::PublishLayerVersionRequest::WithContent
PublishLayerVersionRequest & WithContent(LayerVersionContentInput &&value)
Definition: PublishLayerVersionRequest.h:148
Aws::Lambda::Model::PublishLayerVersionRequest::AddCompatibleRuntimes
PublishLayerVersionRequest & AddCompatibleRuntimes(Runtime &&value)
Definition: PublishLayerVersionRequest.h:213
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(const char *value)
Definition: PublishLayerVersionRequest.h:76
LambdaRequest.h
Aws::Lambda::Model::PublishLayerVersionRequest::LicenseInfoHasBeenSet
bool LicenseInfoHasBeenSet() const
Definition: PublishLayerVersionRequest.h:232
Aws::Lambda::Model::PublishLayerVersionRequest::GetCompatibleRuntimes
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
Definition: PublishLayerVersionRequest.h:157
Runtime.h
Aws::Lambda::LambdaRequest
Definition: LambdaRequest.h:18
Aws::Lambda::Model::PublishLayerVersionRequest::WithLicenseInfo
PublishLayerVersionRequest & WithLicenseInfo(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:268
Aws::Lambda::Model::PublishLayerVersionRequest::GetContent
const LayerVersionContentInput & GetContent() const
Definition: PublishLayerVersionRequest.h:123
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::PublishLayerVersionRequest::WithDescription
PublishLayerVersionRequest & WithDescription(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:112
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:173
Aws::Lambda::Model::PublishLayerVersionRequest::WithLayerName
PublishLayerVersionRequest & WithLayerName(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:66
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(const Aws::String &value)
Definition: PublishLayerVersionRequest.h:51
Lambda_EXPORTS.h
Aws::Lambda::Model::PublishLayerVersionRequest::SetLayerName
void SetLayerName(Aws::String &&value)
Definition: PublishLayerVersionRequest.h:56
Aws::Lambda::Model::PublishLayerVersionRequest::WithCompatibleRuntimes
PublishLayerVersionRequest & WithCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: PublishLayerVersionRequest.h:197
Aws::Lambda::Model::PublishLayerVersionRequest::GetLayerName
const Aws::String & GetLayerName() const
Definition: PublishLayerVersionRequest.h:41