/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace QuickSight { namespace Model { /** */ class UpdateTopicPermissionsRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API UpdateTopicPermissionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateTopicPermissions"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline UpdateTopicPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline UpdateTopicPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that contains the topic that you * want to update the permissions for.

*/ inline UpdateTopicPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); 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.

*/ inline const Aws::String& GetTopicId() const{ return m_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.

*/ inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; } /** *

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.

*/ inline void SetTopicId(const Aws::String& value) { m_topicIdHasBeenSet = true; m_topicId = value; } /** *

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.

*/ inline void SetTopicId(Aws::String&& value) { m_topicIdHasBeenSet = true; m_topicId = std::move(value); } /** *

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.

*/ inline void SetTopicId(const char* value) { m_topicIdHasBeenSet = true; m_topicId.assign(value); } /** *

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.

*/ inline UpdateTopicPermissionsRequest& WithTopicId(const Aws::String& value) { SetTopicId(value); 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.

*/ inline UpdateTopicPermissionsRequest& WithTopicId(Aws::String&& value) { SetTopicId(std::move(value)); 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.

*/ inline UpdateTopicPermissionsRequest& WithTopicId(const char* value) { SetTopicId(value); return *this;} /** *

The resource permissions that you want to grant to the topic.

*/ inline const Aws::Vector& GetGrantPermissions() const{ return m_grantPermissions; } /** *

The resource permissions that you want to grant to the topic.

*/ inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; } /** *

The resource permissions that you want to grant to the topic.

*/ inline void SetGrantPermissions(const Aws::Vector& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; } /** *

The resource permissions that you want to grant to the topic.

*/ inline void SetGrantPermissions(Aws::Vector&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); } /** *

The resource permissions that you want to grant to the topic.

*/ inline UpdateTopicPermissionsRequest& WithGrantPermissions(const Aws::Vector& value) { SetGrantPermissions(value); return *this;} /** *

The resource permissions that you want to grant to the topic.

*/ inline UpdateTopicPermissionsRequest& WithGrantPermissions(Aws::Vector&& value) { SetGrantPermissions(std::move(value)); return *this;} /** *

The resource permissions that you want to grant to the topic.

*/ inline UpdateTopicPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; } /** *

The resource permissions that you want to grant to the topic.

*/ inline UpdateTopicPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; } /** *

The resource permissions that you want to revoke from the topic.

*/ inline const Aws::Vector& GetRevokePermissions() const{ return m_revokePermissions; } /** *

The resource permissions that you want to revoke from the topic.

*/ inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; } /** *

The resource permissions that you want to revoke from the topic.

*/ inline void SetRevokePermissions(const Aws::Vector& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; } /** *

The resource permissions that you want to revoke from the topic.

*/ inline void SetRevokePermissions(Aws::Vector&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); } /** *

The resource permissions that you want to revoke from the topic.

*/ inline UpdateTopicPermissionsRequest& WithRevokePermissions(const Aws::Vector& value) { SetRevokePermissions(value); return *this;} /** *

The resource permissions that you want to revoke from the topic.

*/ inline UpdateTopicPermissionsRequest& WithRevokePermissions(Aws::Vector&& value) { SetRevokePermissions(std::move(value)); return *this;} /** *

The resource permissions that you want to revoke from the topic.

*/ inline UpdateTopicPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; } /** *

The resource permissions that you want to revoke from the topic.

*/ inline UpdateTopicPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; } private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_topicId; bool m_topicIdHasBeenSet = false; Aws::Vector m_grantPermissions; bool m_grantPermissionsHasBeenSet = false; Aws::Vector m_revokePermissions; bool m_revokePermissionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws