/** * 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 Inspector2 { namespace Model { /** */ class CreateFindingsReportRequest : public Inspector2Request { public: AWS_INSPECTOR2_API CreateFindingsReportRequest(); // 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 "CreateFindingsReport"; } AWS_INSPECTOR2_API Aws::String SerializePayload() const override; /** *

The filter criteria to apply to the results of the finding report.

*/ inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; } /** *

The filter criteria to apply to the results of the finding report.

*/ inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; } /** *

The filter criteria to apply to the results of the finding report.

*/ inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; } /** *

The filter criteria to apply to the results of the finding report.

*/ inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); } /** *

The filter criteria to apply to the results of the finding report.

*/ inline CreateFindingsReportRequest& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;} /** *

The filter criteria to apply to the results of the finding report.

*/ inline CreateFindingsReportRequest& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;} /** *

The format to generate the report in.

*/ inline const ReportFormat& GetReportFormat() const{ return m_reportFormat; } /** *

The format to generate the report in.

*/ inline bool ReportFormatHasBeenSet() const { return m_reportFormatHasBeenSet; } /** *

The format to generate the report in.

*/ inline void SetReportFormat(const ReportFormat& value) { m_reportFormatHasBeenSet = true; m_reportFormat = value; } /** *

The format to generate the report in.

*/ inline void SetReportFormat(ReportFormat&& value) { m_reportFormatHasBeenSet = true; m_reportFormat = std::move(value); } /** *

The format to generate the report in.

*/ inline CreateFindingsReportRequest& WithReportFormat(const ReportFormat& value) { SetReportFormat(value); return *this;} /** *

The format to generate the report in.

*/ inline CreateFindingsReportRequest& WithReportFormat(ReportFormat&& value) { SetReportFormat(std::move(value)); return *this;} /** *

The Amazon S3 export destination for the report.

*/ inline const Destination& GetS3Destination() const{ return m_s3Destination; } /** *

The Amazon S3 export destination for the report.

*/ inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; } /** *

The Amazon S3 export destination for the report.

*/ inline void SetS3Destination(const Destination& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = value; } /** *

The Amazon S3 export destination for the report.

*/ inline void SetS3Destination(Destination&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::move(value); } /** *

The Amazon S3 export destination for the report.

*/ inline CreateFindingsReportRequest& WithS3Destination(const Destination& value) { SetS3Destination(value); return *this;} /** *

The Amazon S3 export destination for the report.

*/ inline CreateFindingsReportRequest& WithS3Destination(Destination&& value) { SetS3Destination(std::move(value)); return *this;} private: FilterCriteria m_filterCriteria; bool m_filterCriteriaHasBeenSet = false; ReportFormat m_reportFormat; bool m_reportFormatHasBeenSet = false; Destination m_s3Destination; bool m_s3DestinationHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws