This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-quicksight/include/aws/quicksight/model/IAMPolicyAssignment.h

323 lines
10 KiB
C
Raw Normal View History

/**
* 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/AWSMap.h>
#include <aws/quicksight/model/AssignmentStatus.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>An 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/IAMPolicyAssignment">AWS
* API Reference</a></p>
*/
class AWS_QUICKSIGHT_API IAMPolicyAssignment
{
public:
IAMPolicyAssignment();
IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue);
IAMPolicyAssignment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The AWS account ID.</p>
*/
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
/**
* <p>The AWS account ID.</p>
*/
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
/**
* <p>The AWS account ID.</p>
*/
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
/**
* <p>The AWS account ID.</p>
*/
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
/**
* <p>The AWS account ID.</p>
*/
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
/**
* <p>The AWS account ID.</p>
*/
inline IAMPolicyAssignment& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
/**
* <p>The AWS account ID.</p>
*/
inline IAMPolicyAssignment& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
/**
* <p>The AWS account ID.</p>
*/
inline IAMPolicyAssignment& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
/**
* <p>Assignment ID.</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p>Assignment ID.</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p>Assignment ID.</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p>Assignment ID.</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p>Assignment ID.</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p>Assignment ID.</p>
*/
inline IAMPolicyAssignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p>Assignment ID.</p>
*/
inline IAMPolicyAssignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p>Assignment ID.</p>
*/
inline IAMPolicyAssignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p>Assignment name.</p>
*/
inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
/**
* <p>Assignment name.</p>
*/
inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
/**
* <p>Assignment name.</p>
*/
inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
/**
* <p>Assignment name.</p>
*/
inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
/**
* <p>Assignment name.</p>
*/
inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
/**
* <p>Assignment name.</p>
*/
inline IAMPolicyAssignment& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
/**
* <p>Assignment name.</p>
*/
inline IAMPolicyAssignment& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
/**
* <p>Assignment name.</p>
*/
inline IAMPolicyAssignment& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline IAMPolicyAssignment& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline IAMPolicyAssignment& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM policy.</p>
*/
inline IAMPolicyAssignment& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
/**
* <p>Identities.</p>
*/
inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const{ return m_identities; }
/**
* <p>Identities.</p>
*/
inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
/**
* <p>Identities.</p>
*/
inline void SetIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_identitiesHasBeenSet = true; m_identities = value; }
/**
* <p>Identities.</p>
*/
inline void SetIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& WithIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetIdentities(value); return *this;}
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& WithIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetIdentities(std::move(value)); return *this;}
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(const char* key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
/**
* <p>Identities.</p>
*/
inline IAMPolicyAssignment& AddIdentities(const char* key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
/**
* <p>Assignment status.</p>
*/
inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
/**
* <p>Assignment status.</p>
*/
inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
/**
* <p>Assignment status.</p>
*/
inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
/**
* <p>Assignment status.</p>
*/
inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
/**
* <p>Assignment status.</p>
*/
inline IAMPolicyAssignment& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
/**
* <p>Assignment status.</p>
*/
inline IAMPolicyAssignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
private:
Aws::String m_awsAccountId;
bool m_awsAccountIdHasBeenSet;
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_assignmentName;
bool m_assignmentNameHasBeenSet;
Aws::String m_policyArn;
bool m_policyArnHasBeenSet;
Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_identities;
bool m_identitiesHasBeenSet;
AssignmentStatus m_assignmentStatus;
bool m_assignmentStatusHasBeenSet;
};
} // namespace Model
} // namespace QuickSight
} // namespace Aws