AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FunctionCode.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LAMBDA_API FunctionCode() = default;
38 AWS_LAMBDA_API FunctionCode(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Utils::CryptoBuffer& GetZipFile() const { return m_zipFile; }
49 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
50 template<typename ZipFileT = Aws::Utils::CryptoBuffer>
51 void SetZipFile(ZipFileT&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::forward<ZipFileT>(value); }
52 template<typename ZipFileT = Aws::Utils::CryptoBuffer>
53 FunctionCode& WithZipFile(ZipFileT&& value) { SetZipFile(std::forward<ZipFileT>(value)); return *this;}
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) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
65 template<typename S3BucketT = Aws::String>
66 FunctionCode& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
68
70
73 inline const Aws::String& GetS3Key() const { return m_s3Key; }
74 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
75 template<typename S3KeyT = Aws::String>
76 void SetS3Key(S3KeyT&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
77 template<typename S3KeyT = Aws::String>
78 FunctionCode& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
80
82
86 inline const Aws::String& GetS3ObjectVersion() const { return m_s3ObjectVersion; }
87 inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
88 template<typename S3ObjectVersionT = Aws::String>
89 void SetS3ObjectVersion(S3ObjectVersionT&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = std::forward<S3ObjectVersionT>(value); }
90 template<typename S3ObjectVersionT = Aws::String>
91 FunctionCode& WithS3ObjectVersion(S3ObjectVersionT&& value) { SetS3ObjectVersion(std::forward<S3ObjectVersionT>(value)); return *this;}
93
95
100 inline const Aws::String& GetImageUri() const { return m_imageUri; }
101 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
102 template<typename ImageUriT = Aws::String>
103 void SetImageUri(ImageUriT&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::forward<ImageUriT>(value); }
104 template<typename ImageUriT = Aws::String>
105 FunctionCode& WithImageUri(ImageUriT&& value) { SetImageUri(std::forward<ImageUriT>(value)); return *this;}
107
109
116 inline const Aws::String& GetSourceKMSKeyArn() const { return m_sourceKMSKeyArn; }
117 inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
118 template<typename SourceKMSKeyArnT = Aws::String>
119 void SetSourceKMSKeyArn(SourceKMSKeyArnT&& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = std::forward<SourceKMSKeyArnT>(value); }
120 template<typename SourceKMSKeyArnT = Aws::String>
121 FunctionCode& WithSourceKMSKeyArn(SourceKMSKeyArnT&& value) { SetSourceKMSKeyArn(std::forward<SourceKMSKeyArnT>(value)); return *this;}
123 private:
124
125 Aws::Utils::CryptoBuffer m_zipFile{};
126 bool m_zipFileHasBeenSet = false;
127
128 Aws::String m_s3Bucket;
129 bool m_s3BucketHasBeenSet = false;
130
131 Aws::String m_s3Key;
132 bool m_s3KeyHasBeenSet = false;
133
134 Aws::String m_s3ObjectVersion;
135 bool m_s3ObjectVersionHasBeenSet = false;
136
137 Aws::String m_imageUri;
138 bool m_imageUriHasBeenSet = false;
139
140 Aws::String m_sourceKMSKeyArn;
141 bool m_sourceKMSKeyArnHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Lambda
146} // 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