AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ParquetSerDe.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/model/ParquetCompression.h>
9#include <aws/firehose/model/ParquetWriterVersion.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Firehose {
21namespace Model {
22
32 public:
33 AWS_FIREHOSE_API ParquetSerDe() = default;
34 AWS_FIREHOSE_API ParquetSerDe(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline int GetBlockSizeBytes() const { return m_blockSizeBytes; }
46 inline bool BlockSizeBytesHasBeenSet() const { return m_blockSizeBytesHasBeenSet; }
47 inline void SetBlockSizeBytes(int value) {
48 m_blockSizeBytesHasBeenSet = true;
49 m_blockSizeBytes = value;
50 }
51 inline ParquetSerDe& WithBlockSizeBytes(int value) {
52 SetBlockSizeBytes(value);
53 return *this;
54 }
56
58
63 inline int GetPageSizeBytes() const { return m_pageSizeBytes; }
64 inline bool PageSizeBytesHasBeenSet() const { return m_pageSizeBytesHasBeenSet; }
65 inline void SetPageSizeBytes(int value) {
66 m_pageSizeBytesHasBeenSet = true;
67 m_pageSizeBytes = value;
68 }
69 inline ParquetSerDe& WithPageSizeBytes(int value) {
70 SetPageSizeBytes(value);
71 return *this;
72 }
74
76
83 inline ParquetCompression GetCompression() const { return m_compression; }
84 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
86 m_compressionHasBeenSet = true;
87 m_compression = value;
88 }
90 SetCompression(value);
91 return *this;
92 }
94
96
99 inline bool GetEnableDictionaryCompression() const { return m_enableDictionaryCompression; }
100 inline bool EnableDictionaryCompressionHasBeenSet() const { return m_enableDictionaryCompressionHasBeenSet; }
101 inline void SetEnableDictionaryCompression(bool value) {
102 m_enableDictionaryCompressionHasBeenSet = true;
103 m_enableDictionaryCompression = value;
104 }
107 return *this;
108 }
110
112
116 inline int GetMaxPaddingBytes() const { return m_maxPaddingBytes; }
117 inline bool MaxPaddingBytesHasBeenSet() const { return m_maxPaddingBytesHasBeenSet; }
118 inline void SetMaxPaddingBytes(int value) {
119 m_maxPaddingBytesHasBeenSet = true;
120 m_maxPaddingBytes = value;
121 }
123 SetMaxPaddingBytes(value);
124 return *this;
125 }
127
129
133 inline ParquetWriterVersion GetWriterVersion() const { return m_writerVersion; }
134 inline bool WriterVersionHasBeenSet() const { return m_writerVersionHasBeenSet; }
136 m_writerVersionHasBeenSet = true;
137 m_writerVersion = value;
138 }
140 SetWriterVersion(value);
141 return *this;
142 }
144 private:
145 int m_blockSizeBytes{0};
146
147 int m_pageSizeBytes{0};
148
150
151 bool m_enableDictionaryCompression{false};
152
153 int m_maxPaddingBytes{0};
154
156 bool m_blockSizeBytesHasBeenSet = false;
157 bool m_pageSizeBytesHasBeenSet = false;
158 bool m_compressionHasBeenSet = false;
159 bool m_enableDictionaryCompressionHasBeenSet = false;
160 bool m_maxPaddingBytesHasBeenSet = false;
161 bool m_writerVersionHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Firehose
166} // namespace Aws
ParquetWriterVersion GetWriterVersion() const
AWS_FIREHOSE_API ParquetSerDe()=default
void SetWriterVersion(ParquetWriterVersion value)
ParquetSerDe & WithEnableDictionaryCompression(bool value)
ParquetSerDe & WithMaxPaddingBytes(int value)
AWS_FIREHOSE_API ParquetSerDe(Aws::Utils::Json::JsonView jsonValue)
bool EnableDictionaryCompressionHasBeenSet() const
ParquetSerDe & WithCompression(ParquetCompression value)
void SetCompression(ParquetCompression value)
ParquetSerDe & WithPageSizeBytes(int value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API ParquetSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
ParquetCompression GetCompression() const
void SetEnableDictionaryCompression(bool value)
ParquetSerDe & WithWriterVersion(ParquetWriterVersion value)
ParquetSerDe & WithBlockSizeBytes(int value)
Aws::Utils::Json::JsonValue JsonValue