AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpsertRedshiftTargetOptions.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLUE_API UpsertRedshiftTargetOptions() = default;
40
41
43
46 inline const Aws::String& GetTableLocation() const { return m_tableLocation; }
47 inline bool TableLocationHasBeenSet() const { return m_tableLocationHasBeenSet; }
48 template<typename TableLocationT = Aws::String>
49 void SetTableLocation(TableLocationT&& value) { m_tableLocationHasBeenSet = true; m_tableLocation = std::forward<TableLocationT>(value); }
50 template<typename TableLocationT = Aws::String>
51 UpsertRedshiftTargetOptions& WithTableLocation(TableLocationT&& value) { SetTableLocation(std::forward<TableLocationT>(value)); return *this;}
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) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
62 template<typename ConnectionNameT = Aws::String>
63 UpsertRedshiftTargetOptions& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetUpsertKeys() const { return m_upsertKeys; }
71 inline bool UpsertKeysHasBeenSet() const { return m_upsertKeysHasBeenSet; }
72 template<typename UpsertKeysT = Aws::Vector<Aws::String>>
73 void SetUpsertKeys(UpsertKeysT&& value) { m_upsertKeysHasBeenSet = true; m_upsertKeys = std::forward<UpsertKeysT>(value); }
74 template<typename UpsertKeysT = Aws::Vector<Aws::String>>
75 UpsertRedshiftTargetOptions& WithUpsertKeys(UpsertKeysT&& value) { SetUpsertKeys(std::forward<UpsertKeysT>(value)); return *this;}
76 template<typename UpsertKeysT = Aws::String>
77 UpsertRedshiftTargetOptions& AddUpsertKeys(UpsertKeysT&& value) { m_upsertKeysHasBeenSet = true; m_upsertKeys.emplace_back(std::forward<UpsertKeysT>(value)); return *this; }
79 private:
80
81 Aws::String m_tableLocation;
82 bool m_tableLocationHasBeenSet = false;
83
84 Aws::String m_connectionName;
85 bool m_connectionNameHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_upsertKeys;
88 bool m_upsertKeysHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Glue
93} // 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