205 lines
7.4 KiB
C++
205 lines
7.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ecr/ECR_EXPORTS.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/ecr/model/ImageScanFinding.h>
|
|
#include <aws/ecr/model/FindingSeverity.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ECR
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The details of an image scan.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanFindings">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ECR_API ImageScanFindings
|
|
{
|
|
public:
|
|
ImageScanFindings();
|
|
ImageScanFindings(Aws::Utils::Json::JsonView jsonValue);
|
|
ImageScanFindings& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& WithImageScanCompletedAt(const Aws::Utils::DateTime& value) { SetImageScanCompletedAt(value); return *this;}
|
|
|
|
/**
|
|
* <p>The time of the last completed image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& WithImageScanCompletedAt(Aws::Utils::DateTime&& value) { SetImageScanCompletedAt(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { SetVulnerabilitySourceUpdatedAt(value); return *this;}
|
|
|
|
/**
|
|
* <p>The time when the vulnerability data was last scanned.</p>
|
|
*/
|
|
inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { SetVulnerabilitySourceUpdatedAt(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline const Aws::Vector<ImageScanFinding>& GetFindings() const{ return m_findings; }
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline void SetFindings(const Aws::Vector<ImageScanFinding>& value) { m_findingsHasBeenSet = true; m_findings = value; }
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline void SetFindings(Aws::Vector<ImageScanFinding>&& value) { m_findingsHasBeenSet = true; m_findings = std::move(value); }
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& WithFindings(const Aws::Vector<ImageScanFinding>& value) { SetFindings(value); return *this;}
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& WithFindings(Aws::Vector<ImageScanFinding>&& value) { SetFindings(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& AddFindings(const ImageScanFinding& value) { m_findingsHasBeenSet = true; m_findings.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The findings from the image scan.</p>
|
|
*/
|
|
inline ImageScanFindings& AddFindings(ImageScanFinding&& value) { m_findingsHasBeenSet = true; m_findings.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline ImageScanFindings& WithFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { SetFindingSeverityCounts(value); return *this;}
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline ImageScanFindings& WithFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { SetFindingSeverityCounts(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline ImageScanFindings& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The image vulnerability counts, sorted by severity.</p>
|
|
*/
|
|
inline ImageScanFindings& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Utils::DateTime m_imageScanCompletedAt;
|
|
bool m_imageScanCompletedAtHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
|
|
bool m_vulnerabilitySourceUpdatedAtHasBeenSet;
|
|
|
|
Aws::Vector<ImageScanFinding> m_findings;
|
|
bool m_findingsHasBeenSet;
|
|
|
|
Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
|
|
bool m_findingSeverityCountsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ECR
|
|
} // namespace Aws
|