AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceSchema.h
1
6#pragma once
7#include <aws/kinesisanalytics/KinesisAnalytics_EXPORTS.h>
8#include <aws/kinesisanalytics/model/RecordFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kinesisanalytics/model/RecordColumn.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 KinesisAnalytics
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_KINESISANALYTICS_API SourceSchema();
40 AWS_KINESISANALYTICS_API SourceSchema(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KINESISANALYTICS_API SourceSchema& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_KINESISANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const RecordFormat& GetRecordFormat() const{ return m_recordFormat; }
50 inline bool RecordFormatHasBeenSet() const { return m_recordFormatHasBeenSet; }
51 inline void SetRecordFormat(const RecordFormat& value) { m_recordFormatHasBeenSet = true; m_recordFormat = value; }
52 inline void SetRecordFormat(RecordFormat&& value) { m_recordFormatHasBeenSet = true; m_recordFormat = std::move(value); }
53 inline SourceSchema& WithRecordFormat(const RecordFormat& value) { SetRecordFormat(value); return *this;}
54 inline SourceSchema& WithRecordFormat(RecordFormat&& value) { SetRecordFormat(std::move(value)); return *this;}
56
58
62 inline const Aws::String& GetRecordEncoding() const{ return m_recordEncoding; }
63 inline bool RecordEncodingHasBeenSet() const { return m_recordEncodingHasBeenSet; }
64 inline void SetRecordEncoding(const Aws::String& value) { m_recordEncodingHasBeenSet = true; m_recordEncoding = value; }
65 inline void SetRecordEncoding(Aws::String&& value) { m_recordEncodingHasBeenSet = true; m_recordEncoding = std::move(value); }
66 inline void SetRecordEncoding(const char* value) { m_recordEncodingHasBeenSet = true; m_recordEncoding.assign(value); }
67 inline SourceSchema& WithRecordEncoding(const Aws::String& value) { SetRecordEncoding(value); return *this;}
68 inline SourceSchema& WithRecordEncoding(Aws::String&& value) { SetRecordEncoding(std::move(value)); return *this;}
69 inline SourceSchema& WithRecordEncoding(const char* value) { SetRecordEncoding(value); return *this;}
71
73
76 inline const Aws::Vector<RecordColumn>& GetRecordColumns() const{ return m_recordColumns; }
77 inline bool RecordColumnsHasBeenSet() const { return m_recordColumnsHasBeenSet; }
78 inline void SetRecordColumns(const Aws::Vector<RecordColumn>& value) { m_recordColumnsHasBeenSet = true; m_recordColumns = value; }
79 inline void SetRecordColumns(Aws::Vector<RecordColumn>&& value) { m_recordColumnsHasBeenSet = true; m_recordColumns = std::move(value); }
80 inline SourceSchema& WithRecordColumns(const Aws::Vector<RecordColumn>& value) { SetRecordColumns(value); return *this;}
81 inline SourceSchema& WithRecordColumns(Aws::Vector<RecordColumn>&& value) { SetRecordColumns(std::move(value)); return *this;}
82 inline SourceSchema& AddRecordColumns(const RecordColumn& value) { m_recordColumnsHasBeenSet = true; m_recordColumns.push_back(value); return *this; }
83 inline SourceSchema& AddRecordColumns(RecordColumn&& value) { m_recordColumnsHasBeenSet = true; m_recordColumns.push_back(std::move(value)); return *this; }
85 private:
86
87 RecordFormat m_recordFormat;
88 bool m_recordFormatHasBeenSet = false;
89
90 Aws::String m_recordEncoding;
91 bool m_recordEncodingHasBeenSet = false;
92
93 Aws::Vector<RecordColumn> m_recordColumns;
94 bool m_recordColumnsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace KinesisAnalytics
99} // namespace Aws
SourceSchema & WithRecordEncoding(Aws::String &&value)
void SetRecordColumns(Aws::Vector< RecordColumn > &&value)
void SetRecordFormat(RecordFormat &&value)
const Aws::String & GetRecordEncoding() const
void SetRecordEncoding(const char *value)
AWS_KINESISANALYTICS_API SourceSchema()
SourceSchema & WithRecordColumns(Aws::Vector< RecordColumn > &&value)
void SetRecordFormat(const RecordFormat &value)
void SetRecordEncoding(const Aws::String &value)
SourceSchema & WithRecordFormat(RecordFormat &&value)
void SetRecordEncoding(Aws::String &&value)
const RecordFormat & GetRecordFormat() const
AWS_KINESISANALYTICS_API SourceSchema(Aws::Utils::Json::JsonView jsonValue)
SourceSchema & AddRecordColumns(RecordColumn &&value)
const Aws::Vector< RecordColumn > & GetRecordColumns() const
void SetRecordColumns(const Aws::Vector< RecordColumn > &value)
SourceSchema & WithRecordEncoding(const char *value)
SourceSchema & WithRecordEncoding(const Aws::String &value)
AWS_KINESISANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceSchema & WithRecordColumns(const Aws::Vector< RecordColumn > &value)
AWS_KINESISANALYTICS_API SourceSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceSchema & WithRecordFormat(const RecordFormat &value)
SourceSchema & AddRecordColumns(const RecordColumn &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