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

The wrapper that contains the Audit Manager role information of the current * user. This includes the role type and IAM Amazon Resource Name (ARN). *

See Also:

AWS * API Reference

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

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline const RoleType& GetRoleType() const{ return m_roleType; } /** *

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; } /** *

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline void SetRoleType(const RoleType& value) { m_roleTypeHasBeenSet = true; m_roleType = value; } /** *

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline void SetRoleType(RoleType&& value) { m_roleTypeHasBeenSet = true; m_roleType = std::move(value); } /** *

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline Role& WithRoleType(const RoleType& value) { SetRoleType(value); return *this;} /** *

The type of customer persona.

In * CreateAssessment, roleType can only be * PROCESS_OWNER.

In UpdateSettings, * roleType can only be PROCESS_OWNER.

In * BatchCreateDelegationByAssessment, roleType can only * be RESOURCE_OWNER.

*/ inline Role& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline Role& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline Role& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline Role& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: RoleType m_roleType; bool m_roleTypeHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws