AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
HiveJsonSerDe.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/firehose/Firehose_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Firehose {
21namespace Model {
22
33 public:
34 AWS_FIREHOSE_API HiveJsonSerDe() = default;
35 AWS_FIREHOSE_API HiveJsonSerDe(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
50 inline const Aws::Vector<Aws::String>& GetTimestampFormats() const { return m_timestampFormats; }
51 inline bool TimestampFormatsHasBeenSet() const { return m_timestampFormatsHasBeenSet; }
52 template <typename TimestampFormatsT = Aws::Vector<Aws::String>>
53 void SetTimestampFormats(TimestampFormatsT&& value) {
54 m_timestampFormatsHasBeenSet = true;
55 m_timestampFormats = std::forward<TimestampFormatsT>(value);
56 }
57 template <typename TimestampFormatsT = Aws::Vector<Aws::String>>
58 HiveJsonSerDe& WithTimestampFormats(TimestampFormatsT&& value) {
59 SetTimestampFormats(std::forward<TimestampFormatsT>(value));
60 return *this;
61 }
62 template <typename TimestampFormatsT = Aws::String>
63 HiveJsonSerDe& AddTimestampFormats(TimestampFormatsT&& value) {
64 m_timestampFormatsHasBeenSet = true;
65 m_timestampFormats.emplace_back(std::forward<TimestampFormatsT>(value));
66 return *this;
67 }
69 private:
70 Aws::Vector<Aws::String> m_timestampFormats;
71 bool m_timestampFormatsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Firehose
76} // namespace Aws
AWS_FIREHOSE_API HiveJsonSerDe()=default
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
HiveJsonSerDe & WithTimestampFormats(TimestampFormatsT &&value)
AWS_FIREHOSE_API HiveJsonSerDe(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API HiveJsonSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTimestampFormats() const
HiveJsonSerDe & AddTimestampFormats(TimestampFormatsT &&value)
void SetTimestampFormats(TimestampFormatsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue