134 lines
4.0 KiB
C++
134 lines
4.0 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 <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace QuickSight
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The active AWS Identity and Access Management (IAM) policy
|
|
* assignment.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ActiveIAMPolicyAssignment">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_QUICKSIGHT_API ActiveIAMPolicyAssignment
|
|
{
|
|
public:
|
|
ActiveIAMPolicyAssignment();
|
|
ActiveIAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue);
|
|
ActiveIAMPolicyAssignment& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A name for the IAM policy assignment.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
*/
|
|
inline ActiveIAMPolicyAssignment& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_assignmentName;
|
|
bool m_assignmentNameHasBeenSet;
|
|
|
|
Aws::String m_policyArn;
|
|
bool m_policyArnHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QuickSight
|
|
} // namespace Aws
|