AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CanaryCodeInput.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/synthetics/Synthetics_EXPORTS.h>
11#include <aws/synthetics/model/Dependency.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Synthetics {
23namespace Model {
24
47 public:
48 AWS_SYNTHETICS_API CanaryCodeInput() = default;
49 AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue);
51 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
52
54
58 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
59 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
60 template <typename S3BucketT = Aws::String>
61 void SetS3Bucket(S3BucketT&& value) {
62 m_s3BucketHasBeenSet = true;
63 m_s3Bucket = std::forward<S3BucketT>(value);
64 }
65 template <typename S3BucketT = Aws::String>
66 CanaryCodeInput& WithS3Bucket(S3BucketT&& value) {
67 SetS3Bucket(std::forward<S3BucketT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetS3Key() const { return m_s3Key; }
79 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
80 template <typename S3KeyT = Aws::String>
81 void SetS3Key(S3KeyT&& value) {
82 m_s3KeyHasBeenSet = true;
83 m_s3Key = std::forward<S3KeyT>(value);
84 }
85 template <typename S3KeyT = Aws::String>
86 CanaryCodeInput& WithS3Key(S3KeyT&& value) {
87 SetS3Key(std::forward<S3KeyT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetS3Version() const { return m_s3Version; }
97 inline bool S3VersionHasBeenSet() const { return m_s3VersionHasBeenSet; }
98 template <typename S3VersionT = Aws::String>
99 void SetS3Version(S3VersionT&& value) {
100 m_s3VersionHasBeenSet = true;
101 m_s3Version = std::forward<S3VersionT>(value);
102 }
103 template <typename S3VersionT = Aws::String>
104 CanaryCodeInput& WithS3Version(S3VersionT&& value) {
105 SetS3Version(std::forward<S3VersionT>(value));
106 return *this;
107 }
109
111
118 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
119 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
120 template <typename ZipFileT = Aws::Utils::ByteBuffer>
121 void SetZipFile(ZipFileT&& value) {
122 m_zipFileHasBeenSet = true;
123 m_zipFile = std::forward<ZipFileT>(value);
124 }
125 template <typename ZipFileT = Aws::Utils::ByteBuffer>
126 CanaryCodeInput& WithZipFile(ZipFileT&& value) {
127 SetZipFile(std::forward<ZipFileT>(value));
128 return *this;
129 }
131
133
146 inline const Aws::String& GetHandler() const { return m_handler; }
147 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
148 template <typename HandlerT = Aws::String>
149 void SetHandler(HandlerT&& value) {
150 m_handlerHasBeenSet = true;
151 m_handler = std::forward<HandlerT>(value);
152 }
153 template <typename HandlerT = Aws::String>
154 CanaryCodeInput& WithHandler(HandlerT&& value) {
155 SetHandler(std::forward<HandlerT>(value));
156 return *this;
157 }
159
161
173 inline const Aws::Vector<Aws::String>& GetBlueprintTypes() const { return m_blueprintTypes; }
174 inline bool BlueprintTypesHasBeenSet() const { return m_blueprintTypesHasBeenSet; }
175 template <typename BlueprintTypesT = Aws::Vector<Aws::String>>
176 void SetBlueprintTypes(BlueprintTypesT&& value) {
177 m_blueprintTypesHasBeenSet = true;
178 m_blueprintTypes = std::forward<BlueprintTypesT>(value);
179 }
180 template <typename BlueprintTypesT = Aws::Vector<Aws::String>>
181 CanaryCodeInput& WithBlueprintTypes(BlueprintTypesT&& value) {
182 SetBlueprintTypes(std::forward<BlueprintTypesT>(value));
183 return *this;
184 }
185 template <typename BlueprintTypesT = Aws::String>
186 CanaryCodeInput& AddBlueprintTypes(BlueprintTypesT&& value) {
187 m_blueprintTypesHasBeenSet = true;
188 m_blueprintTypes.emplace_back(std::forward<BlueprintTypesT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::Vector<Dependency>& GetDependencies() const { return m_dependencies; }
200 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
201 template <typename DependenciesT = Aws::Vector<Dependency>>
202 void SetDependencies(DependenciesT&& value) {
203 m_dependenciesHasBeenSet = true;
204 m_dependencies = std::forward<DependenciesT>(value);
205 }
206 template <typename DependenciesT = Aws::Vector<Dependency>>
207 CanaryCodeInput& WithDependencies(DependenciesT&& value) {
208 SetDependencies(std::forward<DependenciesT>(value));
209 return *this;
210 }
211 template <typename DependenciesT = Dependency>
212 CanaryCodeInput& AddDependencies(DependenciesT&& value) {
213 m_dependenciesHasBeenSet = true;
214 m_dependencies.emplace_back(std::forward<DependenciesT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_s3Bucket;
220
221 Aws::String m_s3Key;
222
223 Aws::String m_s3Version;
224
225 Aws::Utils::ByteBuffer m_zipFile{};
226
227 Aws::String m_handler;
228
229 Aws::Vector<Aws::String> m_blueprintTypes;
230
231 Aws::Vector<Dependency> m_dependencies;
232 bool m_s3BucketHasBeenSet = false;
233 bool m_s3KeyHasBeenSet = false;
234 bool m_s3VersionHasBeenSet = false;
235 bool m_zipFileHasBeenSet = false;
236 bool m_handlerHasBeenSet = false;
237 bool m_blueprintTypesHasBeenSet = false;
238 bool m_dependenciesHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Synthetics
243} // namespace Aws
AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue)
void SetBlueprintTypes(BlueprintTypesT &&value)
void SetDependencies(DependenciesT &&value)
CanaryCodeInput & WithBlueprintTypes(BlueprintTypesT &&value)
const Aws::Vector< Aws::String > & GetBlueprintTypes() const
CanaryCodeInput & WithDependencies(DependenciesT &&value)
CanaryCodeInput & WithZipFile(ZipFileT &&value)
CanaryCodeInput & AddDependencies(DependenciesT &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetS3Version() const
const Aws::String & GetS3Key() const
CanaryCodeInput & WithS3Bucket(S3BucketT &&value)
AWS_SYNTHETICS_API CanaryCodeInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHandler() const
CanaryCodeInput & AddBlueprintTypes(BlueprintTypesT &&value)
AWS_SYNTHETICS_API CanaryCodeInput()=default
const Aws::Utils::ByteBuffer & GetZipFile() const
CanaryCodeInput & WithS3Key(S3KeyT &&value)
CanaryCodeInput & WithHandler(HandlerT &&value)
const Aws::Vector< Dependency > & GetDependencies() const
const Aws::String & GetS3Bucket() const
CanaryCodeInput & WithS3Version(S3VersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue