/* * 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 can be applied to a field when connector is being used as a destination. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DestinationFieldProperties implements Serializable, Cloneable, StructuredPojo { /** ** Specifies if the destination field can be created by the current user. *
*/ private Boolean isCreatable; /** ** Specifies if the destination field can have a null value. *
*/ private Boolean isNullable; /** ** Specifies if the flow run can either insert new rows in the destination field if they do not already exist, or * update them if they do. *
*/ private Boolean isUpsertable; /** *
* Specifies whether the field can be updated during an UPDATE
or UPSERT
write operation.
*
* Specifies whether the field can use the default value during a Create operation. *
*/ private Boolean isDefaultedOnCreate; /** *
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
* Specifies if the destination field can be created by the current user. *
* * @param isCreatable * Specifies if the destination field can be created by the current user. */ public void setIsCreatable(Boolean isCreatable) { this.isCreatable = isCreatable; } /** ** Specifies if the destination field can be created by the current user. *
* * @return Specifies if the destination field can be created by the current user. */ public Boolean getIsCreatable() { return this.isCreatable; } /** ** Specifies if the destination field can be created by the current user. *
* * @param isCreatable * Specifies if the destination field can be created by the current user. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationFieldProperties withIsCreatable(Boolean isCreatable) { setIsCreatable(isCreatable); return this; } /** ** Specifies if the destination field can be created by the current user. *
* * @return Specifies if the destination field can be created by the current user. */ public Boolean isCreatable() { return this.isCreatable; } /** ** Specifies if the destination field can have a null value. *
* * @param isNullable * Specifies if the destination field can have a null value. */ public void setIsNullable(Boolean isNullable) { this.isNullable = isNullable; } /** ** Specifies if the destination field can have a null value. *
* * @return Specifies if the destination field can have a null value. */ public Boolean getIsNullable() { return this.isNullable; } /** ** Specifies if the destination field can have a null value. *
* * @param isNullable * Specifies if the destination field can have a null value. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationFieldProperties withIsNullable(Boolean isNullable) { setIsNullable(isNullable); return this; } /** ** Specifies if the destination field can have a null value. *
* * @return Specifies if the destination field can have a null value. */ public Boolean isNullable() { return this.isNullable; } /** ** Specifies if the flow run can either insert new rows in the destination field if they do not already exist, or * update them if they do. *
* * @param isUpsertable * Specifies if the flow run can either insert new rows in the destination field if they do not already * exist, or update them if they do. */ public void setIsUpsertable(Boolean isUpsertable) { this.isUpsertable = isUpsertable; } /** ** Specifies if the flow run can either insert new rows in the destination field if they do not already exist, or * update them if they do. *
* * @return Specifies if the flow run can either insert new rows in the destination field if they do not already * exist, or update them if they do. */ public Boolean getIsUpsertable() { return this.isUpsertable; } /** ** Specifies if the flow run can either insert new rows in the destination field if they do not already exist, or * update them if they do. *
* * @param isUpsertable * Specifies if the flow run can either insert new rows in the destination field if they do not already * exist, or update them if they do. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationFieldProperties withIsUpsertable(Boolean isUpsertable) { setIsUpsertable(isUpsertable); return this; } /** ** Specifies if the flow run can either insert new rows in the destination field if they do not already exist, or * update them if they do. *
* * @return Specifies if the flow run can either insert new rows in the destination field if they do not already * exist, or update them if they do. */ public Boolean isUpsertable() { return this.isUpsertable; } /** *
* Specifies whether the field can be updated during an UPDATE
or UPSERT
write operation.
*
UPDATE
or UPSERT
write
* operation.
*/
public void setIsUpdatable(Boolean isUpdatable) {
this.isUpdatable = isUpdatable;
}
/**
*
* Specifies whether the field can be updated during an UPDATE
or UPSERT
write operation.
*
UPDATE
or UPSERT
write
* operation.
*/
public Boolean getIsUpdatable() {
return this.isUpdatable;
}
/**
*
* Specifies whether the field can be updated during an UPDATE
or UPSERT
write operation.
*
UPDATE
or UPSERT
write
* operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DestinationFieldProperties withIsUpdatable(Boolean isUpdatable) {
setIsUpdatable(isUpdatable);
return this;
}
/**
*
* Specifies whether the field can be updated during an UPDATE
or UPSERT
write operation.
*
UPDATE
or UPSERT
write
* operation.
*/
public Boolean isUpdatable() {
return this.isUpdatable;
}
/**
* * Specifies whether the field can use the default value during a Create operation. *
* * @param isDefaultedOnCreate * Specifies whether the field can use the default value during a Create operation. */ public void setIsDefaultedOnCreate(Boolean isDefaultedOnCreate) { this.isDefaultedOnCreate = isDefaultedOnCreate; } /** ** Specifies whether the field can use the default value during a Create operation. *
* * @return Specifies whether the field can use the default value during a Create operation. */ public Boolean getIsDefaultedOnCreate() { return this.isDefaultedOnCreate; } /** ** Specifies whether the field can use the default value during a Create operation. *
* * @param isDefaultedOnCreate * Specifies whether the field can use the default value during a Create operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationFieldProperties withIsDefaultedOnCreate(Boolean isDefaultedOnCreate) { setIsDefaultedOnCreate(isDefaultedOnCreate); return this; } /** ** Specifies whether the field can use the default value during a Create operation. *
* * @return Specifies whether the field can use the default value during a Create operation. */ public Boolean isDefaultedOnCreate() { return this.isDefaultedOnCreate; } /** *
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
idFieldNames
when that write operation is present as a destination option.
* @see WriteOperationType
*/
public java.util.List
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
idFieldNames
when that write operation is present as a destination option.
* @see WriteOperationType
*/
public void setSupportedWriteOperations(java.util.Collection
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedWriteOperations(java.util.Collection)} or * {@link #withSupportedWriteOperations(java.util.Collection)} if you want to override the existing values. *
* * @param supportedWriteOperations * A list of supported write operations. For each write operation listed, this field can be used in *idFieldNames
when that write operation is present as a destination option.
* @return Returns a reference to this object so that method calls can be chained together.
* @see WriteOperationType
*/
public DestinationFieldProperties withSupportedWriteOperations(String... supportedWriteOperations) {
if (this.supportedWriteOperations == null) {
setSupportedWriteOperations(new java.util.ArrayList
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
idFieldNames
when that write operation is present as a destination option.
* @return Returns a reference to this object so that method calls can be chained together.
* @see WriteOperationType
*/
public DestinationFieldProperties withSupportedWriteOperations(java.util.Collection
* A list of supported write operations. For each write operation listed, this field can be used in
* idFieldNames
when that write operation is present as a destination option.
*
idFieldNames
when that write operation is present as a destination option.
* @return Returns a reference to this object so that method calls can be chained together.
* @see WriteOperationType
*/
public DestinationFieldProperties withSupportedWriteOperations(WriteOperationType... supportedWriteOperations) {
java.util.ArrayList