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

The request ID that uniquely identifies this request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The request ID that uniquely identifies this request.

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

The request ID that uniquely identifies this request.

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

The request ID that uniquely identifies this request.

*/ inline void SetRequestId(const char* value) { m_requestId.assign(value); } /** *

The request ID that uniquely identifies this request.

*/ inline ListImageScanFindingAggregationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline ListImageScanFindingAggregationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline ListImageScanFindingAggregationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

*/ inline const Aws::String& GetAggregationType() const{ return m_aggregationType; } /** *

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

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

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

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

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

*/ inline void SetAggregationType(const char* value) { m_aggregationType.assign(value); } /** *

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

*/ inline ListImageScanFindingAggregationsResult& WithAggregationType(const Aws::String& value) { SetAggregationType(value); return *this;} /** *

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

*/ inline ListImageScanFindingAggregationsResult& WithAggregationType(Aws::String&& value) { SetAggregationType(std::move(value)); return *this;} /** *

The aggregation type specifies what type of key is used to group the image * scan findings. Image Builder returns results based on the request filter. If you * didn't specify a filter in the request, the type defaults to * accountId.

Aggregation types

    *
  • accountId

  • imageBuildVersionArn

  • *

    imagePipelineArn

  • vulnerabilityId

Each * aggregation includes counts by severity level for medium severity and higher * level findings, plus a total for all of the findings for each key value.

*/ inline ListImageScanFindingAggregationsResult& WithAggregationType(const char* value) { SetAggregationType(value); return *this;} /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline const Aws::Vector& GetResponses() const{ return m_responses; } /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline void SetResponses(const Aws::Vector& value) { m_responses = value; } /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline void SetResponses(Aws::Vector&& value) { m_responses = std::move(value); } /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline ListImageScanFindingAggregationsResult& WithResponses(const Aws::Vector& value) { SetResponses(value); return *this;} /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline ListImageScanFindingAggregationsResult& WithResponses(Aws::Vector&& value) { SetResponses(std::move(value)); return *this;} /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline ListImageScanFindingAggregationsResult& AddResponses(const ImageScanFindingAggregation& value) { m_responses.push_back(value); return *this; } /** *

An array of image scan finding aggregations that match the filter * criteria.

*/ inline ListImageScanFindingAggregationsResult& AddResponses(ImageScanFindingAggregation&& value) { m_responses.push_back(std::move(value)); return *this; } /** *

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

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

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

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

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

*/ inline ListImageScanFindingAggregationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

*/ inline ListImageScanFindingAggregationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The next token used for paginated responses. When this field isn't empty, * there are additional elements that the service has'ot included in this request. * Use this token with the next request to retrieve additional objects.

*/ inline ListImageScanFindingAggregationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_requestId; Aws::String m_aggregationType; Aws::Vector m_responses; Aws::String m_nextToken; }; } // namespace Model } // namespace imagebuilder } // namespace Aws