/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetPlanRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The list of mappings from a source table to target tables. *
*/ private java.util.List* The source table. *
*/ private CatalogEntry source; /** ** The target tables. *
*/ private java.util.List* The parameters for the mapping. *
*/ private Location location; /** ** The programming language of the code to perform the mapping. *
*/ private String language; /** ** A map to hold additional optional key-value parameters. *
** Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the default
* script generated by an Glue job. For example, to set inferSchema
to true, pass the following key
* value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* The list of mappings from a source table to target tables. *
* * @return The list of mappings from a source table to target tables. */ public java.util.List* The list of mappings from a source table to target tables. *
* * @param mapping * The list of mappings from a source table to target tables. */ public void setMapping(java.util.Collection* The list of mappings from a source table to target tables. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMapping(java.util.Collection)} or {@link #withMapping(java.util.Collection)} if you want to override * the existing values. *
* * @param mapping * The list of mappings from a source table to target tables. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withMapping(MappingEntry... mapping) { if (this.mapping == null) { setMapping(new java.util.ArrayList* The list of mappings from a source table to target tables. *
* * @param mapping * The list of mappings from a source table to target tables. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withMapping(java.util.Collection* The source table. *
* * @param source * The source table. */ public void setSource(CatalogEntry source) { this.source = source; } /** ** The source table. *
* * @return The source table. */ public CatalogEntry getSource() { return this.source; } /** ** The source table. *
* * @param source * The source table. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withSource(CatalogEntry source) { setSource(source); return this; } /** ** The target tables. *
* * @return The target tables. */ public java.util.List* The target tables. *
* * @param sinks * The target tables. */ public void setSinks(java.util.Collection* The target tables. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSinks(java.util.Collection)} or {@link #withSinks(java.util.Collection)} if you want to override the * existing values. *
* * @param sinks * The target tables. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withSinks(CatalogEntry... sinks) { if (this.sinks == null) { setSinks(new java.util.ArrayList* The target tables. *
* * @param sinks * The target tables. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withSinks(java.util.Collection* The parameters for the mapping. *
* * @param location * The parameters for the mapping. */ public void setLocation(Location location) { this.location = location; } /** ** The parameters for the mapping. *
* * @return The parameters for the mapping. */ public Location getLocation() { return this.location; } /** ** The parameters for the mapping. *
* * @param location * The parameters for the mapping. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPlanRequest withLocation(Location location) { setLocation(location); return this; } /** ** The programming language of the code to perform the mapping. *
* * @param language * The programming language of the code to perform the mapping. * @see Language */ public void setLanguage(String language) { this.language = language; } /** ** The programming language of the code to perform the mapping. *
* * @return The programming language of the code to perform the mapping. * @see Language */ public String getLanguage() { return this.language; } /** ** The programming language of the code to perform the mapping. *
* * @param language * The programming language of the code to perform the mapping. * @return Returns a reference to this object so that method calls can be chained together. * @see Language */ public GetPlanRequest withLanguage(String language) { setLanguage(language); return this; } /** ** The programming language of the code to perform the mapping. *
* * @param language * The programming language of the code to perform the mapping. * @return Returns a reference to this object so that method calls can be chained together. * @see Language */ public GetPlanRequest withLanguage(Language language) { this.language = language.toString(); return this; } /** ** A map to hold additional optional key-value parameters. *
** Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the default
* script generated by an Glue job. For example, to set inferSchema
to true, pass the following key
* value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the
* default script generated by an Glue job. For example, to set inferSchema
to true, pass the
* following key value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* A map to hold additional optional key-value parameters. *
** Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the default
* script generated by an Glue job. For example, to set inferSchema
to true, pass the following key
* value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the
* default script generated by an Glue job. For example, to set inferSchema
to true, pass the
* following key value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* A map to hold additional optional key-value parameters. *
** Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the default
* script generated by an Glue job. For example, to set inferSchema
to true, pass the following key
* value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*
* Currently, these key-value pairs are supported: *
*
* inferSchema
— Specifies whether to set inferSchema
to true or false for the
* default script generated by an Glue job. For example, to set inferSchema
to true, pass the
* following key value pair:
*
* --additional-plan-options-map '{"inferSchema":"true"}'
*