/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

The assignment of a control set to a delegate for review.

See * Also:

AWS * API Reference

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

The unique identifier for the delegation.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the delegation.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the delegation.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the delegation.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the delegation.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the delegation.

*/ inline Delegation& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the delegation.

*/ inline Delegation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the delegation.

*/ inline Delegation& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the assessment that's associated with the delegation.

*/ inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; } /** *

The name of the assessment that's associated with the delegation.

*/ inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; } /** *

The name of the assessment that's associated with the delegation.

*/ inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; } /** *

The name of the assessment that's associated with the delegation.

*/ inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); } /** *

The name of the assessment that's associated with the delegation.

*/ inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); } /** *

The name of the assessment that's associated with the delegation.

*/ inline Delegation& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;} /** *

The name of the assessment that's associated with the delegation.

*/ inline Delegation& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;} /** *

The name of the assessment that's associated with the delegation.

*/ inline Delegation& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;} /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline const Aws::String& GetAssessmentId() const{ return m_assessmentId; } /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; } /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; } /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); } /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); } /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline Delegation& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;} /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline Delegation& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;} /** *

The identifier for the assessment that's associated with the delegation. *

*/ inline Delegation& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;} /** *

The status of the delegation.

*/ inline const DelegationStatus& GetStatus() const{ return m_status; } /** *

The status of the delegation.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the delegation.

*/ inline void SetStatus(const DelegationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the delegation.

*/ inline void SetStatus(DelegationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the delegation.

*/ inline Delegation& WithStatus(const DelegationStatus& value) { SetStatus(value); return *this;} /** *

The status of the delegation.

*/ inline Delegation& WithStatus(DelegationStatus&& value) { SetStatus(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 Delegation& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

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

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

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

*/ inline Delegation& 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 Delegation& 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 Delegation& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;} /** *

Specifies when the delegation was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

Specifies when the delegation was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

Specifies when the delegation was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

Specifies when the delegation was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

Specifies when the delegation was created.

*/ inline Delegation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

Specifies when the delegation was created.

*/ inline Delegation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

Specifies when the delegation was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; } /** *

Specifies when the delegation was last updated.

*/ inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; } /** *

Specifies when the delegation was last updated.

*/ inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; } /** *

Specifies when the delegation was last updated.

*/ inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); } /** *

Specifies when the delegation was last updated.

*/ inline Delegation& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

Specifies when the delegation was last updated.

*/ inline Delegation& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;} /** *

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

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

The identifier for the control set that's associated with the delegation. *

*/ inline Delegation& WithControlSetId(const char* value) { SetControlSetId(value); return *this;} /** *

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The comment that's related to the delegation.

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

The user or role that created the delegation.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

The user or role that created the delegation.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

The user or role that created the delegation.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

The user or role that created the delegation.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

The user or role that created the delegation.

*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *

The user or role that created the delegation.

*/ inline Delegation& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

The user or role that created the delegation.

*/ inline Delegation& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

The user or role that created the delegation.

*/ inline Delegation& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_assessmentName; bool m_assessmentNameHasBeenSet = false; Aws::String m_assessmentId; bool m_assessmentIdHasBeenSet = false; DelegationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; RoleType m_roleType; bool m_roleTypeHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdated; bool m_lastUpdatedHasBeenSet = false; Aws::String m_controlSetId; bool m_controlSetIdHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws