AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeContent.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
10#include <aws/kinesisanalyticsv2/model/S3ContentLocation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KinesisAnalyticsV2 {
22namespace Model {
23
32 public:
33 AWS_KINESISANALYTICSV2_API CodeContent() = default;
34 AWS_KINESISANALYTICSV2_API CodeContent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KINESISANALYTICSV2_API CodeContent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTextContent() const { return m_textContent; }
43 inline bool TextContentHasBeenSet() const { return m_textContentHasBeenSet; }
44 template <typename TextContentT = Aws::String>
45 void SetTextContent(TextContentT&& value) {
46 m_textContentHasBeenSet = true;
47 m_textContent = std::forward<TextContentT>(value);
48 }
49 template <typename TextContentT = Aws::String>
50 CodeContent& WithTextContent(TextContentT&& value) {
51 SetTextContent(std::forward<TextContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::ByteBuffer& GetZipFileContent() const { return m_zipFileContent; }
61 inline bool ZipFileContentHasBeenSet() const { return m_zipFileContentHasBeenSet; }
62 template <typename ZipFileContentT = Aws::Utils::ByteBuffer>
63 void SetZipFileContent(ZipFileContentT&& value) {
64 m_zipFileContentHasBeenSet = true;
65 m_zipFileContent = std::forward<ZipFileContentT>(value);
66 }
67 template <typename ZipFileContentT = Aws::Utils::ByteBuffer>
68 CodeContent& WithZipFileContent(ZipFileContentT&& value) {
69 SetZipFileContent(std::forward<ZipFileContentT>(value));
70 return *this;
71 }
73
75
79 inline const S3ContentLocation& GetS3ContentLocation() const { return m_s3ContentLocation; }
80 inline bool S3ContentLocationHasBeenSet() const { return m_s3ContentLocationHasBeenSet; }
81 template <typename S3ContentLocationT = S3ContentLocation>
82 void SetS3ContentLocation(S3ContentLocationT&& value) {
83 m_s3ContentLocationHasBeenSet = true;
84 m_s3ContentLocation = std::forward<S3ContentLocationT>(value);
85 }
86 template <typename S3ContentLocationT = S3ContentLocation>
87 CodeContent& WithS3ContentLocation(S3ContentLocationT&& value) {
88 SetS3ContentLocation(std::forward<S3ContentLocationT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_textContent;
94
95 Aws::Utils::ByteBuffer m_zipFileContent{};
96
97 S3ContentLocation m_s3ContentLocation;
98 bool m_textContentHasBeenSet = false;
99 bool m_zipFileContentHasBeenSet = false;
100 bool m_s3ContentLocationHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace KinesisAnalyticsV2
105} // namespace Aws
CodeContent & WithTextContent(TextContentT &&value)
Definition CodeContent.h:50
const Aws::Utils::ByteBuffer & GetZipFileContent() const
Definition CodeContent.h:60
const Aws::String & GetTextContent() const
Definition CodeContent.h:42
AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextContent(TextContentT &&value)
Definition CodeContent.h:45
const S3ContentLocation & GetS3ContentLocation() const
Definition CodeContent.h:79
void SetZipFileContent(ZipFileContentT &&value)
Definition CodeContent.h:63
CodeContent & WithZipFileContent(ZipFileContentT &&value)
Definition CodeContent.h:68
AWS_KINESISANALYTICSV2_API CodeContent()=default
AWS_KINESISANALYTICSV2_API CodeContent & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeContent & WithS3ContentLocation(S3ContentLocationT &&value)
Definition CodeContent.h:87
AWS_KINESISANALYTICSV2_API CodeContent(Aws::Utils::Json::JsonView jsonValue)
void SetS3ContentLocation(S3ContentLocationT &&value)
Definition CodeContent.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue