/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A rule defined to grant access on one or more restricted columns. Each dataset can have multiple rules. To create a * restricted column, you add it to one or more rules. Each rule must contain at least one column and at least one user * or group. To be able to see a restricted column, a user or group needs to be added to a rule for that column. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ColumnLevelPermissionRule implements Serializable, Cloneable, StructuredPojo { /** ** An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. *
*/ private java.util.List* An array of column names. *
*/ private java.util.List* An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. *
* * @return An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. */ public java.util.List* An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. *
* * @param principals * An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. */ public void setPrincipals(java.util.Collection* An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPrincipals(java.util.Collection)} or {@link #withPrincipals(java.util.Collection)} if you want to * override the existing values. *
* * @param principals * An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnLevelPermissionRule withPrincipals(String... principals) { if (this.principals == null) { setPrincipals(new java.util.ArrayList* An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. *
* * @param principals * An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnLevelPermissionRule withPrincipals(java.util.Collection* An array of column names. *
* * @return An array of column names. */ public java.util.List* An array of column names. *
* * @param columnNames * An array of column names. */ public void setColumnNames(java.util.Collection* An array of column names. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnNames(java.util.Collection)} or {@link #withColumnNames(java.util.Collection)} if you want to * override the existing values. *
* * @param columnNames * An array of column names. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnLevelPermissionRule withColumnNames(String... columnNames) { if (this.columnNames == null) { setColumnNames(new java.util.ArrayList* An array of column names. *
* * @param columnNames * An array of column names. * @return Returns a reference to this object so that method calls can be chained together. */ public ColumnLevelPermissionRule withColumnNames(java.util.Collection