/** * 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 AuditManager { namespace Model { /** */ class CreateAssessmentReportRequest : public AuditManagerRequest { public: AWS_AUDITMANAGER_API CreateAssessmentReportRequest(); // 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 "CreateAssessmentReport"; } AWS_AUDITMANAGER_API Aws::String SerializePayload() const override; /** *

The name of the new assessment report.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new assessment report.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new assessment report.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the new assessment report.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the new assessment report.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the new assessment report.

*/ inline CreateAssessmentReportRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new assessment report.

*/ inline CreateAssessmentReportRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the new assessment report.

*/ inline CreateAssessmentReportRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the assessment report.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the assessment report.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the assessment report.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the assessment report.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the assessment report.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the assessment report.

*/ inline CreateAssessmentReportRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the assessment report.

*/ inline CreateAssessmentReportRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the assessment report.

*/ inline CreateAssessmentReportRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

The identifier for the assessment.

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

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; } /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; } /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; } /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); } /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); } /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline CreateAssessmentReportRequest& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;} /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline CreateAssessmentReportRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;} /** *

A SQL statement that represents an evidence finder query.

Provide this * parameter when you want to generate an assessment report from the results of an * evidence finder search query. When you use this parameter, Audit Manager * generates a one-time report using only the evidence from the query output. This * report does not include any assessment evidence that was manually added * to a report using the console, or associated * with a report using the API.

To use this parameter, the enablementStatus * of evidence finder must be ENABLED.

For examples and help * resolving queryStatement validation exceptions, see Troubleshooting * evidence finder issues in the Audit Manager User Guide.

*/ inline CreateAssessmentReportRequest& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_assessmentId; bool m_assessmentIdHasBeenSet = false; Aws::String m_queryStatement; bool m_queryStatementHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws