AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DestinationTableConfiguration.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#include <aws/firehose/model/PartitionSpec.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Firehose {
22namespace Model {
23
31 public:
32 AWS_FIREHOSE_API DestinationTableConfiguration() = default;
35 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDestinationTableName() const { return m_destinationTableName; }
42 inline bool DestinationTableNameHasBeenSet() const { return m_destinationTableNameHasBeenSet; }
43 template <typename DestinationTableNameT = Aws::String>
44 void SetDestinationTableName(DestinationTableNameT&& value) {
45 m_destinationTableNameHasBeenSet = true;
46 m_destinationTableName = std::forward<DestinationTableNameT>(value);
47 }
48 template <typename DestinationTableNameT = Aws::String>
50 SetDestinationTableName(std::forward<DestinationTableNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDestinationDatabaseName() const { return m_destinationDatabaseName; }
60 inline bool DestinationDatabaseNameHasBeenSet() const { return m_destinationDatabaseNameHasBeenSet; }
61 template <typename DestinationDatabaseNameT = Aws::String>
62 void SetDestinationDatabaseName(DestinationDatabaseNameT&& value) {
63 m_destinationDatabaseNameHasBeenSet = true;
64 m_destinationDatabaseName = std::forward<DestinationDatabaseNameT>(value);
65 }
66 template <typename DestinationDatabaseNameT = Aws::String>
68 SetDestinationDatabaseName(std::forward<DestinationDatabaseNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetUniqueKeys() const { return m_uniqueKeys; }
80 inline bool UniqueKeysHasBeenSet() const { return m_uniqueKeysHasBeenSet; }
81 template <typename UniqueKeysT = Aws::Vector<Aws::String>>
82 void SetUniqueKeys(UniqueKeysT&& value) {
83 m_uniqueKeysHasBeenSet = true;
84 m_uniqueKeys = std::forward<UniqueKeysT>(value);
85 }
86 template <typename UniqueKeysT = Aws::Vector<Aws::String>>
88 SetUniqueKeys(std::forward<UniqueKeysT>(value));
89 return *this;
90 }
91 template <typename UniqueKeysT = Aws::String>
93 m_uniqueKeysHasBeenSet = true;
94 m_uniqueKeys.emplace_back(std::forward<UniqueKeysT>(value));
95 return *this;
96 }
98
100
105 inline const PartitionSpec& GetPartitionSpec() const { return m_partitionSpec; }
106 inline bool PartitionSpecHasBeenSet() const { return m_partitionSpecHasBeenSet; }
107 template <typename PartitionSpecT = PartitionSpec>
108 void SetPartitionSpec(PartitionSpecT&& value) {
109 m_partitionSpecHasBeenSet = true;
110 m_partitionSpec = std::forward<PartitionSpecT>(value);
111 }
112 template <typename PartitionSpecT = PartitionSpec>
114 SetPartitionSpec(std::forward<PartitionSpecT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetS3ErrorOutputPrefix() const { return m_s3ErrorOutputPrefix; }
126 inline bool S3ErrorOutputPrefixHasBeenSet() const { return m_s3ErrorOutputPrefixHasBeenSet; }
127 template <typename S3ErrorOutputPrefixT = Aws::String>
128 void SetS3ErrorOutputPrefix(S3ErrorOutputPrefixT&& value) {
129 m_s3ErrorOutputPrefixHasBeenSet = true;
130 m_s3ErrorOutputPrefix = std::forward<S3ErrorOutputPrefixT>(value);
131 }
132 template <typename S3ErrorOutputPrefixT = Aws::String>
134 SetS3ErrorOutputPrefix(std::forward<S3ErrorOutputPrefixT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_destinationTableName;
140
141 Aws::String m_destinationDatabaseName;
142
143 Aws::Vector<Aws::String> m_uniqueKeys;
144
145 PartitionSpec m_partitionSpec;
146
147 Aws::String m_s3ErrorOutputPrefix;
148 bool m_destinationTableNameHasBeenSet = false;
149 bool m_destinationDatabaseNameHasBeenSet = false;
150 bool m_uniqueKeysHasBeenSet = false;
151 bool m_partitionSpecHasBeenSet = false;
152 bool m_s3ErrorOutputPrefixHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Firehose
157} // namespace Aws
const Aws::Vector< Aws::String > & GetUniqueKeys() const
AWS_FIREHOSE_API DestinationTableConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FIREHOSE_API DestinationTableConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DestinationTableConfiguration & WithUniqueKeys(UniqueKeysT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
DestinationTableConfiguration & WithDestinationTableName(DestinationTableNameT &&value)
DestinationTableConfiguration & WithDestinationDatabaseName(DestinationDatabaseNameT &&value)
DestinationTableConfiguration & AddUniqueKeys(UniqueKeysT &&value)
DestinationTableConfiguration & WithS3ErrorOutputPrefix(S3ErrorOutputPrefixT &&value)
void SetDestinationDatabaseName(DestinationDatabaseNameT &&value)
DestinationTableConfiguration & WithPartitionSpec(PartitionSpecT &&value)
AWS_FIREHOSE_API DestinationTableConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue