188 lines
7.8 KiB
C++
188 lines
7.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/quicksight/QuickSight_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace QuickSight
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Permission for the resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ResourcePermission">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_QUICKSIGHT_API ResourcePermission
|
|
{
|
|
public:
|
|
ResourcePermission();
|
|
ResourcePermission(Aws::Utils::Json::JsonView jsonValue);
|
|
ResourcePermission& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetPrincipal() const{ return m_principal; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline ResourcePermission& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline ResourcePermission& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the principal. This can be one of the
|
|
* following:</p> <ul> <li> <p>The ARN of an Amazon QuickSight user, group, or
|
|
* namespace. (This is most common.)</p> </li> <li> <p>The ARN of an AWS account
|
|
* root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to
|
|
* share resources (templates) across AWS accounts. (This is less common.) </p>
|
|
* </li> </ul>
|
|
*/
|
|
inline ResourcePermission& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline ResourcePermission& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline ResourcePermission& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline ResourcePermission& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline ResourcePermission& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The IAM action to grant or revoke permissions on, for example
|
|
* <code>"quicksight:DescribeDashboard"</code>.</p>
|
|
*/
|
|
inline ResourcePermission& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_principal;
|
|
bool m_principalHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_actions;
|
|
bool m_actionsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QuickSight
|
|
} // namespace Aws
|