AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CustomConnectorDestinationProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ErrorHandlingConfig.h>
9#include <aws/appflow/model/WriteOperationType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow {
24namespace Model {
25
33 public:
34 AWS_APPFLOW_API CustomConnectorDestinationProperties() = default;
37 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetEntityName() const { return m_entityName; }
45 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
46 template <typename EntityNameT = Aws::String>
47 void SetEntityName(EntityNameT&& value) {
48 m_entityNameHasBeenSet = true;
49 m_entityName = std::forward<EntityNameT>(value);
50 }
51 template <typename EntityNameT = Aws::String>
53 SetEntityName(std::forward<EntityNameT>(value));
54 return *this;
55 }
57
59
63 inline const ErrorHandlingConfig& GetErrorHandlingConfig() const { return m_errorHandlingConfig; }
64 inline bool ErrorHandlingConfigHasBeenSet() const { return m_errorHandlingConfigHasBeenSet; }
65 template <typename ErrorHandlingConfigT = ErrorHandlingConfig>
66 void SetErrorHandlingConfig(ErrorHandlingConfigT&& value) {
67 m_errorHandlingConfigHasBeenSet = true;
68 m_errorHandlingConfig = std::forward<ErrorHandlingConfigT>(value);
69 }
70 template <typename ErrorHandlingConfigT = ErrorHandlingConfig>
72 SetErrorHandlingConfig(std::forward<ErrorHandlingConfigT>(value));
73 return *this;
74 }
76
78
82 inline WriteOperationType GetWriteOperationType() const { return m_writeOperationType; }
83 inline bool WriteOperationTypeHasBeenSet() const { return m_writeOperationTypeHasBeenSet; }
85 m_writeOperationTypeHasBeenSet = true;
86 m_writeOperationType = value;
87 }
90 return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetIdFieldNames() const { return m_idFieldNames; }
100 inline bool IdFieldNamesHasBeenSet() const { return m_idFieldNamesHasBeenSet; }
101 template <typename IdFieldNamesT = Aws::Vector<Aws::String>>
102 void SetIdFieldNames(IdFieldNamesT&& value) {
103 m_idFieldNamesHasBeenSet = true;
104 m_idFieldNames = std::forward<IdFieldNamesT>(value);
105 }
106 template <typename IdFieldNamesT = Aws::Vector<Aws::String>>
108 SetIdFieldNames(std::forward<IdFieldNamesT>(value));
109 return *this;
110 }
111 template <typename IdFieldNamesT = Aws::String>
113 m_idFieldNamesHasBeenSet = true;
114 m_idFieldNames.emplace_back(std::forward<IdFieldNamesT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProperties() const { return m_customProperties; }
125 inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; }
126 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
127 void SetCustomProperties(CustomPropertiesT&& value) {
128 m_customPropertiesHasBeenSet = true;
129 m_customProperties = std::forward<CustomPropertiesT>(value);
130 }
131 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
133 SetCustomProperties(std::forward<CustomPropertiesT>(value));
134 return *this;
135 }
136 template <typename CustomPropertiesKeyT = Aws::String, typename CustomPropertiesValueT = Aws::String>
137 CustomConnectorDestinationProperties& AddCustomProperties(CustomPropertiesKeyT&& key, CustomPropertiesValueT&& value) {
138 m_customPropertiesHasBeenSet = true;
139 m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_entityName;
145
146 ErrorHandlingConfig m_errorHandlingConfig;
147
149
150 Aws::Vector<Aws::String> m_idFieldNames;
151
152 Aws::Map<Aws::String, Aws::String> m_customProperties;
153 bool m_entityNameHasBeenSet = false;
154 bool m_errorHandlingConfigHasBeenSet = false;
155 bool m_writeOperationTypeHasBeenSet = false;
156 bool m_idFieldNamesHasBeenSet = false;
157 bool m_customPropertiesHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Appflow
162} // namespace Aws
CustomConnectorDestinationProperties & AddCustomProperties(CustomPropertiesKeyT &&key, CustomPropertiesValueT &&value)
CustomConnectorDestinationProperties & WithWriteOperationType(WriteOperationType value)
CustomConnectorDestinationProperties & WithCustomProperties(CustomPropertiesT &&value)
CustomConnectorDestinationProperties & WithErrorHandlingConfig(ErrorHandlingConfigT &&value)
CustomConnectorDestinationProperties & WithEntityName(EntityNameT &&value)
CustomConnectorDestinationProperties & AddIdFieldNames(IdFieldNamesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomProperties() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPFLOW_API CustomConnectorDestinationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomConnectorDestinationProperties & WithIdFieldNames(IdFieldNamesT &&value)
AWS_APPFLOW_API CustomConnectorDestinationProperties(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue