AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Synthetics
23{
24namespace Model
25{
26
49 {
50 public:
51 AWS_SYNTHETICS_API CanaryCodeInput();
52 AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue);
54 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
62 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
63 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
64 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
65 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
66 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
67 inline CanaryCodeInput& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
68 inline CanaryCodeInput& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
69 inline CanaryCodeInput& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
71
73
78 inline const Aws::String& GetS3Key() const{ return m_s3Key; }
79 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
80 inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
81 inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
82 inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
83 inline CanaryCodeInput& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
84 inline CanaryCodeInput& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
85 inline CanaryCodeInput& WithS3Key(const char* value) { SetS3Key(value); return *this;}
87
89
92 inline const Aws::String& GetS3Version() const{ return m_s3Version; }
93 inline bool S3VersionHasBeenSet() const { return m_s3VersionHasBeenSet; }
94 inline void SetS3Version(const Aws::String& value) { m_s3VersionHasBeenSet = true; m_s3Version = value; }
95 inline void SetS3Version(Aws::String&& value) { m_s3VersionHasBeenSet = true; m_s3Version = std::move(value); }
96 inline void SetS3Version(const char* value) { m_s3VersionHasBeenSet = true; m_s3Version.assign(value); }
97 inline CanaryCodeInput& WithS3Version(const Aws::String& value) { SetS3Version(value); return *this;}
98 inline CanaryCodeInput& WithS3Version(Aws::String&& value) { SetS3Version(std::move(value)); return *this;}
99 inline CanaryCodeInput& WithS3Version(const char* value) { SetS3Version(value); return *this;}
101
103
110 inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
111 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
112 inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
113 inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
114 inline CanaryCodeInput& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
115 inline CanaryCodeInput& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
117
119
130 inline const Aws::String& GetHandler() const{ return m_handler; }
131 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
132 inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
133 inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = std::move(value); }
134 inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
135 inline CanaryCodeInput& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
136 inline CanaryCodeInput& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
137 inline CanaryCodeInput& WithHandler(const char* value) { SetHandler(value); return *this;}
139 private:
140
141 Aws::String m_s3Bucket;
142 bool m_s3BucketHasBeenSet = false;
143
144 Aws::String m_s3Key;
145 bool m_s3KeyHasBeenSet = false;
146
147 Aws::String m_s3Version;
148 bool m_s3VersionHasBeenSet = false;
149
150 Aws::Utils::ByteBuffer m_zipFile;
151 bool m_zipFileHasBeenSet = false;
152
153 Aws::String m_handler;
154 bool m_handlerHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Synthetics
159} // namespace Aws
AWS_SYNTHETICS_API CanaryCodeInput(Aws::Utils::Json::JsonView jsonValue)
CanaryCodeInput & WithHandler(const char *value)
void SetZipFile(const Aws::Utils::ByteBuffer &value)
CanaryCodeInput & WithS3Version(const char *value)
void SetS3Bucket(const Aws::String &value)
CanaryCodeInput & WithS3Key(Aws::String &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryCodeInput & WithS3Key(const Aws::String &value)
CanaryCodeInput & WithZipFile(Aws::Utils::ByteBuffer &&value)
const Aws::String & GetS3Version() const
const Aws::String & GetS3Key() const
CanaryCodeInput & WithZipFile(const Aws::Utils::ByteBuffer &value)
AWS_SYNTHETICS_API CanaryCodeInput & operator=(Aws::Utils::Json::JsonView jsonValue)
CanaryCodeInput & WithS3Version(Aws::String &&value)
CanaryCodeInput & WithS3Bucket(const char *value)
const Aws::String & GetHandler() const
CanaryCodeInput & WithHandler(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetZipFile() const
void SetZipFile(Aws::Utils::ByteBuffer &&value)
void SetS3Bucket(Aws::String &&value)
void SetS3Version(Aws::String &&value)
void SetHandler(const Aws::String &value)
CanaryCodeInput & WithS3Bucket(Aws::String &&value)
void SetS3Key(const Aws::String &value)
CanaryCodeInput & WithHandler(const Aws::String &value)
CanaryCodeInput & WithS3Bucket(const Aws::String &value)
const Aws::String & GetS3Bucket() const
CanaryCodeInput & WithS3Key(const char *value)
void SetS3Version(const Aws::String &value)
CanaryCodeInput & WithS3Version(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue