AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CanaryCodeInput.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/synthetics/model/Dependency.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Synthetics
25{
26namespace Model
27{
28
51 {
52 public:
53 AWS_SYNTHETICS_API CanaryCodeInput() = default;
54 AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue);
56 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
64 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
65 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
66 template<typename S3BucketT = Aws::String>
67 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
68 template<typename S3BucketT = Aws::String>
69 CanaryCodeInput& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
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) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
82 template<typename S3KeyT = Aws::String>
83 CanaryCodeInput& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
85
87
90 inline const Aws::String& GetS3Version() const { return m_s3Version; }
91 inline bool S3VersionHasBeenSet() const { return m_s3VersionHasBeenSet; }
92 template<typename S3VersionT = Aws::String>
93 void SetS3Version(S3VersionT&& value) { m_s3VersionHasBeenSet = true; m_s3Version = std::forward<S3VersionT>(value); }
94 template<typename S3VersionT = Aws::String>
95 CanaryCodeInput& WithS3Version(S3VersionT&& value) { SetS3Version(std::forward<S3VersionT>(value)); return *this;}
97
99
106 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
107 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
108 template<typename ZipFileT = Aws::Utils::ByteBuffer>
109 void SetZipFile(ZipFileT&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::forward<ZipFileT>(value); }
110 template<typename ZipFileT = Aws::Utils::ByteBuffer>
111 CanaryCodeInput& WithZipFile(ZipFileT&& value) { SetZipFile(std::forward<ZipFileT>(value)); return *this;}
113
115
126 inline const Aws::String& GetHandler() const { return m_handler; }
127 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
128 template<typename HandlerT = Aws::String>
129 void SetHandler(HandlerT&& value) { m_handlerHasBeenSet = true; m_handler = std::forward<HandlerT>(value); }
130 template<typename HandlerT = Aws::String>
131 CanaryCodeInput& WithHandler(HandlerT&& value) { SetHandler(std::forward<HandlerT>(value)); return *this;}
133
135
140 inline const Aws::Vector<Dependency>& GetDependencies() const { return m_dependencies; }
141 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
142 template<typename DependenciesT = Aws::Vector<Dependency>>
143 void SetDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies = std::forward<DependenciesT>(value); }
144 template<typename DependenciesT = Aws::Vector<Dependency>>
145 CanaryCodeInput& WithDependencies(DependenciesT&& value) { SetDependencies(std::forward<DependenciesT>(value)); return *this;}
146 template<typename DependenciesT = Dependency>
147 CanaryCodeInput& AddDependencies(DependenciesT&& value) { m_dependenciesHasBeenSet = true; m_dependencies.emplace_back(std::forward<DependenciesT>(value)); return *this; }
149 private:
150
151 Aws::String m_s3Bucket;
152 bool m_s3BucketHasBeenSet = false;
153
154 Aws::String m_s3Key;
155 bool m_s3KeyHasBeenSet = false;
156
157 Aws::String m_s3Version;
158 bool m_s3VersionHasBeenSet = false;
159
160 Aws::Utils::ByteBuffer m_zipFile{};
161 bool m_zipFileHasBeenSet = false;
162
163 Aws::String m_handler;
164 bool m_handlerHasBeenSet = false;
165
166 Aws::Vector<Dependency> m_dependencies;
167 bool m_dependenciesHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Synthetics
172} // namespace Aws
AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue)
void SetDependencies(DependenciesT &&value)
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
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