/** * 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 UpdateTemplatePermissionsRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API UpdateTemplatePermissionsRequest(); // 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 "UpdateTemplatePermissions"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account that contains the template.

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

The ID of the Amazon Web Services account that contains the template.

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

The ID of the Amazon Web Services account that contains the template.

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

The ID of the Amazon Web Services account that contains the template.

*/ 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 template.

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

The ID of the Amazon Web Services account that contains the template.

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

The ID of the Amazon Web Services account that contains the template.

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

The ID of the Amazon Web Services account that contains the template.

*/ inline UpdateTemplatePermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The ID for the template.

*/ inline const Aws::String& GetTemplateId() const{ return m_templateId; } /** *

The ID for the template.

*/ inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; } /** *

The ID for the template.

*/ inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; } /** *

The ID for the template.

*/ inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); } /** *

The ID for the template.

*/ inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); } /** *

The ID for the template.

*/ inline UpdateTemplatePermissionsRequest& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;} /** *

The ID for the template.

*/ inline UpdateTemplatePermissionsRequest& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;} /** *

The ID for the template.

*/ inline UpdateTemplatePermissionsRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;} /** *

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be granted on the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

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

A list of resource permissions to be revoked from the template.

*/ inline UpdateTemplatePermissionsRequest& 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_templateId; bool m_templateIdHasBeenSet = false; Aws::Vector m_grantPermissions; bool m_grantPermissionsHasBeenSet = false; Aws::Vector m_revokePermissions; bool m_revokePermissionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws