/** * 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 Firehose { namespace Model { /** *

The native Hive / HCatalog JsonSerDe. Used by Kinesis Data Firehose for * deserializing data, which means converting it from the JSON format in * preparation for serializing it to the Parquet or ORC format. This is one of two * deserializers you can choose, depending on which one offers the functionality * you need. The other option is the OpenX SerDe.

See Also:

AWS * API Reference

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

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline const Aws::Vector& GetTimestampFormats() const{ return m_timestampFormats; } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline bool TimestampFormatsHasBeenSet() const { return m_timestampFormatsHasBeenSet; } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline void SetTimestampFormats(const Aws::Vector& value) { m_timestampFormatsHasBeenSet = true; m_timestampFormats = value; } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline void SetTimestampFormats(Aws::Vector&& value) { m_timestampFormatsHasBeenSet = true; m_timestampFormats = std::move(value); } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline HiveJsonSerDe& WithTimestampFormats(const Aws::Vector& value) { SetTimestampFormats(value); return *this;} /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline HiveJsonSerDe& WithTimestampFormats(Aws::Vector&& value) { SetTimestampFormats(std::move(value)); return *this;} /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline HiveJsonSerDe& AddTimestampFormats(const Aws::String& value) { m_timestampFormatsHasBeenSet = true; m_timestampFormats.push_back(value); return *this; } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline HiveJsonSerDe& AddTimestampFormats(Aws::String&& value) { m_timestampFormatsHasBeenSet = true; m_timestampFormats.push_back(std::move(value)); return *this; } /** *

Indicates how you want Kinesis Data Firehose to parse the date and timestamps * that may be present in your input data JSON. To specify these format strings, * follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more * information, see Class * DateTimeFormat. You can also use the special value millis to * parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis * Data Firehose uses java.sql.Timestamp::valueOf by default.

*/ inline HiveJsonSerDe& AddTimestampFormats(const char* value) { m_timestampFormatsHasBeenSet = true; m_timestampFormats.push_back(value); return *this; } private: Aws::Vector m_timestampFormats; bool m_timestampFormatsHasBeenSet = false; }; } // namespace Model } // namespace Firehose } // namespace Aws