@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ColumnLevelPermissionRule extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ColumnLevelPermissionRule() |
Modifier and Type | Method and Description |
---|---|
ColumnLevelPermissionRule |
clone() |
boolean |
equals(Object obj) |
List<String> |
getColumnNames()
An array of column names.
|
List<String> |
getPrincipals()
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setColumnNames(Collection<String> columnNames)
An array of column names.
|
void |
setPrincipals(Collection<String> principals)
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
|
String |
toString()
Returns a string representation of this object.
|
ColumnLevelPermissionRule |
withColumnNames(Collection<String> columnNames)
An array of column names.
|
ColumnLevelPermissionRule |
withColumnNames(String... columnNames)
An array of column names.
|
ColumnLevelPermissionRule |
withPrincipals(Collection<String> principals)
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
|
ColumnLevelPermissionRule |
withPrincipals(String... principals)
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
|
public List<String> getPrincipals()
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
public void setPrincipals(Collection<String> principals)
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
principals
- An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.public ColumnLevelPermissionRule withPrincipals(String... principals)
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
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.public ColumnLevelPermissionRule withPrincipals(Collection<String> principals)
An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
principals
- An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.public List<String> getColumnNames()
An array of column names.
public void setColumnNames(Collection<String> columnNames)
An array of column names.
columnNames
- An array of column names.public ColumnLevelPermissionRule withColumnNames(String... columnNames)
An array of column names.
NOTE: This method appends the values to the existing list (if any). Use
setColumnNames(java.util.Collection)
or withColumnNames(java.util.Collection)
if you want to
override the existing values.
columnNames
- An array of column names.public ColumnLevelPermissionRule withColumnNames(Collection<String> columnNames)
An array of column names.
columnNames
- An array of column names.public String toString()
toString
in class Object
Object.toString()
public ColumnLevelPermissionRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.