/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies an Amazon Redshift target. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonRedshiftTarget implements Serializable, Cloneable, StructuredPojo { /** ** The name of the Amazon Redshift target. *
*/ private String name; /** ** Specifies the data of the Amazon Redshift target node. *
*/ private AmazonRedshiftNodeData data; /** ** The nodes that are inputs to the data target. *
*/ private java.util.List* The name of the Amazon Redshift target. *
* * @param name * The name of the Amazon Redshift target. */ public void setName(String name) { this.name = name; } /** ** The name of the Amazon Redshift target. *
* * @return The name of the Amazon Redshift target. */ public String getName() { return this.name; } /** ** The name of the Amazon Redshift target. *
* * @param name * The name of the Amazon Redshift target. * @return Returns a reference to this object so that method calls can be chained together. */ public AmazonRedshiftTarget withName(String name) { setName(name); return this; } /** ** Specifies the data of the Amazon Redshift target node. *
* * @param data * Specifies the data of the Amazon Redshift target node. */ public void setData(AmazonRedshiftNodeData data) { this.data = data; } /** ** Specifies the data of the Amazon Redshift target node. *
* * @return Specifies the data of the Amazon Redshift target node. */ public AmazonRedshiftNodeData getData() { return this.data; } /** ** Specifies the data of the Amazon Redshift target node. *
* * @param data * Specifies the data of the Amazon Redshift target node. * @return Returns a reference to this object so that method calls can be chained together. */ public AmazonRedshiftTarget withData(AmazonRedshiftNodeData data) { setData(data); return this; } /** ** The nodes that are inputs to the data target. *
* * @return The nodes that are inputs to the data target. */ public java.util.List* The nodes that are inputs to the data target. *
* * @param inputs * The nodes that are inputs to the data target. */ public void setInputs(java.util.Collection* The nodes that are inputs to the data target. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputs(java.util.Collection)} or {@link #withInputs(java.util.Collection)} if you want to override the * existing values. *
* * @param inputs * The nodes that are inputs to the data target. * @return Returns a reference to this object so that method calls can be chained together. */ public AmazonRedshiftTarget withInputs(String... inputs) { if (this.inputs == null) { setInputs(new java.util.ArrayList* The nodes that are inputs to the data target. *
* * @param inputs * The nodes that are inputs to the data target. * @return Returns a reference to this object so that method calls can be chained together. */ public AmazonRedshiftTarget withInputs(java.util.Collection