/* * 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; /** *
* The location of resources. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Location implements Serializable, Cloneable, StructuredPojo { /** ** A JDBC location. *
*/ private java.util.List* An Amazon Simple Storage Service (Amazon S3) location. *
*/ private java.util.List* An Amazon DynamoDB table location. *
*/ private java.util.List* A JDBC location. *
* * @return A JDBC location. */ public java.util.List* A JDBC location. *
* * @param jdbc * A JDBC location. */ public void setJdbc(java.util.Collection* A JDBC location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setJdbc(java.util.Collection)} or {@link #withJdbc(java.util.Collection)} if you want to override the * existing values. *
* * @param jdbc * A JDBC location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withJdbc(CodeGenNodeArg... jdbc) { if (this.jdbc == null) { setJdbc(new java.util.ArrayList* A JDBC location. *
* * @param jdbc * A JDBC location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withJdbc(java.util.Collection* An Amazon Simple Storage Service (Amazon S3) location. *
* * @return An Amazon Simple Storage Service (Amazon S3) location. */ public java.util.List* An Amazon Simple Storage Service (Amazon S3) location. *
* * @param s3 * An Amazon Simple Storage Service (Amazon S3) location. */ public void setS3(java.util.Collection* An Amazon Simple Storage Service (Amazon S3) location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setS3(java.util.Collection)} or {@link #withS3(java.util.Collection)} if you want to override the * existing values. *
* * @param s3 * An Amazon Simple Storage Service (Amazon S3) location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withS3(CodeGenNodeArg... s3) { if (this.s3 == null) { setS3(new java.util.ArrayList* An Amazon Simple Storage Service (Amazon S3) location. *
* * @param s3 * An Amazon Simple Storage Service (Amazon S3) location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withS3(java.util.Collection* An Amazon DynamoDB table location. *
* * @return An Amazon DynamoDB table location. */ public java.util.List* An Amazon DynamoDB table location. *
* * @param dynamoDB * An Amazon DynamoDB table location. */ public void setDynamoDB(java.util.Collection* An Amazon DynamoDB table location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDynamoDB(java.util.Collection)} or {@link #withDynamoDB(java.util.Collection)} if you want to override * the existing values. *
* * @param dynamoDB * An Amazon DynamoDB table location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withDynamoDB(CodeGenNodeArg... dynamoDB) { if (this.dynamoDB == null) { setDynamoDB(new java.util.ArrayList* An Amazon DynamoDB table location. *
* * @param dynamoDB * An Amazon DynamoDB table location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withDynamoDB(java.util.Collection