/* * 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; /** *
* Permission for the resource. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourcePermission implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the principal. This can be one of the following: *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or * theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option * only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The IAM action to grant or revoke permissions on. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the principal. This can be one of the following: *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or * theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option * only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, * template, or theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this * option only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The Amazon Resource Name (ARN) of the principal. This can be one of the following: *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or * theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option * only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, * template, or theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this * option only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The Amazon Resource Name (ARN) of the principal. This can be one of the following: *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or * theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option * only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.) *
** The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, * template, or theme. (This is common.) *
** The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this * option only to share resources (templates) across Amazon Web Services accounts. (This is less common.) *
** The IAM action to grant or revoke permissions on. *
* * @return The IAM action to grant or revoke permissions on. */ public java.util.List* The IAM action to grant or revoke permissions on. *
* * @param actions * The IAM action to grant or revoke permissions on. */ public void setActions(java.util.Collection* The IAM action to grant or revoke permissions on. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * The IAM action to grant or revoke permissions on. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourcePermission withActions(String... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* The IAM action to grant or revoke permissions on. *
* * @param actions * The IAM action to grant or revoke permissions on. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourcePermission withActions(java.util.Collection