/* * 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 UpdateTopicPermissionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Amazon Web Services account that contains the topic that you want to update the permissions for. *
*/ private String awsAccountId; /** ** The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web * Services account. *
*/ private String topicId; /** ** The resource permissions that you want to grant to the topic. *
*/ private java.util.List* The resource permissions that you want to revoke from the topic. *
*/ private java.util.List* The ID of the Amazon Web Services account that contains the topic that you want to update the permissions for. *
* * @param awsAccountId * The ID of the Amazon Web Services account that contains the topic that you want to update the permissions * for. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID of the Amazon Web Services account that contains the topic that you want to update the permissions for. *
* * @return The ID of the Amazon Web Services account that contains the topic that you want to update the permissions * for. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID of the Amazon Web Services account that contains the topic that you want to update the permissions for. *
* * @param awsAccountId * The ID of the Amazon Web Services account that contains the topic that you want to update the permissions * for. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTopicPermissionsRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web * Services account. *
* * @param topicId * The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public void setTopicId(String topicId) { this.topicId = topicId; } /** ** The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web * Services account. *
* * @return The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public String getTopicId() { return this.topicId; } /** ** The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web * Services account. *
* * @param topicId * The ID of the topic that you want to modify. 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 UpdateTopicPermissionsRequest withTopicId(String topicId) { setTopicId(topicId); return this; } /** ** The resource permissions that you want to grant to the topic. *
* * @return The resource permissions that you want to grant to the topic. */ public java.util.List* The resource permissions that you want to grant to the topic. *
* * @param grantPermissions * The resource permissions that you want to grant to the topic. */ public void setGrantPermissions(java.util.Collection* The resource permissions that you want to grant to the topic. *
** 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 resource permissions that you want to grant to the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTopicPermissionsRequest withGrantPermissions(ResourcePermission... grantPermissions) { if (this.grantPermissions == null) { setGrantPermissions(new java.util.ArrayList* The resource permissions that you want to grant to the topic. *
* * @param grantPermissions * The resource permissions that you want to grant to the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTopicPermissionsRequest withGrantPermissions(java.util.Collection* The resource permissions that you want to revoke from the topic. *
* * @return The resource permissions that you want to revoke from the topic. */ public java.util.List* The resource permissions that you want to revoke from the topic. *
* * @param revokePermissions * The resource permissions that you want to revoke from the topic. */ public void setRevokePermissions(java.util.Collection* The resource permissions that you want to revoke from the topic. *
** 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 resource permissions that you want to revoke from the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTopicPermissionsRequest withRevokePermissions(ResourcePermission... revokePermissions) { if (this.revokePermissions == null) { setRevokePermissions(new java.util.ArrayList* The resource permissions that you want to revoke from the topic. *
* * @param revokePermissions * The resource permissions that you want to revoke from the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTopicPermissionsRequest withRevokePermissions(java.util.Collection