/* * 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.quicksight.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 CreateDataSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Web Services account ID. *
*/ private String awsAccountId; /** ** An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
*/ private String dataSetId; /** ** The display name for the dataset. *
*/ private String name; /** ** Declares the physical tables that are available in the underlying data sources. *
*/ private java.util.Map* Configures the combination and transformation of the data from the physical tables. *
*/ private java.util.Map* Indicates whether you want to import the data into SPICE. *
*/ private String importMode; /** ** Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. *
*/ private java.util.List* The folder that contains fields and nested subfolders for your dataset. *
*/ private java.util.Map* A list of resource permissions on the dataset. *
*/ private java.util.List* The row-level security configuration for the data that you want to create. *
*/ private RowLevelPermissionDataSet rowLevelPermissionDataSet; /** ** The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported * for anonymous embedding only. *
*/ private RowLevelPermissionTagConfiguration rowLevelPermissionTagConfiguration; /** *
* A set of one or more definitions of a
* ColumnLevelPermissionRule
* .
*
* Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. *
*/ private java.util.List* The parameter declarations of the dataset. *
*/ private java.util.List* The Amazon Web Services account ID. *
* * @param awsAccountId * The Amazon Web Services account ID. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The Amazon Web Services account ID. *
* * @return The Amazon Web Services account ID. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The Amazon Web Services account ID. *
* * @param awsAccountId * The Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @param dataSetId * An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public void setDataSetId(String dataSetId) { this.dataSetId = dataSetId; } /** ** An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @return An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public String getDataSetId() { return this.dataSetId; } /** ** An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @param dataSetId * An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withDataSetId(String dataSetId) { setDataSetId(dataSetId); return this; } /** ** The display name for the dataset. *
* * @param name * The display name for the dataset. */ public void setName(String name) { this.name = name; } /** ** The display name for the dataset. *
* * @return The display name for the dataset. */ public String getName() { return this.name; } /** ** The display name for the dataset. *
* * @param name * The display name for the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withName(String name) { setName(name); return this; } /** ** Declares the physical tables that are available in the underlying data sources. *
* * @return Declares the physical tables that are available in the underlying data sources. */ public java.util.Map* Declares the physical tables that are available in the underlying data sources. *
* * @param physicalTableMap * Declares the physical tables that are available in the underlying data sources. */ public void setPhysicalTableMap(java.util.Map* Declares the physical tables that are available in the underlying data sources. *
* * @param physicalTableMap * Declares the physical tables that are available in the underlying data sources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withPhysicalTableMap(java.util.Map* Configures the combination and transformation of the data from the physical tables. *
* * @return Configures the combination and transformation of the data from the physical tables. */ public java.util.Map* Configures the combination and transformation of the data from the physical tables. *
* * @param logicalTableMap * Configures the combination and transformation of the data from the physical tables. */ public void setLogicalTableMap(java.util.Map* Configures the combination and transformation of the data from the physical tables. *
* * @param logicalTableMap * Configures the combination and transformation of the data from the physical tables. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withLogicalTableMap(java.util.Map* Indicates whether you want to import the data into SPICE. *
* * @param importMode * Indicates whether you want to import the data into SPICE. * @see DataSetImportMode */ public void setImportMode(String importMode) { this.importMode = importMode; } /** ** Indicates whether you want to import the data into SPICE. *
* * @return Indicates whether you want to import the data into SPICE. * @see DataSetImportMode */ public String getImportMode() { return this.importMode; } /** ** Indicates whether you want to import the data into SPICE. *
* * @param importMode * Indicates whether you want to import the data into SPICE. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSetImportMode */ public CreateDataSetRequest withImportMode(String importMode) { setImportMode(importMode); return this; } /** ** Indicates whether you want to import the data into SPICE. *
* * @param importMode * Indicates whether you want to import the data into SPICE. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSetImportMode */ public CreateDataSetRequest withImportMode(DataSetImportMode importMode) { this.importMode = importMode.toString(); return this; } /** ** Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. *
* * @return Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. */ public java.util.List* Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. *
* * @param columnGroups * Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. */ public void setColumnGroups(java.util.Collection* Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnGroups(java.util.Collection)} or {@link #withColumnGroups(java.util.Collection)} if you want to * override the existing values. *
* * @param columnGroups * Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withColumnGroups(ColumnGroup... columnGroups) { if (this.columnGroups == null) { setColumnGroups(new java.util.ArrayList* Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. *
* * @param columnGroups * Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial * hierarchy is supported. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withColumnGroups(java.util.Collection* The folder that contains fields and nested subfolders for your dataset. *
* * @return The folder that contains fields and nested subfolders for your dataset. */ public java.util.Map* The folder that contains fields and nested subfolders for your dataset. *
* * @param fieldFolders * The folder that contains fields and nested subfolders for your dataset. */ public void setFieldFolders(java.util.Map* The folder that contains fields and nested subfolders for your dataset. *
* * @param fieldFolders * The folder that contains fields and nested subfolders for your dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withFieldFolders(java.util.Map* A list of resource permissions on the dataset. *
* * @return A list of resource permissions on the dataset. */ public java.util.List* A list of resource permissions on the dataset. *
* * @param permissions * A list of resource permissions on the dataset. */ public void setPermissions(java.util.Collection* A list of resource permissions on the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to * override the existing values. *
* * @param permissions * A list of resource permissions on the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withPermissions(ResourcePermission... permissions) { if (this.permissions == null) { setPermissions(new java.util.ArrayList* A list of resource permissions on the dataset. *
* * @param permissions * A list of resource permissions on the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withPermissions(java.util.Collection* The row-level security configuration for the data that you want to create. *
* * @param rowLevelPermissionDataSet * The row-level security configuration for the data that you want to create. */ public void setRowLevelPermissionDataSet(RowLevelPermissionDataSet rowLevelPermissionDataSet) { this.rowLevelPermissionDataSet = rowLevelPermissionDataSet; } /** ** The row-level security configuration for the data that you want to create. *
* * @return The row-level security configuration for the data that you want to create. */ public RowLevelPermissionDataSet getRowLevelPermissionDataSet() { return this.rowLevelPermissionDataSet; } /** ** The row-level security configuration for the data that you want to create. *
* * @param rowLevelPermissionDataSet * The row-level security configuration for the data that you want to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withRowLevelPermissionDataSet(RowLevelPermissionDataSet rowLevelPermissionDataSet) { setRowLevelPermissionDataSet(rowLevelPermissionDataSet); return this; } /** ** The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported * for anonymous embedding only. *
* * @param rowLevelPermissionTagConfiguration * The configuration of tags on a dataset to set row-level security. Row-level security tags are currently * supported for anonymous embedding only. */ public void setRowLevelPermissionTagConfiguration(RowLevelPermissionTagConfiguration rowLevelPermissionTagConfiguration) { this.rowLevelPermissionTagConfiguration = rowLevelPermissionTagConfiguration; } /** ** The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported * for anonymous embedding only. *
* * @return The configuration of tags on a dataset to set row-level security. Row-level security tags are currently * supported for anonymous embedding only. */ public RowLevelPermissionTagConfiguration getRowLevelPermissionTagConfiguration() { return this.rowLevelPermissionTagConfiguration; } /** ** The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported * for anonymous embedding only. *
* * @param rowLevelPermissionTagConfiguration * The configuration of tags on a dataset to set row-level security. Row-level security tags are currently * supported for anonymous embedding only. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withRowLevelPermissionTagConfiguration(RowLevelPermissionTagConfiguration rowLevelPermissionTagConfiguration) { setRowLevelPermissionTagConfiguration(rowLevelPermissionTagConfiguration); return this; } /** *
* A set of one or more definitions of a
* ColumnLevelPermissionRule
* .
*
ColumnLevelPermissionRule
* .
*/
public java.util.List
* A set of one or more definitions of a
* ColumnLevelPermissionRule
* .
*
ColumnLevelPermissionRule
* .
*/
public void setColumnLevelPermissionRules(java.util.Collection
* A set of one or more definitions of a
* ColumnLevelPermissionRule
* .
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnLevelPermissionRules(java.util.Collection)} or * {@link #withColumnLevelPermissionRules(java.util.Collection)} if you want to override the existing values. *
* * @param columnLevelPermissionRules * A set of one or more definitions of a * ColumnLevelPermissionRule
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataSetRequest withColumnLevelPermissionRules(ColumnLevelPermissionRule... columnLevelPermissionRules) {
if (this.columnLevelPermissionRules == null) {
setColumnLevelPermissionRules(new java.util.ArrayList
* A set of one or more definitions of a
* ColumnLevelPermissionRule
* .
*
ColumnLevelPermissionRule
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataSetRequest withColumnLevelPermissionRules(java.util.Collection* Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. *
* * @return Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. */ public java.util.List* Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. */ public void setTags(java.util.Collection* Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withTags(java.util.Collection* The parameter declarations of the dataset. *
* * @return The parameter declarations of the dataset. */ public java.util.List* The parameter declarations of the dataset. *
* * @param datasetParameters * The parameter declarations of the dataset. */ public void setDatasetParameters(java.util.Collection* The parameter declarations of the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDatasetParameters(java.util.Collection)} or {@link #withDatasetParameters(java.util.Collection)} if * you want to override the existing values. *
* * @param datasetParameters * The parameter declarations of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withDatasetParameters(DatasetParameter... datasetParameters) { if (this.datasetParameters == null) { setDatasetParameters(new java.util.ArrayList* The parameter declarations of the dataset. *
* * @param datasetParameters * The parameter declarations of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withDatasetParameters(java.util.Collection