AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
FunctionCode.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
31 public:
32 AWS_LAMBDA_API FunctionCode() = default;
33 AWS_LAMBDA_API FunctionCode(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
43 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
44 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
45 void SetZipFile(ZipFileT&& value) {
46 m_zipFileHasBeenSet = true;
47 m_zipFile = std::forward<ZipFileT>(value);
48 }
49 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
50 FunctionCode& WithZipFile(ZipFileT&& value) {
51 SetZipFile(std::forward<ZipFileT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
62 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
63 template <typename S3BucketT = Aws::String>
64 void SetS3Bucket(S3BucketT&& value) {
65 m_s3BucketHasBeenSet = true;
66 m_s3Bucket = std::forward<S3BucketT>(value);
67 }
68 template <typename S3BucketT = Aws::String>
69 FunctionCode& WithS3Bucket(S3BucketT&& value) {
70 SetS3Bucket(std::forward<S3BucketT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetS3Key() const { return m_s3Key; }
80 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
81 template <typename S3KeyT = Aws::String>
82 void SetS3Key(S3KeyT&& value) {
83 m_s3KeyHasBeenSet = true;
84 m_s3Key = std::forward<S3KeyT>(value);
85 }
86 template <typename S3KeyT = Aws::String>
87 FunctionCode& WithS3Key(S3KeyT&& value) {
88 SetS3Key(std::forward<S3KeyT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
99 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
100 template <typename S3ObjectVersionT = Aws::String>
101 void SetS3ObjectVersion(S3ObjectVersionT&& value) {
102 m_s3ObjectVersionHasBeenSet = true;
103 m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value);
104 }
105 template <typename S3ObjectVersionT = Aws::String>
106 FunctionCode& WithS3ObjectVersion(S3ObjectVersionT&& value) {
107 SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetImageUri() const { return m_imageUri; }
119 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
120 template <typename ImageUriT = Aws::String>
121 void SetImageUri(ImageUriT&& value) {
122 m_imageUriHasBeenSet = true;
123 m_imageUri = std::forward<ImageUriT>(value);
124 }
125 template <typename ImageUriT = Aws::String>
126 FunctionCode& WithImageUri(ImageUriT&& value) {
127 SetImageUri(std::forward<ImageUriT>(value));
128 return *this;
129 }
131
133
140 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
141 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
142 template <typename SourceKMSKeyArnT = Aws::String>
143 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
144 m_sourceKMSKeyArnHasBeenSet = true;
145 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
146 }
147 template <typename SourceKMSKeyArnT = Aws::String>
148 FunctionCode& WithSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
149 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
150 return *this;
151 }
153 private:
154 Aws::Utils::CryptoBuffer m_zipFile{};
155 bool m_zipFileHasBeenSet = false;
156
157 Aws::String m_s3Bucket;
158 bool m_s3BucketHasBeenSet = false;
159
160 Aws::String m_s3Key;
161 bool m_s3KeyHasBeenSet = false;
162
163 Aws::String m_s3ObjectVersion;
164 bool m_s3ObjectVersionHasBeenSet = false;
165
166 Aws::String m_imageUri;
167 bool m_imageUriHasBeenSet = false;
168
169 Aws::String m_sourceKMSKeyArn;
170 bool m_sourceKMSKeyArnHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Lambda
175} // namespace Aws
FunctionCode & WithImageUri(ImageUriT &&value)
void SetSourceKMSKeyArn(SourceKMSKeyArnT &&value)
const Aws::String & GetSourceKMSKeyArn() const
void SetImageUri(ImageUriT &&value)
FunctionCode & WithSourceKMSKeyArn(SourceKMSKeyArnT &&value)
AWS_LAMBDA_API FunctionCode & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionCode & WithS3Key(S3KeyT &&value)
const Aws::String & GetS3ObjectVersion() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionCode & WithS3Bucket(S3BucketT &&value)
const Aws::String & GetS3Key() const
void SetS3Bucket(S3BucketT &&value)
void SetS3Key(S3KeyT &&value)
AWS_LAMBDA_API FunctionCode(Aws::Utils::Json::JsonView jsonValue)
FunctionCode & WithZipFile(ZipFileT &&value)
AWS_LAMBDA_API FunctionCode()=default
const Aws::Utils::CryptoBuffer & GetZipFile() const
const Aws::String & GetImageUri() const
const Aws::String & GetS3Bucket() const
void SetZipFile(ZipFileT &&value)
FunctionCode & WithS3ObjectVersion(S3ObjectVersionT &&value)
void SetS3ObjectVersion(S3ObjectVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue