AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 Firehose
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_FIREHOSE_API ParquetSerDe() = default;
39 AWS_FIREHOSE_API ParquetSerDe(Aws::Utils::Json::JsonView jsonValue);
41 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline int GetBlockSizeBytes() const { return m_blockSizeBytes; }
52 inline bool BlockSizeBytesHasBeenSet() const { return m_blockSizeBytesHasBeenSet; }
53 inline void SetBlockSizeBytes(int value) { m_blockSizeBytesHasBeenSet = true; m_blockSizeBytes = value; }
54 inline ParquetSerDe& WithBlockSizeBytes(int value) { SetBlockSizeBytes(value); return *this;}
56
58
63 inline int GetPageSizeBytes() const { return m_pageSizeBytes; }
64 inline bool PageSizeBytesHasBeenSet() const { return m_pageSizeBytesHasBeenSet; }
65 inline void SetPageSizeBytes(int value) { m_pageSizeBytesHasBeenSet = true; m_pageSizeBytes = value; }
66 inline ParquetSerDe& WithPageSizeBytes(int value) { SetPageSizeBytes(value); return *this;}
68
70
77 inline ParquetCompression GetCompression() const { return m_compression; }
78 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
79 inline void SetCompression(ParquetCompression value) { m_compressionHasBeenSet = true; m_compression = value; }
80 inline ParquetSerDe& WithCompression(ParquetCompression value) { SetCompression(value); return *this;}
82
84
87 inline bool GetEnableDictionaryCompression() const { return m_enableDictionaryCompression; }
88 inline bool EnableDictionaryCompressionHasBeenSet() const { return m_enableDictionaryCompressionHasBeenSet; }
89 inline void SetEnableDictionaryCompression(bool value) { m_enableDictionaryCompressionHasBeenSet = true; m_enableDictionaryCompression = value; }
92
94
98 inline int GetMaxPaddingBytes() const { return m_maxPaddingBytes; }
99 inline bool MaxPaddingBytesHasBeenSet() const { return m_maxPaddingBytesHasBeenSet; }
100 inline void SetMaxPaddingBytes(int value) { m_maxPaddingBytesHasBeenSet = true; m_maxPaddingBytes = value; }
101 inline ParquetSerDe& WithMaxPaddingBytes(int value) { SetMaxPaddingBytes(value); return *this;}
103
105
109 inline ParquetWriterVersion GetWriterVersion() const { return m_writerVersion; }
110 inline bool WriterVersionHasBeenSet() const { return m_writerVersionHasBeenSet; }
111 inline void SetWriterVersion(ParquetWriterVersion value) { m_writerVersionHasBeenSet = true; m_writerVersion = value; }
114 private:
115
116 int m_blockSizeBytes{0};
117 bool m_blockSizeBytesHasBeenSet = false;
118
119 int m_pageSizeBytes{0};
120 bool m_pageSizeBytesHasBeenSet = false;
121
123 bool m_compressionHasBeenSet = false;
124
125 bool m_enableDictionaryCompression{false};
126 bool m_enableDictionaryCompressionHasBeenSet = false;
127
128 int m_maxPaddingBytes{0};
129 bool m_maxPaddingBytesHasBeenSet = false;
130
132 bool m_writerVersionHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Firehose
137} // 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