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

An Identity and Access Management (IAM) policy assignment.

See * Also:

AWS * API Reference

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

The Amazon Web Services account ID.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The Amazon Web Services account ID.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The Amazon Web Services account ID.

*/ inline IAMPolicyAssignment& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline IAMPolicyAssignment& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline IAMPolicyAssignment& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

Assignment ID.

*/ inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; } /** *

Assignment ID.

*/ inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; } /** *

Assignment ID.

*/ inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; } /** *

Assignment ID.

*/ inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); } /** *

Assignment ID.

*/ inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); } /** *

Assignment ID.

*/ inline IAMPolicyAssignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;} /** *

Assignment ID.

*/ inline IAMPolicyAssignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;} /** *

Assignment ID.

*/ inline IAMPolicyAssignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;} /** *

Assignment name.

*/ inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; } /** *

Assignment name.

*/ inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; } /** *

Assignment name.

*/ inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; } /** *

Assignment name.

*/ inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); } /** *

Assignment name.

*/ inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); } /** *

Assignment name.

*/ inline IAMPolicyAssignment& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;} /** *

Assignment name.

*/ inline IAMPolicyAssignment& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;} /** *

Assignment name.

*/ inline IAMPolicyAssignment& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;} /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline const Aws::String& GetPolicyArn() const{ return m_policyArn; } /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; } /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline IAMPolicyAssignment& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline IAMPolicyAssignment& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the IAM policy.

*/ inline IAMPolicyAssignment& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;} /** *

Identities.

*/ inline const Aws::Map>& GetIdentities() const{ return m_identities; } /** *

Identities.

*/ inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; } /** *

Identities.

*/ inline void SetIdentities(const Aws::Map>& value) { m_identitiesHasBeenSet = true; m_identities = value; } /** *

Identities.

*/ inline void SetIdentities(Aws::Map>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); } /** *

Identities.

*/ inline IAMPolicyAssignment& WithIdentities(const Aws::Map>& value) { SetIdentities(value); return *this;} /** *

Identities.

*/ inline IAMPolicyAssignment& WithIdentities(Aws::Map>&& value) { SetIdentities(std::move(value)); return *this;} /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, const Aws::Vector& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; } /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, const Aws::Vector& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; } /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, Aws::Vector&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; } /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, Aws::Vector&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; } /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(const char* key, Aws::Vector&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; } /** *

Identities.

*/ inline IAMPolicyAssignment& AddIdentities(const char* key, const Aws::Vector& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; } /** *

Assignment status.

*/ inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; } /** *

Assignment status.

*/ inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; } /** *

Assignment status.

*/ inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; } /** *

Assignment status.

*/ inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); } /** *

Assignment status.

*/ inline IAMPolicyAssignment& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;} /** *

Assignment status.

*/ inline IAMPolicyAssignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_assignmentId; bool m_assignmentIdHasBeenSet = false; Aws::String m_assignmentName; bool m_assignmentNameHasBeenSet = false; Aws::String m_policyArn; bool m_policyArnHasBeenSet = false; Aws::Map> m_identities; bool m_identitiesHasBeenSet = false; AssignmentStatus m_assignmentStatus; bool m_assignmentStatusHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws