/* * 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.cleanrooms.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 CreateConfiguredTableRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the configured table. *
*/ private String name; /** ** A description for the configured table. *
*/ private String description; /** ** A reference to the Glue table being configured. *
*/ private TableReference tableReference; /** ** The columns of the underlying table that can be used by collaborations or analysis rules. *
*/ private java.util.List* The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. *
*/ private String analysisMethod; /** ** An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM * policies to control access to this resource. *
*/ private java.util.Map* The name of the configured table. *
* * @param name * The name of the configured table. */ public void setName(String name) { this.name = name; } /** ** The name of the configured table. *
* * @return The name of the configured table. */ public String getName() { return this.name; } /** ** The name of the configured table. *
* * @param name * The name of the configured table. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withName(String name) { setName(name); return this; } /** ** A description for the configured table. *
* * @param description * A description for the configured table. */ public void setDescription(String description) { this.description = description; } /** ** A description for the configured table. *
* * @return A description for the configured table. */ public String getDescription() { return this.description; } /** ** A description for the configured table. *
* * @param description * A description for the configured table. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withDescription(String description) { setDescription(description); return this; } /** ** A reference to the Glue table being configured. *
* * @param tableReference * A reference to the Glue table being configured. */ public void setTableReference(TableReference tableReference) { this.tableReference = tableReference; } /** ** A reference to the Glue table being configured. *
* * @return A reference to the Glue table being configured. */ public TableReference getTableReference() { return this.tableReference; } /** ** A reference to the Glue table being configured. *
* * @param tableReference * A reference to the Glue table being configured. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withTableReference(TableReference tableReference) { setTableReference(tableReference); return this; } /** ** The columns of the underlying table that can be used by collaborations or analysis rules. *
* * @return The columns of the underlying table that can be used by collaborations or analysis rules. */ public java.util.List* The columns of the underlying table that can be used by collaborations or analysis rules. *
* * @param allowedColumns * The columns of the underlying table that can be used by collaborations or analysis rules. */ public void setAllowedColumns(java.util.Collection* The columns of the underlying table that can be used by collaborations or analysis rules. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllowedColumns(java.util.Collection)} or {@link #withAllowedColumns(java.util.Collection)} if you want * to override the existing values. *
* * @param allowedColumns * The columns of the underlying table that can be used by collaborations or analysis rules. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withAllowedColumns(String... allowedColumns) { if (this.allowedColumns == null) { setAllowedColumns(new java.util.ArrayList* The columns of the underlying table that can be used by collaborations or analysis rules. *
* * @param allowedColumns * The columns of the underlying table that can be used by collaborations or analysis rules. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withAllowedColumns(java.util.Collection* The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. *
* * @param analysisMethod * The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. * @see AnalysisMethod */ public void setAnalysisMethod(String analysisMethod) { this.analysisMethod = analysisMethod; } /** ** The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. *
* * @return The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. * @see AnalysisMethod */ public String getAnalysisMethod() { return this.analysisMethod; } /** ** The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. *
* * @param analysisMethod * The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisMethod */ public CreateConfiguredTableRequest withAnalysisMethod(String analysisMethod) { setAnalysisMethod(analysisMethod); return this; } /** ** The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. *
* * @param analysisMethod * The analysis method for the configured tables. The only valid value is currently `DIRECT_QUERY`. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisMethod */ public CreateConfiguredTableRequest withAnalysisMethod(AnalysisMethod analysisMethod) { this.analysisMethod = analysisMethod.toString(); return this; } /** ** An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM * policies to control access to this resource. *
* * @return An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control * in IAM policies to control access to this resource. */ public java.util.Map* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM * policies to control access to this resource. *
* * @param tags * An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control * in IAM policies to control access to this resource. */ public void setTags(java.util.Map* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM * policies to control access to this resource. *
* * @param tags * An optional label that you can assign to a resource when you create it. Each tag consists of a key and an * optional value, both of which you define. When you use tagging, you can also use tag-based access control * in IAM policies to control access to this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfiguredTableRequest withTags(java.util.Map