AWS SDK for C++

AWS SDK for C++ Version 1.11.835

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#include <aws/lambda/model/S3ObjectStorageMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lambda {
22namespace Model {
23
32 public:
33 AWS_LAMBDA_API FunctionCode() = default;
34 AWS_LAMBDA_API FunctionCode(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
44 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
45 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
46 void SetZipFile(ZipFileT&& value) {
47 m_zipFileHasBeenSet = true;
48 m_zipFile = std::forward<ZipFileT>(value);
49 }
50 template <typename ZipFileT = Aws::Utils::CryptoBuffer>
51 FunctionCode& WithZipFile(ZipFileT&& value) {
52 SetZipFile(std::forward<ZipFileT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
63 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
64 template <typename S3BucketT = Aws::String>
65 void SetS3Bucket(S3BucketT&& value) {
66 m_s3BucketHasBeenSet = true;
67 m_s3Bucket = std::forward<S3BucketT>(value);
68 }
69 template <typename S3BucketT = Aws::String>
70 FunctionCode& WithS3Bucket(S3BucketT&& value) {
71 SetS3Bucket(std::forward<S3BucketT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetS3Key() const { return m_s3Key; }
81 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
82 template <typename S3KeyT = Aws::String>
83 void SetS3Key(S3KeyT&& value) {
84 m_s3KeyHasBeenSet = true;
85 m_s3Key = std::forward<S3KeyT>(value);
86 }
87 template <typename S3KeyT = Aws::String>
88 FunctionCode& WithS3Key(S3KeyT&& value) {
89 SetS3Key(std::forward<S3KeyT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
100 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
101 template <typename S3ObjectVersionT = Aws::String>
102 void SetS3ObjectVersion(S3ObjectVersionT&& value) {
103 m_s3ObjectVersionHasBeenSet = true;
104 m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value);
105 }
106 template <typename S3ObjectVersionT = Aws::String>
107 FunctionCode& WithS3ObjectVersion(S3ObjectVersionT&& value) {
108 SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value));
109 return *this;
110 }
112
114
120 inline S3ObjectStorageMode GetS3ObjectStorageMode() const { return m_s3ObjectStorageMode; }
121 inline bool S3ObjectStorageModeHasBeenSet() const { return m_s3ObjectStorageModeHasBeenSet; }
123 m_s3ObjectStorageModeHasBeenSet = true;
124 m_s3ObjectStorageMode = value;
125 }
128 return *this;
129 }
131
133
138 inline const Aws::String& GetImageUri() const { return m_imageUri; }
139 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
140 template <typename ImageUriT = Aws::String>
141 void SetImageUri(ImageUriT&& value) {
142 m_imageUriHasBeenSet = true;
143 m_imageUri = std::forward<ImageUriT>(value);
144 }
145 template <typename ImageUriT = Aws::String>
146 FunctionCode& WithImageUri(ImageUriT&& value) {
147 SetImageUri(std::forward<ImageUriT>(value));
148 return *this;
149 }
151
153
160 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
161 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
162 template <typename SourceKMSKeyArnT = Aws::String>
163 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
164 m_sourceKMSKeyArnHasBeenSet = true;
165 m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value);
166 }
167 template <typename SourceKMSKeyArnT = Aws::String>
168 FunctionCode& WithSourceKMSKeyArn(SourceKMSKeyArnT&& value) {
169 SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value));
170 return *this;
171 }
173 private:
174 Aws::Utils::CryptoBuffer m_zipFile{};
175
176 Aws::String m_s3Bucket;
177
178 Aws::String m_s3Key;
179
180 Aws::String m_s3ObjectVersion;
181
183
184 Aws::String m_imageUri;
185
186 Aws::String m_sourceKMSKeyArn;
187 bool m_zipFileHasBeenSet = false;
188 bool m_s3BucketHasBeenSet = false;
189 bool m_s3KeyHasBeenSet = false;
190 bool m_s3ObjectVersionHasBeenSet = false;
191 bool m_s3ObjectStorageModeHasBeenSet = false;
192 bool m_imageUriHasBeenSet = false;
193 bool m_sourceKMSKeyArnHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace Lambda
198} // namespace Aws
FunctionCode & WithImageUri(ImageUriT &&value)
FunctionCode & WithS3ObjectStorageMode(S3ObjectStorageMode 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)
S3ObjectStorageMode GetS3ObjectStorageMode() const
FunctionCode & WithS3Key(S3KeyT &&value)
const Aws::String & GetS3ObjectVersion() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionCode & WithS3Bucket(S3BucketT &&value)
void SetS3ObjectStorageMode(S3ObjectStorageMode 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