/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Information about a serialization/deserialization program (SerDe) that serves * as an extractor and loader.

See Also:

AWS API * Reference

*/ class SerDeInfo { public: AWS_GLUE_API SerDeInfo(); AWS_GLUE_API SerDeInfo(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API SerDeInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Name of the SerDe.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the SerDe.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the SerDe.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the SerDe.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the SerDe.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the SerDe.

*/ inline SerDeInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the SerDe.

*/ inline SerDeInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the SerDe.

*/ inline SerDeInfo& WithName(const char* value) { SetName(value); return *this;} /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline const Aws::String& GetSerializationLibrary() const{ return m_serializationLibrary; } /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline bool SerializationLibraryHasBeenSet() const { return m_serializationLibraryHasBeenSet; } /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline void SetSerializationLibrary(const Aws::String& value) { m_serializationLibraryHasBeenSet = true; m_serializationLibrary = value; } /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline void SetSerializationLibrary(Aws::String&& value) { m_serializationLibraryHasBeenSet = true; m_serializationLibrary = std::move(value); } /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline void SetSerializationLibrary(const char* value) { m_serializationLibraryHasBeenSet = true; m_serializationLibrary.assign(value); } /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline SerDeInfo& WithSerializationLibrary(const Aws::String& value) { SetSerializationLibrary(value); return *this;} /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline SerDeInfo& WithSerializationLibrary(Aws::String&& value) { SetSerializationLibrary(std::move(value)); return *this;} /** *

Usually the class that implements the SerDe. An example is * org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

*/ inline SerDeInfo& WithSerializationLibrary(const char* value) { SetSerializationLibrary(value); return *this;} /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define initialization parameters for the SerDe.

*/ inline SerDeInfo& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_serializationLibrary; bool m_serializationLibraryHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws