/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace AuditManager { namespace Model { /** */ class UpdateAssessmentControlRequest : public AuditManagerRequest { public: AWS_AUDITMANAGER_API UpdateAssessmentControlRequest(); // 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 "UpdateAssessmentControl"; } AWS_AUDITMANAGER_API Aws::String SerializePayload() const override; /** *

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The unique identifier for the control set.

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

The unique identifier for the control set.

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

The unique identifier for the control.

*/ inline const Aws::String& GetControlId() const{ return m_controlId; } /** *

The unique identifier for the control.

*/ inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; } /** *

The unique identifier for the control.

*/ inline void SetControlId(const Aws::String& value) { m_controlIdHasBeenSet = true; m_controlId = value; } /** *

The unique identifier for the control.

*/ inline void SetControlId(Aws::String&& value) { m_controlIdHasBeenSet = true; m_controlId = std::move(value); } /** *

The unique identifier for the control.

*/ inline void SetControlId(const char* value) { m_controlIdHasBeenSet = true; m_controlId.assign(value); } /** *

The unique identifier for the control.

*/ inline UpdateAssessmentControlRequest& WithControlId(const Aws::String& value) { SetControlId(value); return *this;} /** *

The unique identifier for the control.

*/ inline UpdateAssessmentControlRequest& WithControlId(Aws::String&& value) { SetControlId(std::move(value)); return *this;} /** *

The unique identifier for the control.

*/ inline UpdateAssessmentControlRequest& WithControlId(const char* value) { SetControlId(value); return *this;} /** *

The status of the control.

*/ inline const ControlStatus& GetControlStatus() const{ return m_controlStatus; } /** *

The status of the control.

*/ inline bool ControlStatusHasBeenSet() const { return m_controlStatusHasBeenSet; } /** *

The status of the control.

*/ inline void SetControlStatus(const ControlStatus& value) { m_controlStatusHasBeenSet = true; m_controlStatus = value; } /** *

The status of the control.

*/ inline void SetControlStatus(ControlStatus&& value) { m_controlStatusHasBeenSet = true; m_controlStatus = std::move(value); } /** *

The status of the control.

*/ inline UpdateAssessmentControlRequest& WithControlStatus(const ControlStatus& value) { SetControlStatus(value); return *this;} /** *

The status of the control.

*/ inline UpdateAssessmentControlRequest& WithControlStatus(ControlStatus&& value) { SetControlStatus(std::move(value)); return *this;} /** *

The comment body text for the control.

*/ inline const Aws::String& GetCommentBody() const{ return m_commentBody; } /** *

The comment body text for the control.

*/ inline bool CommentBodyHasBeenSet() const { return m_commentBodyHasBeenSet; } /** *

The comment body text for the control.

*/ inline void SetCommentBody(const Aws::String& value) { m_commentBodyHasBeenSet = true; m_commentBody = value; } /** *

The comment body text for the control.

*/ inline void SetCommentBody(Aws::String&& value) { m_commentBodyHasBeenSet = true; m_commentBody = std::move(value); } /** *

The comment body text for the control.

*/ inline void SetCommentBody(const char* value) { m_commentBodyHasBeenSet = true; m_commentBody.assign(value); } /** *

The comment body text for the control.

*/ inline UpdateAssessmentControlRequest& WithCommentBody(const Aws::String& value) { SetCommentBody(value); return *this;} /** *

The comment body text for the control.

*/ inline UpdateAssessmentControlRequest& WithCommentBody(Aws::String&& value) { SetCommentBody(std::move(value)); return *this;} /** *

The comment body text for the control.

*/ inline UpdateAssessmentControlRequest& WithCommentBody(const char* value) { SetCommentBody(value); return *this;} private: Aws::String m_assessmentId; bool m_assessmentIdHasBeenSet = false; Aws::String m_controlSetId; bool m_controlSetIdHasBeenSet = false; Aws::String m_controlId; bool m_controlIdHasBeenSet = false; ControlStatus m_controlStatus; bool m_controlStatusHasBeenSet = false; Aws::String m_commentBody; bool m_commentBodyHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws