/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { class GetSbomExportResult { public: AWS_INSPECTOR2_API GetSbomExportResult(); AWS_INSPECTOR2_API GetSbomExportResult(const Aws::AmazonWebServiceResult& result); AWS_INSPECTOR2_API GetSbomExportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An error code.

*/ inline const ReportingErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

An error code.

*/ inline void SetErrorCode(const ReportingErrorCode& value) { m_errorCode = value; } /** *

An error code.

*/ inline void SetErrorCode(ReportingErrorCode&& value) { m_errorCode = std::move(value); } /** *

An error code.

*/ inline GetSbomExportResult& WithErrorCode(const ReportingErrorCode& value) { SetErrorCode(value); return *this;} /** *

An error code.

*/ inline GetSbomExportResult& WithErrorCode(ReportingErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

An error message.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

An error message.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** *

An error message.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** *

An error message.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

An error message.

*/ inline GetSbomExportResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

An error message.

*/ inline GetSbomExportResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

An error message.

*/ inline GetSbomExportResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

Contains details about the resource filter criteria used for the software * bill of materials (SBOM) report.

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

Contains details about the resource filter criteria used for the software * bill of materials (SBOM) report.

*/ inline void SetFilterCriteria(const ResourceFilterCriteria& value) { m_filterCriteria = value; } /** *

Contains details about the resource filter criteria used for the software * bill of materials (SBOM) report.

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

Contains details about the resource filter criteria used for the software * bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithFilterCriteria(const ResourceFilterCriteria& value) { SetFilterCriteria(value); return *this;} /** *

Contains details about the resource filter criteria used for the software * bill of materials (SBOM) report.

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

The format of the software bill of materials (SBOM) report.

*/ inline const SbomReportFormat& GetFormat() const{ return m_format; } /** *

The format of the software bill of materials (SBOM) report.

*/ inline void SetFormat(const SbomReportFormat& value) { m_format = value; } /** *

The format of the software bill of materials (SBOM) report.

*/ inline void SetFormat(SbomReportFormat&& value) { m_format = std::move(value); } /** *

The format of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithFormat(const SbomReportFormat& value) { SetFormat(value); return *this;} /** *

The format of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithFormat(SbomReportFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline const Aws::String& GetReportId() const{ return m_reportId; } /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline void SetReportId(const Aws::String& value) { m_reportId = value; } /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline void SetReportId(Aws::String&& value) { m_reportId = std::move(value); } /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline void SetReportId(const char* value) { m_reportId.assign(value); } /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithReportId(const Aws::String& value) { SetReportId(value); return *this;} /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithReportId(Aws::String&& value) { SetReportId(std::move(value)); return *this;} /** *

The report ID of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithReportId(const char* value) { SetReportId(value); return *this;} inline const Destination& GetS3Destination() const{ return m_s3Destination; } inline void SetS3Destination(const Destination& value) { m_s3Destination = value; } inline void SetS3Destination(Destination&& value) { m_s3Destination = std::move(value); } inline GetSbomExportResult& WithS3Destination(const Destination& value) { SetS3Destination(value); return *this;} inline GetSbomExportResult& WithS3Destination(Destination&& value) { SetS3Destination(std::move(value)); return *this;} /** *

The status of the software bill of materials (SBOM) report.

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

The status of the software bill of materials (SBOM) report.

*/ inline void SetStatus(const ExternalReportStatus& value) { m_status = value; } /** *

The status of the software bill of materials (SBOM) report.

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

The status of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithStatus(const ExternalReportStatus& value) { SetStatus(value); return *this;} /** *

The status of the software bill of materials (SBOM) report.

*/ inline GetSbomExportResult& WithStatus(ExternalReportStatus&& value) { SetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSbomExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSbomExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSbomExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ReportingErrorCode m_errorCode; Aws::String m_errorMessage; ResourceFilterCriteria m_filterCriteria; SbomReportFormat m_format; Aws::String m_reportId; Destination m_s3Destination; ExternalReportStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace Inspector2 } // namespace Aws