AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomConnectorDestinationProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/ErrorHandlingConfig.h>
10#include <aws/appflow/model/WriteOperationType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Appflow
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_APPFLOW_API CustomConnectorDestinationProperties() = default;
42 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetEntityName() const { return m_entityName; }
51 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
52 template<typename EntityNameT = Aws::String>
53 void SetEntityName(EntityNameT&& value) { m_entityNameHasBeenSet = true; m_entityName = std::forward<EntityNameT>(value); }
54 template<typename EntityNameT = Aws::String>
55 CustomConnectorDestinationProperties& WithEntityName(EntityNameT&& value) { SetEntityName(std::forward<EntityNameT>(value)); return *this;}
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) { m_errorHandlingConfigHasBeenSet = true; m_errorHandlingConfig = std::forward<ErrorHandlingConfigT>(value); }
67 template<typename ErrorHandlingConfigT = ErrorHandlingConfig>
68 CustomConnectorDestinationProperties& WithErrorHandlingConfig(ErrorHandlingConfigT&& value) { SetErrorHandlingConfig(std::forward<ErrorHandlingConfigT>(value)); return *this;}
70
72
76 inline WriteOperationType GetWriteOperationType() const { return m_writeOperationType; }
77 inline bool WriteOperationTypeHasBeenSet() const { return m_writeOperationTypeHasBeenSet; }
78 inline void SetWriteOperationType(WriteOperationType value) { m_writeOperationTypeHasBeenSet = true; m_writeOperationType = value; }
81
83
87 inline const Aws::Vector<Aws::String>& GetIdFieldNames() const { return m_idFieldNames; }
88 inline bool IdFieldNamesHasBeenSet() const { return m_idFieldNamesHasBeenSet; }
89 template<typename IdFieldNamesT = Aws::Vector<Aws::String>>
90 void SetIdFieldNames(IdFieldNamesT&& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames = std::forward<IdFieldNamesT>(value); }
91 template<typename IdFieldNamesT = Aws::Vector<Aws::String>>
92 CustomConnectorDestinationProperties& WithIdFieldNames(IdFieldNamesT&& value) { SetIdFieldNames(std::forward<IdFieldNamesT>(value)); return *this;}
93 template<typename IdFieldNamesT = Aws::String>
94 CustomConnectorDestinationProperties& AddIdFieldNames(IdFieldNamesT&& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames.emplace_back(std::forward<IdFieldNamesT>(value)); return *this; }
96
98
102 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProperties() const { return m_customProperties; }
103 inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; }
104 template<typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
105 void SetCustomProperties(CustomPropertiesT&& value) { m_customPropertiesHasBeenSet = true; m_customProperties = std::forward<CustomPropertiesT>(value); }
106 template<typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
107 CustomConnectorDestinationProperties& WithCustomProperties(CustomPropertiesT&& value) { SetCustomProperties(std::forward<CustomPropertiesT>(value)); return *this;}
108 template<typename CustomPropertiesKeyT = Aws::String, typename CustomPropertiesValueT = Aws::String>
109 CustomConnectorDestinationProperties& AddCustomProperties(CustomPropertiesKeyT&& key, CustomPropertiesValueT&& value) {
110 m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value)); return *this;
111 }
113 private:
114
115 Aws::String m_entityName;
116 bool m_entityNameHasBeenSet = false;
117
118 ErrorHandlingConfig m_errorHandlingConfig;
119 bool m_errorHandlingConfigHasBeenSet = false;
120
122 bool m_writeOperationTypeHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_idFieldNames;
125 bool m_idFieldNamesHasBeenSet = false;
126
127 Aws::Map<Aws::String, Aws::String> m_customProperties;
128 bool m_customPropertiesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Appflow
133} // 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