/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A response that contains the results of a finding aggregation by image
* layer.See Also:
AWS
* API Reference
The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline ImageLayerAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline ImageLayerAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the container image * hosting the layer image.
*/ inline ImageLayerAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The layer hash.
*/ inline const Aws::String& GetLayerHash() const{ return m_layerHash; } /** *The layer hash.
*/ inline bool LayerHashHasBeenSet() const { return m_layerHashHasBeenSet; } /** *The layer hash.
*/ inline void SetLayerHash(const Aws::String& value) { m_layerHashHasBeenSet = true; m_layerHash = value; } /** *The layer hash.
*/ inline void SetLayerHash(Aws::String&& value) { m_layerHashHasBeenSet = true; m_layerHash = std::move(value); } /** *The layer hash.
*/ inline void SetLayerHash(const char* value) { m_layerHashHasBeenSet = true; m_layerHash.assign(value); } /** *The layer hash.
*/ inline ImageLayerAggregationResponse& WithLayerHash(const Aws::String& value) { SetLayerHash(value); return *this;} /** *The layer hash.
*/ inline ImageLayerAggregationResponse& WithLayerHash(Aws::String&& value) { SetLayerHash(std::move(value)); return *this;} /** *The layer hash.
*/ inline ImageLayerAggregationResponse& WithLayerHash(const char* value) { SetLayerHash(value); return *this;} /** *The repository the layer resides in.
*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *The repository the layer resides in.
*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *The repository the layer resides in.
*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *The repository the layer resides in.
*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *The repository the layer resides in.
*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *The repository the layer resides in.
*/ inline ImageLayerAggregationResponse& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *The repository the layer resides in.
*/ inline ImageLayerAggregationResponse& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *The repository the layer resides in.
*/ inline ImageLayerAggregationResponse& WithRepository(const char* value) { SetRepository(value); return *this;} /** *The resource ID of the container image layer.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The resource ID of the container image layer.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The resource ID of the container image layer.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The resource ID of the container image layer.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The resource ID of the container image layer.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The resource ID of the container image layer.
*/ inline ImageLayerAggregationResponse& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The resource ID of the container image layer.
*/ inline ImageLayerAggregationResponse& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The resource ID of the container image layer.
*/ inline ImageLayerAggregationResponse& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *An object that represents the count of matched findings per severity.
*/ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } /** *An object that represents the count of matched findings per severity.
*/ inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } /** *An object that represents the count of matched findings per severity.
*/ inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } /** *An object that represents the count of matched findings per severity.
*/ inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); } /** *An object that represents the count of matched findings per severity.
*/ inline ImageLayerAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} /** *An object that represents the count of matched findings per severity.
*/ inline ImageLayerAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_layerHash; bool m_layerHashHasBeenSet = false; Aws::String m_repository; bool m_repositoryHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws