/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

An aggregation of information about Amazon ECR containers.

See * Also:

AWS * API Reference

*/ class AwsEcrContainerAggregationResponse { public: AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse(); AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline AwsEcrContainerAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline AwsEcrContainerAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the account that owns the * container.

*/ inline AwsEcrContainerAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The architecture of the container.

*/ inline const Aws::String& GetArchitecture() const{ return m_architecture; } /** *

The architecture of the container.

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The architecture of the container.

*/ inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

The architecture of the container.

*/ inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

The architecture of the container.

*/ inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); } /** *

The architecture of the container.

*/ inline AwsEcrContainerAggregationResponse& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;} /** *

The architecture of the container.

*/ inline AwsEcrContainerAggregationResponse& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;} /** *

The architecture of the container.

*/ inline AwsEcrContainerAggregationResponse& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} /** *

The SHA value of the container image.

*/ inline const Aws::String& GetImageSha() const{ return m_imageSha; } /** *

The SHA value of the container image.

*/ inline bool ImageShaHasBeenSet() const { return m_imageShaHasBeenSet; } /** *

The SHA value of the container image.

*/ inline void SetImageSha(const Aws::String& value) { m_imageShaHasBeenSet = true; m_imageSha = value; } /** *

The SHA value of the container image.

*/ inline void SetImageSha(Aws::String&& value) { m_imageShaHasBeenSet = true; m_imageSha = std::move(value); } /** *

The SHA value of the container image.

*/ inline void SetImageSha(const char* value) { m_imageShaHasBeenSet = true; m_imageSha.assign(value); } /** *

The SHA value of the container image.

*/ inline AwsEcrContainerAggregationResponse& WithImageSha(const Aws::String& value) { SetImageSha(value); return *this;} /** *

The SHA value of the container image.

*/ inline AwsEcrContainerAggregationResponse& WithImageSha(Aws::String&& value) { SetImageSha(std::move(value)); return *this;} /** *

The SHA value of the container image.

*/ inline AwsEcrContainerAggregationResponse& WithImageSha(const char* value) { SetImageSha(value); return *this;} /** *

The container image stags.

*/ inline const Aws::Vector& GetImageTags() const{ return m_imageTags; } /** *

The container image stags.

*/ inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; } /** *

The container image stags.

*/ inline void SetImageTags(const Aws::Vector& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; } /** *

The container image stags.

*/ inline void SetImageTags(Aws::Vector&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); } /** *

The container image stags.

*/ inline AwsEcrContainerAggregationResponse& WithImageTags(const Aws::Vector& value) { SetImageTags(value); return *this;} /** *

The container image stags.

*/ inline AwsEcrContainerAggregationResponse& WithImageTags(Aws::Vector&& value) { SetImageTags(std::move(value)); return *this;} /** *

The container image stags.

*/ inline AwsEcrContainerAggregationResponse& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The container image stags.

*/ inline AwsEcrContainerAggregationResponse& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; } /** *

The container image stags.

*/ inline AwsEcrContainerAggregationResponse& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The container repository.

*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *

The container repository.

*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *

The container repository.

*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *

The container repository.

*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *

The container repository.

*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *

The container repository.

*/ inline AwsEcrContainerAggregationResponse& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *

The container repository.

*/ inline AwsEcrContainerAggregationResponse& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *

The container repository.

*/ inline AwsEcrContainerAggregationResponse& WithRepository(const char* value) { SetRepository(value); return *this;} /** *

The resource ID of the container.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The resource ID of the container.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The resource ID of the container.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The resource ID of the container.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The resource ID of the container.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The resource ID of the container.

*/ inline AwsEcrContainerAggregationResponse& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The resource ID of the container.

*/ inline AwsEcrContainerAggregationResponse& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The resource ID of the container.

*/ inline AwsEcrContainerAggregationResponse& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The number of finding by severity.

*/ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } /** *

The number of finding by severity.

*/ inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } /** *

The number of finding by severity.

*/ inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } /** *

The number of finding by severity.

*/ inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); } /** *

The number of finding by severity.

*/ inline AwsEcrContainerAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} /** *

The number of finding by severity.

*/ inline AwsEcrContainerAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_architecture; bool m_architectureHasBeenSet = false; Aws::String m_imageSha; bool m_imageShaHasBeenSet = false; Aws::Vector m_imageTags; bool m_imageTagsHasBeenSet = 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