/** * 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 SSOAdmin { namespace Model { /** */ class CreateAccountAssignmentRequest : public SSOAdminRequest { public: AWS_SSOADMIN_API CreateAccountAssignmentRequest(); // 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 "CreateAccountAssignment"; } AWS_SSOADMIN_API Aws::String SerializePayload() const override; AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreateAccountAssignmentRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreateAccountAssignmentRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreateAccountAssignmentRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;} /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline const Aws::String& GetTargetId() const{ return m_targetId; } /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline CreateAccountAssignmentRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline CreateAccountAssignmentRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} /** *

TargetID is an AWS account identifier, typically a 10-12 digit string (For * example, 123456789012).

*/ inline CreateAccountAssignmentRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;} /** *

The entity type for which the assignment will be created.

*/ inline const TargetType& GetTargetType() const{ return m_targetType; } /** *

The entity type for which the assignment will be created.

*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *

The entity type for which the assignment will be created.

*/ inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *

The entity type for which the assignment will be created.

*/ inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *

The entity type for which the assignment will be created.

*/ inline CreateAccountAssignmentRequest& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;} /** *

The entity type for which the assignment will be created.

*/ inline CreateAccountAssignmentRequest& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;} /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; } /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; } /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; } /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); } /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); } /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline CreateAccountAssignmentRequest& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;} /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline CreateAccountAssignmentRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;} /** *

The ARN of the permission set that the admin wants to grant the principal * access to.

*/ inline CreateAccountAssignmentRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;} /** *

The entity type for which the assignment will be created.

*/ inline const PrincipalType& GetPrincipalType() const{ return m_principalType; } /** *

The entity type for which the assignment will be created.

*/ inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; } /** *

The entity type for which the assignment will be created.

*/ inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; } /** *

The entity type for which the assignment will be created.

*/ inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); } /** *

The entity type for which the assignment will be created.

*/ inline CreateAccountAssignmentRequest& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;} /** *

The entity type for which the assignment will be created.

*/ inline CreateAccountAssignmentRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;} /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline CreateAccountAssignmentRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline CreateAccountAssignmentRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *

An identifier for an object in IAM Identity Center, such as a user or group. * PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For * more information about PrincipalIds in IAM Identity Center, see the IAM Identity * Center Identity Store API Reference.

*/ inline CreateAccountAssignmentRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} private: Aws::String m_instanceArn; bool m_instanceArnHasBeenSet = false; Aws::String m_targetId; bool m_targetIdHasBeenSet = false; TargetType m_targetType; bool m_targetTypeHasBeenSet = false; Aws::String m_permissionSetArn; bool m_permissionSetArnHasBeenSet = false; PrincipalType m_principalType; bool m_principalTypeHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; }; } // namespace Model } // namespace SSOAdmin } // namespace Aws