AWS SDK for C++  1.9.159
AWS SDK for C++
OpenXJsonSerDe.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Firehose
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
53  inline bool GetConvertDotsInJsonKeysToUnderscores() const{ return m_convertDotsInJsonKeysToUnderscores; }
54 
63  inline bool ConvertDotsInJsonKeysToUnderscoresHasBeenSet() const { return m_convertDotsInJsonKeysToUnderscoresHasBeenSet; }
64 
73  inline void SetConvertDotsInJsonKeysToUnderscores(bool value) { m_convertDotsInJsonKeysToUnderscoresHasBeenSet = true; m_convertDotsInJsonKeysToUnderscores = value; }
74 
83  inline OpenXJsonSerDe& WithConvertDotsInJsonKeysToUnderscores(bool value) { SetConvertDotsInJsonKeysToUnderscores(value); return *this;}
84 
85 
90  inline bool GetCaseInsensitive() const{ return m_caseInsensitive; }
91 
96  inline bool CaseInsensitiveHasBeenSet() const { return m_caseInsensitiveHasBeenSet; }
97 
102  inline void SetCaseInsensitive(bool value) { m_caseInsensitiveHasBeenSet = true; m_caseInsensitive = value; }
103 
108  inline OpenXJsonSerDe& WithCaseInsensitive(bool value) { SetCaseInsensitive(value); return *this;}
109 
110 
118  inline const Aws::Map<Aws::String, Aws::String>& GetColumnToJsonKeyMappings() const{ return m_columnToJsonKeyMappings; }
119 
127  inline bool ColumnToJsonKeyMappingsHasBeenSet() const { return m_columnToJsonKeyMappingsHasBeenSet; }
128 
136  inline void SetColumnToJsonKeyMappings(const Aws::Map<Aws::String, Aws::String>& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings = value; }
137 
145  inline void SetColumnToJsonKeyMappings(Aws::Map<Aws::String, Aws::String>&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings = std::move(value); }
146 
154  inline OpenXJsonSerDe& WithColumnToJsonKeyMappings(const Aws::Map<Aws::String, Aws::String>& value) { SetColumnToJsonKeyMappings(value); return *this;}
155 
163  inline OpenXJsonSerDe& WithColumnToJsonKeyMappings(Aws::Map<Aws::String, Aws::String>&& value) { SetColumnToJsonKeyMappings(std::move(value)); return *this;}
164 
172  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const Aws::String& key, const Aws::String& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, value); return *this; }
173 
181  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, const Aws::String& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), value); return *this; }
182 
190  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const Aws::String& key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, std::move(value)); return *this; }
191 
199  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), std::move(value)); return *this; }
200 
208  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const char* key, Aws::String&& value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, std::move(value)); return *this; }
209 
217  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(Aws::String&& key, const char* value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(std::move(key), value); return *this; }
218 
226  inline OpenXJsonSerDe& AddColumnToJsonKeyMappings(const char* key, const char* value) { m_columnToJsonKeyMappingsHasBeenSet = true; m_columnToJsonKeyMappings.emplace(key, value); return *this; }
227 
228  private:
229 
230  bool m_convertDotsInJsonKeysToUnderscores;
231  bool m_convertDotsInJsonKeysToUnderscoresHasBeenSet;
232 
233  bool m_caseInsensitive;
234  bool m_caseInsensitiveHasBeenSet;
235 
236  Aws::Map<Aws::String, Aws::String> m_columnToJsonKeyMappings;
237  bool m_columnToJsonKeyMappingsHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace Firehose
242 } // namespace Aws
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const char *key, const char *value)
Definition: OpenXJsonSerDe.h:226
Aws::Firehose::Model::OpenXJsonSerDe::SetConvertDotsInJsonKeysToUnderscores
void SetConvertDotsInJsonKeysToUnderscores(bool value)
Definition: OpenXJsonSerDe.h:73
Aws::Firehose::Model::OpenXJsonSerDe
Definition: OpenXJsonSerDe.h:37
Aws::Firehose::Model::OpenXJsonSerDe::operator=
OpenXJsonSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::OpenXJsonSerDe::ColumnToJsonKeyMappingsHasBeenSet
bool ColumnToJsonKeyMappingsHasBeenSet() const
Definition: OpenXJsonSerDe.h:127
Aws::Firehose::Model::OpenXJsonSerDe::GetColumnToJsonKeyMappings
const Aws::Map< Aws::String, Aws::String > & GetColumnToJsonKeyMappings() const
Definition: OpenXJsonSerDe.h:118
Aws::Firehose::Model::OpenXJsonSerDe::OpenXJsonSerDe
OpenXJsonSerDe(Aws::Utils::Json::JsonView jsonValue)
Aws::Firehose::Model::OpenXJsonSerDe::GetConvertDotsInJsonKeysToUnderscores
bool GetConvertDotsInJsonKeysToUnderscores() const
Definition: OpenXJsonSerDe.h:53
Aws::Firehose::Model::OpenXJsonSerDe::WithCaseInsensitive
OpenXJsonSerDe & WithCaseInsensitive(bool value)
Definition: OpenXJsonSerDe.h:108
Aws::Firehose::Model::OpenXJsonSerDe::WithConvertDotsInJsonKeysToUnderscores
OpenXJsonSerDe & WithConvertDotsInJsonKeysToUnderscores(bool value)
Definition: OpenXJsonSerDe.h:83
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const Aws::String &key, const Aws::String &value)
Definition: OpenXJsonSerDe.h:172
Aws::Firehose::Model::OpenXJsonSerDe::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Firehose::Model::OpenXJsonSerDe::SetCaseInsensitive
void SetCaseInsensitive(bool value)
Definition: OpenXJsonSerDe.h:102
Aws::Firehose::Model::OpenXJsonSerDe::WithColumnToJsonKeyMappings
OpenXJsonSerDe & WithColumnToJsonKeyMappings(const Aws::Map< Aws::String, Aws::String > &value)
Definition: OpenXJsonSerDe.h:154
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, Aws::String &&value)
Definition: OpenXJsonSerDe.h:199
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, const char *value)
Definition: OpenXJsonSerDe.h:217
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(Aws::String &&key, const Aws::String &value)
Definition: OpenXJsonSerDe.h:181
Aws::Firehose::Model::OpenXJsonSerDe::GetCaseInsensitive
bool GetCaseInsensitive() const
Definition: OpenXJsonSerDe.h:90
Firehose_EXPORTS.h
Aws::Firehose::Model::OpenXJsonSerDe::WithColumnToJsonKeyMappings
OpenXJsonSerDe & WithColumnToJsonKeyMappings(Aws::Map< Aws::String, Aws::String > &&value)
Definition: OpenXJsonSerDe.h:163
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const Aws::String &key, Aws::String &&value)
Definition: OpenXJsonSerDe.h:190
Aws::Firehose::Model::OpenXJsonSerDe::SetColumnToJsonKeyMappings
void SetColumnToJsonKeyMappings(Aws::Map< Aws::String, Aws::String > &&value)
Definition: OpenXJsonSerDe.h:145
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::OpenXJsonSerDe::SetColumnToJsonKeyMappings
void SetColumnToJsonKeyMappings(const Aws::Map< Aws::String, Aws::String > &value)
Definition: OpenXJsonSerDe.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Firehose::Model::OpenXJsonSerDe::OpenXJsonSerDe
OpenXJsonSerDe()
Aws::Firehose::Model::OpenXJsonSerDe::CaseInsensitiveHasBeenSet
bool CaseInsensitiveHasBeenSet() const
Definition: OpenXJsonSerDe.h:96
Aws::Firehose::Model::OpenXJsonSerDe::ConvertDotsInJsonKeysToUnderscoresHasBeenSet
bool ConvertDotsInJsonKeysToUnderscoresHasBeenSet() const
Definition: OpenXJsonSerDe.h:63
Aws::Firehose::Model::OpenXJsonSerDe::AddColumnToJsonKeyMappings
OpenXJsonSerDe & AddColumnToJsonKeyMappings(const char *key, Aws::String &&value)
Definition: OpenXJsonSerDe.h:208
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19