AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenXJsonSerDe.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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
37 {
38 public:
39 AWS_FIREHOSE_API OpenXJsonSerDe();
40 AWS_FIREHOSE_API OpenXJsonSerDe(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline bool GetConvertDotsInJsonKeysToUnderscores() const{ return m_convertDotsInJsonKeysToUnderscores; }
54 inline bool ConvertDotsInJsonKeysToUnderscoresHasBeenSet() const { return m_convertDotsInJsonKeysToUnderscoresHasBeenSet; }
55 inline void SetConvertDotsInJsonKeysToUnderscores(bool value) { m_convertDotsInJsonKeysToUnderscoresHasBeenSet = true; m_convertDotsInJsonKeysToUnderscores = value; }
58
60
64 inline bool GetCaseInsensitive() const{ return m_caseInsensitive; }
65 inline bool CaseInsensitiveHasBeenSet() const { return m_caseInsensitiveHasBeenSet; }
66 inline void SetCaseInsensitive(bool value) { m_caseInsensitiveHasBeenSet = true; m_caseInsensitive = value; }
67 inline OpenXJsonSerDe& WithCaseInsensitive(bool value) { SetCaseInsensitive(value); return *this;}
69
71
78 inline const Aws::Map<Aws::String, Aws::String>& GetColumnToJsonKeyMappings() const{ return m_columnToJsonKeyMappings; }
79 inline bool ColumnToJsonKeyMappingsHasBeenSet() const { return m_columnToJsonKeyMappingsHasBeenSet; }
80 inline void SetColumnToJsonKeyMappings(const Aws::Map<Aws::String, Aws::String>& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings = value; }
81 inline void SetColumnToJsonKeyMappings(Aws::Map<Aws::String, Aws::String>&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings = std::move(value); }
84 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const Aws::String& key, const Aws::String& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, value); return *this; }
85 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, const Aws::String& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), value); return *this; }
86 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const Aws::String& key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, std::move(value)); return *this; }
87 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), std::move(value)); return *this; }
88 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const char* key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, std::move(value)); return *this; }
89 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, const char* value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), value); return *this; }
90 inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const char* key, const char* value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, value); return *this; }
92 private:
93
94 bool m_convertDotsInJsonKeysToUnderscores;
95 bool m_convertDotsInJsonKeysToUnderscoresHasBeenSet = false;
96
97 bool m_caseInsensitive;
98 bool m_caseInsensitiveHasBeenSet = false;
99
100 Aws::Map<Aws::String, Aws::String> m_columnToJsonKeyMappings;
101 bool m_columnToJsonKeyMappingsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Firehose
106} // namespace Aws
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, Aws::String &&value)
OpenXJsonSerDe & WithConvertDotsInJsonKeysToUnderscores(bool value)
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const Aws::String &key, const Aws::String &value)
void SetConvertDotsInJsonKeysToUnderscores(bool value)
OpenXJsonSerDe & WithColumnToJsonKeyMappings(Aws::Map< Aws::String, Aws::String > &&value)
AWS_FIREHOSE_API OpenXJsonSerDe(Aws::Utils::Json::JsonView jsonValue)
void SetColumnToJsonKeyMappings(const Aws::Map< Aws::String, Aws::String > &value)
OpenXJsonSerDe & WithColumnToJsonKeyMappings(const Aws::Map< Aws::String, Aws::String > &value)
OpenXJsonSerDe & WithCaseInsensitive(bool value)
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const char *key, const char *value)
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const char *key, Aws::String &&value)
AWS_FIREHOSE_API OpenXJsonSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConvertDotsInJsonKeysToUnderscoresHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetColumnToJsonKeyMappings() const
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, const Aws::String &value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, const char *value)
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const Aws::String &key, Aws::String &&value)
void SetColumnToJsonKeyMappings(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue