/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An Identity and Access Management (IAM) policy assignment.See
* Also:
AWS
* API Reference
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::MapIdentities.
*/ inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; } /** *Identities.
*/ inline void SetIdentities(const Aws::MapIdentities.
*/ inline void SetIdentities(Aws::MapIdentities.
*/ inline IAMPolicyAssignment& WithIdentities(const Aws::MapIdentities.
*/ inline IAMPolicyAssignment& WithIdentities(Aws::MapIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, const Aws::VectorIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, const Aws::VectorIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, Aws::VectorIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, Aws::VectorIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(const char* key, Aws::VectorIdentities.
*/ inline IAMPolicyAssignment& AddIdentities(const char* key, const Aws::VectorAssignment 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