/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace QuickSight { namespace Model { /** */ class CreateIAMPolicyAssignmentRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API CreateIAMPolicyAssignmentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateIAMPolicyAssignment"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The ID of the Amazon Web Services account where you want to assign an IAM * policy to Amazon QuickSight users or groups.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The name of the assignment, also called a rule. The name must be unique * within the Amazon Web Services account.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

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

The status of the assignment. Possible values are as follows:

  • *

    ENABLED - Anything specified in this assignment is used when * creating the data source.

  • DISABLED - This * assignment isn't used when creating the data source.

  • * DRAFT - This assignment is an unfinished draft and isn't used when * creating the data source.

*/ inline CreateIAMPolicyAssignmentRequest& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;} /** *

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups * specified in this assignment.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The Amazon QuickSight users, groups, or both that you want to assign the * policy to.

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

The namespace that contains the assignment.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace that contains the assignment.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace that contains the assignment.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace that contains the assignment.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace that contains the assignment.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace that contains the assignment.

*/ inline CreateIAMPolicyAssignmentRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace that contains the assignment.

*/ inline CreateIAMPolicyAssignmentRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace that contains the assignment.

*/ inline CreateIAMPolicyAssignmentRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_assignmentName; bool m_assignmentNameHasBeenSet = false; AssignmentStatus m_assignmentStatus; bool m_assignmentStatusHasBeenSet = false; Aws::String m_policyArn; bool m_policyArnHasBeenSet = false; Aws::Map> m_identities; bool m_identitiesHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws