/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

The properties that are applied when the custom connector is being used as a * destination.

See Also:

AWS * API Reference

*/ class CustomConnectorDestinationProperties { public: AWS_APPFLOW_API CustomConnectorDestinationProperties(); AWS_APPFLOW_API CustomConnectorDestinationProperties(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API CustomConnectorDestinationProperties& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline const Aws::String& GetEntityName() const{ return m_entityName; } /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; } /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline void SetEntityName(const Aws::String& value) { m_entityNameHasBeenSet = true; m_entityName = value; } /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline void SetEntityName(Aws::String&& value) { m_entityNameHasBeenSet = true; m_entityName = std::move(value); } /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline void SetEntityName(const char* value) { m_entityNameHasBeenSet = true; m_entityName.assign(value); } /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline CustomConnectorDestinationProperties& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;} /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline CustomConnectorDestinationProperties& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;} /** *

The entity specified in the custom connector as a destination in the * flow.

*/ inline CustomConnectorDestinationProperties& WithEntityName(const char* value) { SetEntityName(value); return *this;} /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline const ErrorHandlingConfig& GetErrorHandlingConfig() const{ return m_errorHandlingConfig; } /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline bool ErrorHandlingConfigHasBeenSet() const { return m_errorHandlingConfigHasBeenSet; } /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline void SetErrorHandlingConfig(const ErrorHandlingConfig& value) { m_errorHandlingConfigHasBeenSet = true; m_errorHandlingConfig = value; } /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline void SetErrorHandlingConfig(ErrorHandlingConfig&& value) { m_errorHandlingConfigHasBeenSet = true; m_errorHandlingConfig = std::move(value); } /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline CustomConnectorDestinationProperties& WithErrorHandlingConfig(const ErrorHandlingConfig& value) { SetErrorHandlingConfig(value); return *this;} /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the custom connector as destination.

*/ inline CustomConnectorDestinationProperties& WithErrorHandlingConfig(ErrorHandlingConfig&& value) { SetErrorHandlingConfig(std::move(value)); return *this;} /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline const WriteOperationType& GetWriteOperationType() const{ return m_writeOperationType; } /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline bool WriteOperationTypeHasBeenSet() const { return m_writeOperationTypeHasBeenSet; } /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline void SetWriteOperationType(const WriteOperationType& value) { m_writeOperationTypeHasBeenSet = true; m_writeOperationType = value; } /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline void SetWriteOperationType(WriteOperationType&& value) { m_writeOperationTypeHasBeenSet = true; m_writeOperationType = std::move(value); } /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline CustomConnectorDestinationProperties& WithWriteOperationType(const WriteOperationType& value) { SetWriteOperationType(value); return *this;} /** *

Specifies the type of write operation to be performed in the custom connector * when it's used as destination.

*/ inline CustomConnectorDestinationProperties& WithWriteOperationType(WriteOperationType&& value) { SetWriteOperationType(std::move(value)); return *this;} /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline const Aws::Vector& GetIdFieldNames() const{ return m_idFieldNames; } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline bool IdFieldNamesHasBeenSet() const { return m_idFieldNamesHasBeenSet; } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline void SetIdFieldNames(const Aws::Vector& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames = value; } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline void SetIdFieldNames(Aws::Vector&& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames = std::move(value); } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline CustomConnectorDestinationProperties& WithIdFieldNames(const Aws::Vector& value) { SetIdFieldNames(value); return *this;} /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline CustomConnectorDestinationProperties& WithIdFieldNames(Aws::Vector&& value) { SetIdFieldNames(std::move(value)); return *this;} /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline CustomConnectorDestinationProperties& AddIdFieldNames(const Aws::String& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames.push_back(value); return *this; } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline CustomConnectorDestinationProperties& AddIdFieldNames(Aws::String&& value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames.push_back(std::move(value)); return *this; } /** *

The name of the field that Amazon AppFlow uses as an ID when performing a * write operation such as update, delete, or upsert.

*/ inline CustomConnectorDestinationProperties& AddIdFieldNames(const char* value) { m_idFieldNamesHasBeenSet = true; m_idFieldNames.push_back(value); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline const Aws::Map& GetCustomProperties() const{ return m_customProperties; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline void SetCustomProperties(const Aws::Map& value) { m_customPropertiesHasBeenSet = true; m_customProperties = value; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline void SetCustomProperties(Aws::Map&& value) { m_customPropertiesHasBeenSet = true; m_customProperties = std::move(value); } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& WithCustomProperties(const Aws::Map& value) { SetCustomProperties(value); return *this;} /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& WithCustomProperties(Aws::Map&& value) { SetCustomProperties(std::move(value)); return *this;} /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(const Aws::String& key, const Aws::String& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, value); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(Aws::String&& key, const Aws::String& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), value); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(const Aws::String& key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, std::move(value)); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(Aws::String&& key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(const char* key, Aws::String&& value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, std::move(value)); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(Aws::String&& key, const char* value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::move(key), value); return *this; } /** *

The custom properties that are specific to the connector when it's used as a * destination in the flow.

*/ inline CustomConnectorDestinationProperties& AddCustomProperties(const char* key, const char* value) { m_customPropertiesHasBeenSet = true; m_customProperties.emplace(key, value); return *this; } private: Aws::String m_entityName; bool m_entityNameHasBeenSet = false; ErrorHandlingConfig m_errorHandlingConfig; bool m_errorHandlingConfigHasBeenSet = false; WriteOperationType m_writeOperationType; bool m_writeOperationTypeHasBeenSet = false; Aws::Vector m_idFieldNames; bool m_idFieldNamesHasBeenSet = false; Aws::Map m_customProperties; bool m_customPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws