/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.appflow.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The properties that are applied when the custom connector is being used as a destination. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CustomConnectorDestinationProperties implements Serializable, Cloneable, StructuredPojo { /** ** The entity specified in the custom connector as a destination in the flow. *
*/ private String entityName; /** ** The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector as * destination. *
*/ private ErrorHandlingConfig errorHandlingConfig; /** ** Specifies the type of write operation to be performed in the custom connector when it's used as destination. *
*/ private String writeOperationType; /** ** The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, * or upsert. *
*/ private java.util.List* The custom properties that are specific to the connector when it's used as a destination in the flow. *
*/ private java.util.Map* The entity specified in the custom connector as a destination in the flow. *
* * @param entityName * The entity specified in the custom connector as a destination in the flow. */ public void setEntityName(String entityName) { this.entityName = entityName; } /** ** The entity specified in the custom connector as a destination in the flow. *
* * @return The entity specified in the custom connector as a destination in the flow. */ public String getEntityName() { return this.entityName; } /** ** The entity specified in the custom connector as a destination in the flow. *
* * @param entityName * The entity specified in the custom connector as a destination in the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomConnectorDestinationProperties withEntityName(String entityName) { setEntityName(entityName); return this; } /** ** The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector as * destination. *
* * @param errorHandlingConfig * The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector * as destination. */ public void setErrorHandlingConfig(ErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; } /** ** The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector as * destination. *
* * @return The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector * as destination. */ public ErrorHandlingConfig getErrorHandlingConfig() { return this.errorHandlingConfig; } /** ** The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector as * destination. *
* * @param errorHandlingConfig * The settings that determine how Amazon AppFlow handles an error when placing data in the custom connector * as destination. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomConnectorDestinationProperties withErrorHandlingConfig(ErrorHandlingConfig errorHandlingConfig) { setErrorHandlingConfig(errorHandlingConfig); return this; } /** ** Specifies the type of write operation to be performed in the custom connector when it's used as destination. *
* * @param writeOperationType * Specifies the type of write operation to be performed in the custom connector when it's used as * destination. * @see WriteOperationType */ public void setWriteOperationType(String writeOperationType) { this.writeOperationType = writeOperationType; } /** ** Specifies the type of write operation to be performed in the custom connector when it's used as destination. *
* * @return Specifies the type of write operation to be performed in the custom connector when it's used as * destination. * @see WriteOperationType */ public String getWriteOperationType() { return this.writeOperationType; } /** ** Specifies the type of write operation to be performed in the custom connector when it's used as destination. *
* * @param writeOperationType * Specifies the type of write operation to be performed in the custom connector when it's used as * destination. * @return Returns a reference to this object so that method calls can be chained together. * @see WriteOperationType */ public CustomConnectorDestinationProperties withWriteOperationType(String writeOperationType) { setWriteOperationType(writeOperationType); return this; } /** ** Specifies the type of write operation to be performed in the custom connector when it's used as destination. *
* * @param writeOperationType * Specifies the type of write operation to be performed in the custom connector when it's used as * destination. * @return Returns a reference to this object so that method calls can be chained together. * @see WriteOperationType */ public CustomConnectorDestinationProperties withWriteOperationType(WriteOperationType writeOperationType) { this.writeOperationType = writeOperationType.toString(); 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. *
* * @return The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, * delete, or upsert. */ public java.util.List* The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, * or upsert. *
* * @param idFieldNames * The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, * delete, or upsert. */ public void setIdFieldNames(java.util.Collection* The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, * or upsert. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIdFieldNames(java.util.Collection)} or {@link #withIdFieldNames(java.util.Collection)} if you want to * override the existing values. *
* * @param idFieldNames * The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, * delete, or upsert. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomConnectorDestinationProperties withIdFieldNames(String... idFieldNames) { if (this.idFieldNames == null) { setIdFieldNames(new java.util.ArrayList* The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, delete, * or upsert. *
* * @param idFieldNames * The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update, * delete, or upsert. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomConnectorDestinationProperties withIdFieldNames(java.util.Collection* The custom properties that are specific to the connector when it's used as a destination in the flow. *
* * @return The custom properties that are specific to the connector when it's used as a destination in the flow. */ public java.util.Map* The custom properties that are specific to the connector when it's used as a destination in the flow. *
* * @param customProperties * The custom properties that are specific to the connector when it's used as a destination in the flow. */ public void setCustomProperties(java.util.Map* The custom properties that are specific to the connector when it's used as a destination in the flow. *
* * @param customProperties * The custom properties that are specific to the connector when it's used as a destination in the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomConnectorDestinationProperties withCustomProperties(java.util.Map