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

The unique identifier for the assessment.

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

The unique identifier for the assessment.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The name of the assessment to be updated.

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

The description of the assessment.

*/ inline const Aws::String& GetAssessmentDescription() const{ return m_assessmentDescription; } /** *

The description of the assessment.

*/ inline bool AssessmentDescriptionHasBeenSet() const { return m_assessmentDescriptionHasBeenSet; } /** *

The description of the assessment.

*/ inline void SetAssessmentDescription(const Aws::String& value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription = value; } /** *

The description of the assessment.

*/ inline void SetAssessmentDescription(Aws::String&& value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription = std::move(value); } /** *

The description of the assessment.

*/ inline void SetAssessmentDescription(const char* value) { m_assessmentDescriptionHasBeenSet = true; m_assessmentDescription.assign(value); } /** *

The description of the assessment.

*/ inline UpdateAssessmentRequest& WithAssessmentDescription(const Aws::String& value) { SetAssessmentDescription(value); return *this;} /** *

The description of the assessment.

*/ inline UpdateAssessmentRequest& WithAssessmentDescription(Aws::String&& value) { SetAssessmentDescription(std::move(value)); return *this;} /** *

The description of the assessment.

*/ inline UpdateAssessmentRequest& WithAssessmentDescription(const char* value) { SetAssessmentDescription(value); return *this;} /** *

The scope of the assessment.

*/ inline const Scope& GetScope() const{ return m_scope; } /** *

The scope of the assessment.

*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *

The scope of the assessment.

*/ inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *

The scope of the assessment.

*/ inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *

The scope of the assessment.

*/ inline UpdateAssessmentRequest& WithScope(const Scope& value) { SetScope(value); return *this;} /** *

The scope of the assessment.

*/ inline UpdateAssessmentRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;} /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const{ return m_assessmentReportsDestination; } /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; } /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline void SetAssessmentReportsDestination(const AssessmentReportsDestination& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = value; } /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline void SetAssessmentReportsDestination(AssessmentReportsDestination&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::move(value); } /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline UpdateAssessmentRequest& WithAssessmentReportsDestination(const AssessmentReportsDestination& value) { SetAssessmentReportsDestination(value); return *this;} /** *

The assessment report storage destination for the assessment that's being * updated.

*/ inline UpdateAssessmentRequest& WithAssessmentReportsDestination(AssessmentReportsDestination&& value) { SetAssessmentReportsDestination(std::move(value)); return *this;} /** *

The list of roles for the assessment.

*/ inline const Aws::Vector& GetRoles() const{ return m_roles; } /** *

The list of roles for the assessment.

*/ inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; } /** *

The list of roles for the assessment.

*/ inline void SetRoles(const Aws::Vector& value) { m_rolesHasBeenSet = true; m_roles = value; } /** *

The list of roles for the assessment.

*/ inline void SetRoles(Aws::Vector&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); } /** *

The list of roles for the assessment.

*/ inline UpdateAssessmentRequest& WithRoles(const Aws::Vector& value) { SetRoles(value); return *this;} /** *

The list of roles for the assessment.

*/ inline UpdateAssessmentRequest& WithRoles(Aws::Vector&& value) { SetRoles(std::move(value)); return *this;} /** *

The list of roles for the assessment.

*/ inline UpdateAssessmentRequest& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; } /** *

The list of roles for the assessment.

*/ inline UpdateAssessmentRequest& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; } private: Aws::String m_assessmentId; bool m_assessmentIdHasBeenSet = false; Aws::String m_assessmentName; bool m_assessmentNameHasBeenSet = false; Aws::String m_assessmentDescription; bool m_assessmentDescriptionHasBeenSet = false; Scope m_scope; bool m_scopeHasBeenSet = false; AssessmentReportsDestination m_assessmentReportsDestination; bool m_assessmentReportsDestinationHasBeenSet = false; Aws::Vector m_roles; bool m_rolesHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws