/* * 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 JDBC data store to crawl. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JdbcTarget implements Serializable, Cloneable, StructuredPojo { /** ** The name of the connection to use to connect to the JDBC target. *
*/ private String connectionName; /** ** The path of the JDBC target. *
*/ private String path; /** ** A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. *
*/ private java.util.List
* Specify a value of RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
*
* If you do not need additional metadata, keep the field empty. *
*/ private java.util.List* The name of the connection to use to connect to the JDBC target. *
* * @param connectionName * The name of the connection to use to connect to the JDBC target. */ public void setConnectionName(String connectionName) { this.connectionName = connectionName; } /** ** The name of the connection to use to connect to the JDBC target. *
* * @return The name of the connection to use to connect to the JDBC target. */ public String getConnectionName() { return this.connectionName; } /** ** The name of the connection to use to connect to the JDBC target. *
* * @param connectionName * The name of the connection to use to connect to the JDBC target. * @return Returns a reference to this object so that method calls can be chained together. */ public JdbcTarget withConnectionName(String connectionName) { setConnectionName(connectionName); return this; } /** ** The path of the JDBC target. *
* * @param path * The path of the JDBC target. */ public void setPath(String path) { this.path = path; } /** ** The path of the JDBC target. *
* * @return The path of the JDBC target. */ public String getPath() { return this.path; } /** ** The path of the JDBC target. *
* * @param path * The path of the JDBC target. * @return Returns a reference to this object so that method calls can be chained together. */ public JdbcTarget withPath(String path) { setPath(path); return this; } /** ** A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. *
* * @return A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. */ public java.util.List* A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. *
* * @param exclusions * A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. */ public void setExclusions(java.util.Collection* A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExclusions(java.util.Collection)} or {@link #withExclusions(java.util.Collection)} if you want to * override the existing values. *
* * @param exclusions * A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. * @return Returns a reference to this object so that method calls can be chained together. */ public JdbcTarget withExclusions(String... exclusions) { if (this.exclusions == null) { setExclusions(new java.util.ArrayList* A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. *
* * @param exclusions * A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler. * @return Returns a reference to this object so that method calls can be chained together. */ public JdbcTarget withExclusions(java.util.Collection
* Specify a value of RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
*
* If you do not need additional metadata, keep the field empty. *
* * @return Specify a value ofRAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides
* comments associated with a column or table in the database.
*
* If you do not need additional metadata, keep the field empty.
* @see JdbcMetadataEntry
*/
public java.util.List
* Specify a value of
* If you do not need additional metadata, keep the field empty.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides
* comments associated with a column or table in the database.
* If you do not need additional metadata, keep the field empty.
* @see JdbcMetadataEntry
*/
public void setEnableAdditionalMetadata(java.util.Collection
* Specify a value of
* If you do not need additional metadata, keep the field empty.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEnableAdditionalMetadata(java.util.Collection)} or
* {@link #withEnableAdditionalMetadata(java.util.Collection)} if you want to override the existing values.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides
* comments associated with a column or table in the database.
* If you do not need additional metadata, keep the field empty.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JdbcMetadataEntry
*/
public JdbcTarget withEnableAdditionalMetadata(String... enableAdditionalMetadata) {
if (this.enableAdditionalMetadata == null) {
setEnableAdditionalMetadata(new java.util.ArrayList
* Specify a value of
* If you do not need additional metadata, keep the field empty.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides
* comments associated with a column or table in the database.
* If you do not need additional metadata, keep the field empty.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JdbcMetadataEntry
*/
public JdbcTarget withEnableAdditionalMetadata(java.util.Collection
* Specify a value of
* If you do not need additional metadata, keep the field empty.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides comments
* associated with a column or table in the database.
* RAWTYPES
or COMMENTS
to enable additional metadata in table
* responses. RAWTYPES
provides the native-level datatype. COMMENTS
provides
* comments associated with a column or table in the database.
* If you do not need additional metadata, keep the field empty.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JdbcMetadataEntry
*/
public JdbcTarget withEnableAdditionalMetadata(JdbcMetadataEntry... enableAdditionalMetadata) {
java.util.ArrayList