/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { class UpdateAnalysisPermissionsResult { public: AWS_QUICKSIGHT_API UpdateAnalysisPermissionsResult(); AWS_QUICKSIGHT_API UpdateAnalysisPermissionsResult(const Aws::AmazonWebServiceResult& result); AWS_QUICKSIGHT_API UpdateAnalysisPermissionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline const Aws::String& GetAnalysisArn() const{ return m_analysisArn; } /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline void SetAnalysisArn(const Aws::String& value) { m_analysisArn = value; } /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline void SetAnalysisArn(Aws::String&& value) { m_analysisArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline void SetAnalysisArn(const char* value) { m_analysisArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline UpdateAnalysisPermissionsResult& WithAnalysisArn(const Aws::String& value) { SetAnalysisArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline UpdateAnalysisPermissionsResult& WithAnalysisArn(Aws::String&& value) { SetAnalysisArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the analysis that you updated.

*/ inline UpdateAnalysisPermissionsResult& WithAnalysisArn(const char* value) { SetAnalysisArn(value); return *this;} /** *

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

The ID of the analysis that you updated permissions for.

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

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissions = value; } /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissions = std::move(value); } /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline UpdateAnalysisPermissionsResult& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline UpdateAnalysisPermissionsResult& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline UpdateAnalysisPermissionsResult& AddPermissions(const ResourcePermission& value) { m_permissions.push_back(value); return *this; } /** *

A structure that describes the principals and the resource-level permissions * on an analysis.

*/ inline UpdateAnalysisPermissionsResult& AddPermissions(ResourcePermission&& value) { m_permissions.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateAnalysisPermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateAnalysisPermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateAnalysisPermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The HTTP status of the request.

*/ inline int GetStatus() const{ return m_status; } /** *

The HTTP status of the request.

*/ inline void SetStatus(int value) { m_status = value; } /** *

The HTTP status of the request.

*/ inline UpdateAnalysisPermissionsResult& WithStatus(int value) { SetStatus(value); return *this;} private: Aws::String m_analysisArn; Aws::String m_analysisId; Aws::Vector m_permissions; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws