/* * 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 UpdateFolderPermissionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID for the Amazon Web Services account that contains the folder to update. *
*/ private String awsAccountId; /** ** The ID of the folder. *
*/ private String folderId; /** ** The permissions that you want to grant on a resource. *
*/ private java.util.List* The permissions that you want to revoke from a resource. *
*/ private java.util.List* The ID for the Amazon Web Services account that contains the folder to update. *
* * @param awsAccountId * The ID for the Amazon Web Services account that contains the folder to update. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID for the Amazon Web Services account that contains the folder to update. *
* * @return The ID for the Amazon Web Services account that contains the folder to update. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID for the Amazon Web Services account that contains the folder to update. *
* * @param awsAccountId * The ID for the Amazon Web Services account that contains the folder to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID of the folder. *
* * @param folderId * The ID of the folder. */ public void setFolderId(String folderId) { this.folderId = folderId; } /** ** The ID of the folder. *
* * @return The ID of the folder. */ public String getFolderId() { return this.folderId; } /** ** The ID of the folder. *
* * @param folderId * The ID of the folder. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withFolderId(String folderId) { setFolderId(folderId); return this; } /** ** The permissions that you want to grant on a resource. *
* * @return The permissions that you want to grant on a resource. */ public java.util.List* The permissions that you want to grant on a resource. *
* * @param grantPermissions * The permissions that you want to grant on a resource. */ public void setGrantPermissions(java.util.Collection* The permissions that you want to grant on a resource. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGrantPermissions(java.util.Collection)} or {@link #withGrantPermissions(java.util.Collection)} if you * want to override the existing values. *
* * @param grantPermissions * The permissions that you want to grant on a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withGrantPermissions(ResourcePermission... grantPermissions) { if (this.grantPermissions == null) { setGrantPermissions(new java.util.ArrayList* The permissions that you want to grant on a resource. *
* * @param grantPermissions * The permissions that you want to grant on a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withGrantPermissions(java.util.Collection* The permissions that you want to revoke from a resource. *
* * @return The permissions that you want to revoke from a resource. */ public java.util.List* The permissions that you want to revoke from a resource. *
* * @param revokePermissions * The permissions that you want to revoke from a resource. */ public void setRevokePermissions(java.util.Collection* The permissions that you want to revoke from a resource. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRevokePermissions(java.util.Collection)} or {@link #withRevokePermissions(java.util.Collection)} if * you want to override the existing values. *
* * @param revokePermissions * The permissions that you want to revoke from a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withRevokePermissions(ResourcePermission... revokePermissions) { if (this.revokePermissions == null) { setRevokePermissions(new java.util.ArrayList* The permissions that you want to revoke from a resource. *
* * @param revokePermissions * The permissions that you want to revoke from a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFolderPermissionsRequest withRevokePermissions(java.util.Collection