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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

*/ 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 analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the Amazon Web Services account that contains the analysis whose * permissions you're updating. You must be using the Amazon Web Services account * that the analysis is in.

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

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline const Aws::String& GetAnalysisId() const{ return m_analysisId; } /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; } /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; } /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); } /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); } /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;} /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline UpdateAnalysisPermissionsRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;} /** *

The ID of the analysis whose permissions you're updating. The ID is part of * the analysis URL.

*/ inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;} /** *

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to add and the principal to add * them to.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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

A structure that describes the permissions to remove and the principal to * remove them from.

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