/* * 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 Amazon Athena data source. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AthenaConnectorSource 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.athena or custom.athena, designating a connection to an Amazon Athena * data store. *
*/ private String connectionType; /** ** The name of the table in the data source. *
*/ private String connectionTable; /** *
* The name of the Cloudwatch log group to read from. For example, /aws-glue/jobs/output
.
*
* Specifies the data schema for the custom Athena 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 AthenaConnectorSource 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 AthenaConnectorSource 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 AthenaConnectorSource withConnectorName(String connectorName) { setConnectorName(connectorName); return this; } /** ** The type of connection, such as marketplace.athena or custom.athena, designating a connection to an Amazon Athena * data store. *
* * @param connectionType * The type of connection, such as marketplace.athena or custom.athena, designating a connection to an Amazon * Athena data store. */ public void setConnectionType(String connectionType) { this.connectionType = connectionType; } /** ** The type of connection, such as marketplace.athena or custom.athena, designating a connection to an Amazon Athena * data store. *
* * @return The type of connection, such as marketplace.athena or custom.athena, designating a connection to an * Amazon Athena data store. */ public String getConnectionType() { return this.connectionType; } /** ** The type of connection, such as marketplace.athena or custom.athena, designating a connection to an Amazon Athena * data store. *
* * @param connectionType * The type of connection, such as marketplace.athena or custom.athena, designating a connection to an Amazon * Athena data store. * @return Returns a reference to this object so that method calls can be chained together. */ public AthenaConnectorSource withConnectionType(String connectionType) { setConnectionType(connectionType); return this; } /** ** The name of the table in the data source. *
* * @param connectionTable * The name of the table in the data source. */ public void setConnectionTable(String connectionTable) { this.connectionTable = connectionTable; } /** ** The name of the table in the data source. *
* * @return The name of the table in the data source. */ public String getConnectionTable() { return this.connectionTable; } /** ** The name of the table in the data source. *
* * @param connectionTable * The name of the table in the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public AthenaConnectorSource withConnectionTable(String connectionTable) { setConnectionTable(connectionTable); return this; } /** *
* The name of the Cloudwatch log group to read from. For example, /aws-glue/jobs/output
.
*
/aws-glue/jobs/output
.
*/
public void setSchemaName(String schemaName) {
this.schemaName = schemaName;
}
/**
*
* The name of the Cloudwatch log group to read from. For example, /aws-glue/jobs/output
.
*
/aws-glue/jobs/output
.
*/
public String getSchemaName() {
return this.schemaName;
}
/**
*
* The name of the Cloudwatch log group to read from. For example, /aws-glue/jobs/output
.
*
/aws-glue/jobs/output
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AthenaConnectorSource withSchemaName(String schemaName) {
setSchemaName(schemaName);
return this;
}
/**
* * Specifies the data schema for the custom Athena source. *
* * @return Specifies the data schema for the custom Athena source. */ public java.util.List* Specifies the data schema for the custom Athena source. *
* * @param outputSchemas * Specifies the data schema for the custom Athena source. */ public void setOutputSchemas(java.util.Collection* Specifies the data schema for the custom Athena 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 the data schema for the custom Athena source. * @return Returns a reference to this object so that method calls can be chained together. */ public AthenaConnectorSource withOutputSchemas(GlueSchema... outputSchemas) { if (this.outputSchemas == null) { setOutputSchemas(new java.util.ArrayList* Specifies the data schema for the custom Athena source. *
* * @param outputSchemas * Specifies the data schema for the custom Athena source. * @return Returns a reference to this object so that method calls can be chained together. */ public AthenaConnectorSource withOutputSchemas(java.util.Collection