/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

A structure that contains the configuration of a shareable link to the * dashboard.

See Also:

AWS * API Reference

*/ class LinkSharingConfiguration { public: AWS_QUICKSIGHT_API LinkSharingConfiguration(); AWS_QUICKSIGHT_API LinkSharingConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API LinkSharingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A structure that contains the permissions of a shareable link.

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

A structure that contains the permissions of a shareable link.

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

A structure that contains the permissions of a shareable link.

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

A structure that contains the permissions of a shareable link.

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

A structure that contains the permissions of a shareable link.

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

A structure that contains the permissions of a shareable link.

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

A structure that contains the permissions of a shareable link.

*/ inline LinkSharingConfiguration& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

A structure that contains the permissions of a shareable link.

*/ inline LinkSharingConfiguration& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } private: Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws