AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpsertRedshiftTargetOptions.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/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API UpsertRedshiftTargetOptions() = default;
35
37
40 inline const Aws::String& GetTableLocation() const { return m_tableLocation; }
41 inline bool TableLocationHasBeenSet() const { return m_tableLocationHasBeenSet; }
42 template <typename TableLocationT = Aws::String>
43 void SetTableLocation(TableLocationT&& value) {
44 m_tableLocationHasBeenSet = true;
45 m_tableLocation = std::forward<TableLocationT>(value);
46 }
47 template <typename TableLocationT = Aws::String>
49 SetTableLocation(std::forward<TableLocationT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
59 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
60 template <typename ConnectionNameT = Aws::String>
61 void SetConnectionName(ConnectionNameT&& value) {
62 m_connectionNameHasBeenSet = true;
63 m_connectionName = std::forward<ConnectionNameT>(value);
64 }
65 template <typename ConnectionNameT = Aws::String>
67 SetConnectionName(std::forward<ConnectionNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetUpsertKeys() const { return m_upsertKeys; }
77 inline bool UpsertKeysHasBeenSet() const { return m_upsertKeysHasBeenSet; }
78 template <typename UpsertKeysT = Aws::Vector<Aws::String>>
79 void SetUpsertKeys(UpsertKeysT&& value) {
80 m_upsertKeysHasBeenSet = true;
81 m_upsertKeys = std::forward<UpsertKeysT>(value);
82 }
83 template <typename UpsertKeysT = Aws::Vector<Aws::String>>
85 SetUpsertKeys(std::forward<UpsertKeysT>(value));
86 return *this;
87 }
88 template <typename UpsertKeysT = Aws::String>
90 m_upsertKeysHasBeenSet = true;
91 m_upsertKeys.emplace_back(std::forward<UpsertKeysT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_tableLocation;
97
98 Aws::String m_connectionName;
99
100 Aws::Vector<Aws::String> m_upsertKeys;
101 bool m_tableLocationHasBeenSet = false;
102 bool m_connectionNameHasBeenSet = false;
103 bool m_upsertKeysHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Glue
108} // namespace Aws
UpsertRedshiftTargetOptions & AddUpsertKeys(UpsertKeysT &&value)
UpsertRedshiftTargetOptions & WithConnectionName(ConnectionNameT &&value)
AWS_GLUE_API UpsertRedshiftTargetOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
UpsertRedshiftTargetOptions & WithUpsertKeys(UpsertKeysT &&value)
const Aws::Vector< Aws::String > & GetUpsertKeys() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API UpsertRedshiftTargetOptions()=default
AWS_GLUE_API UpsertRedshiftTargetOptions(Aws::Utils::Json::JsonView jsonValue)
UpsertRedshiftTargetOptions & WithTableLocation(TableLocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue