/** * 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 { /** *

A collection of attributes that's used to create a delegation for an * assessment in Audit Manager.

See Also:

AWS * API Reference

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

A comment that's related to the delegation request.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A comment that's related to the delegation request.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A comment that's related to the delegation request.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A comment that's related to the delegation request.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A comment that's related to the delegation request.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A comment that's related to the delegation request.

*/ inline CreateDelegationRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A comment that's related to the delegation request.

*/ inline CreateDelegationRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A comment that's related to the delegation request.

*/ inline CreateDelegationRequest& WithComment(const char* value) { SetComment(value); return *this;} /** *

The unique identifier for the control set.

*/ inline const Aws::String& GetControlSetId() const{ return m_controlSetId; } /** *

The unique identifier for the control set.

*/ inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; } /** *

The unique identifier for the control set.

*/ inline void SetControlSetId(const Aws::String& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = value; } /** *

The unique identifier for the control set.

*/ inline void SetControlSetId(Aws::String&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::move(value); } /** *

The unique identifier for the control set.

*/ inline void SetControlSetId(const char* value) { m_controlSetIdHasBeenSet = true; m_controlSetId.assign(value); } /** *

The unique identifier for the control set.

*/ inline CreateDelegationRequest& WithControlSetId(const Aws::String& value) { SetControlSetId(value); return *this;} /** *

The unique identifier for the control set.

*/ inline CreateDelegationRequest& WithControlSetId(Aws::String&& value) { SetControlSetId(std::move(value)); return *this;} /** *

The unique identifier for the control set.

*/ inline CreateDelegationRequest& WithControlSetId(const char* value) { SetControlSetId(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 CreateDelegationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

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

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

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

*/ inline CreateDelegationRequest& WithRoleArn(const char* value) { SetRoleArn(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 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 CreateDelegationRequest& 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 CreateDelegationRequest& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;} private: Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_controlSetId; bool m_controlSetIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; RoleType m_roleType; bool m_roleTypeHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws