/** * 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 UpdateTemplatePermissionsResult { public: AWS_QUICKSIGHT_API UpdateTemplatePermissionsResult(); AWS_QUICKSIGHT_API UpdateTemplatePermissionsResult(const Aws::AmazonWebServiceResult& result); AWS_QUICKSIGHT_API UpdateTemplatePermissionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID for the template.

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

The ID for the template.

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

The ID for the template.

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

The ID for the template.

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

The ID for the template.

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

The ID for the template.

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

The ID for the template.

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

The Amazon Resource Name (ARN) of the template.

*/ inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } /** *

The Amazon Resource Name (ARN) of the template.

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

The Amazon Resource Name (ARN) of the template.

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

The Amazon Resource Name (ARN) of the template.

*/ inline void SetTemplateArn(const char* value) { m_templateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline UpdateTemplatePermissionsResult& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline UpdateTemplatePermissionsResult& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline UpdateTemplatePermissionsResult& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateTemplatePermissionsResult& 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 UpdateTemplatePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateTemplatePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateTemplatePermissionsResult& 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 UpdateTemplatePermissionsResult& WithStatus(int value) { SetStatus(value); return *this;} private: Aws::String m_templateId; Aws::String m_templateArn; Aws::Vector m_permissions; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws