/* * 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 a connector to an Apache Spark data source. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SparkConnectorSource implements Serializable, Cloneable, StructuredPojo { /** ** The name of the data source. *
*/ private String name; /** ** The name of the connection that is associated with the connector. *
*/ private String connectionName; /** ** The name of a connector that assists with accessing the data store in Glue Studio. *
*/ private String connectorName; /** ** The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache Spark * data store. *
*/ private String connectionType; /** ** Additional connection options for the connector. *
*/ private java.util.Map* Specifies data schema for the custom spark source. *
*/ private java.util.List* The name of the data source. *
* * @param name * The name of the data source. */ public void setName(String name) { this.name = name; } /** ** The name of the data source. *
* * @return The name of the data source. */ public String getName() { return this.name; } /** ** The name of the data source. *
* * @param name * The name of the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withName(String name) { setName(name); return this; } /** ** The name of the connection that is associated with the connector. *
* * @param connectionName * The name of the connection that is associated with the connector. */ public void setConnectionName(String connectionName) { this.connectionName = connectionName; } /** ** The name of the connection that is associated with the connector. *
* * @return The name of the connection that is associated with the connector. */ public String getConnectionName() { return this.connectionName; } /** ** The name of the connection that is associated with the connector. *
* * @param connectionName * The name of the connection that is associated with the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withConnectionName(String connectionName) { setConnectionName(connectionName); return this; } /** ** The name of a connector that assists with accessing the data store in Glue Studio. *
* * @param connectorName * The name of a connector that assists with accessing the data store in Glue Studio. */ public void setConnectorName(String connectorName) { this.connectorName = connectorName; } /** ** The name of a connector that assists with accessing the data store in Glue Studio. *
* * @return The name of a connector that assists with accessing the data store in Glue Studio. */ public String getConnectorName() { return this.connectorName; } /** ** The name of a connector that assists with accessing the data store in Glue Studio. *
* * @param connectorName * The name of a connector that assists with accessing the data store in Glue Studio. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withConnectorName(String connectorName) { setConnectorName(connectorName); return this; } /** ** The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache Spark * data store. *
* * @param connectionType * The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache * Spark data store. */ public void setConnectionType(String connectionType) { this.connectionType = connectionType; } /** ** The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache Spark * data store. *
* * @return The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache * Spark data store. */ public String getConnectionType() { return this.connectionType; } /** ** The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache Spark * data store. *
* * @param connectionType * The type of connection, such as marketplace.spark or custom.spark, designating a connection to an Apache * Spark data store. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withConnectionType(String connectionType) { setConnectionType(connectionType); return this; } /** ** Additional connection options for the connector. *
* * @return Additional connection options for the connector. */ public java.util.Map* Additional connection options for the connector. *
* * @param additionalOptions * Additional connection options for the connector. */ public void setAdditionalOptions(java.util.Map* Additional connection options for the connector. *
* * @param additionalOptions * Additional connection options for the connector. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withAdditionalOptions(java.util.Map* Specifies data schema for the custom spark source. *
* * @return Specifies data schema for the custom spark source. */ public java.util.List* Specifies data schema for the custom spark source. *
* * @param outputSchemas * Specifies data schema for the custom spark source. */ public void setOutputSchemas(java.util.Collection* Specifies data schema for the custom spark source. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOutputSchemas(java.util.Collection)} or {@link #withOutputSchemas(java.util.Collection)} if you want * to override the existing values. *
* * @param outputSchemas * Specifies data schema for the custom spark source. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withOutputSchemas(GlueSchema... outputSchemas) { if (this.outputSchemas == null) { setOutputSchemas(new java.util.ArrayList* Specifies data schema for the custom spark source. *
* * @param outputSchemas * Specifies data schema for the custom spark source. * @return Returns a reference to this object so that method calls can be chained together. */ public SparkConnectorSource withOutputSchemas(java.util.Collection