/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ecr-2015-09-21.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ECR.Model { /// /// The details of an image scan. /// public partial class ImageScanFindings { private List _enhancedFindings = new List(); private List _findings = new List(); private Dictionary _findingSeverityCounts = new Dictionary(); private DateTime? _imageScanCompletedAt; private DateTime? _vulnerabilitySourceUpdatedAt; /// /// Gets and sets the property EnhancedFindings. /// /// Details about the enhanced scan findings from Amazon Inspector. /// /// public List EnhancedFindings { get { return this._enhancedFindings; } set { this._enhancedFindings = value; } } // Check to see if EnhancedFindings property is set internal bool IsSetEnhancedFindings() { return this._enhancedFindings != null && this._enhancedFindings.Count > 0; } /// /// Gets and sets the property Findings. /// /// The findings from the image scan. /// /// public List Findings { get { return this._findings; } set { this._findings = value; } } // Check to see if Findings property is set internal bool IsSetFindings() { return this._findings != null && this._findings.Count > 0; } /// /// Gets and sets the property FindingSeverityCounts. /// /// The image vulnerability counts, sorted by severity. /// /// public Dictionary FindingSeverityCounts { get { return this._findingSeverityCounts; } set { this._findingSeverityCounts = value; } } // Check to see if FindingSeverityCounts property is set internal bool IsSetFindingSeverityCounts() { return this._findingSeverityCounts != null && this._findingSeverityCounts.Count > 0; } /// /// Gets and sets the property ImageScanCompletedAt. /// /// The time of the last completed image scan. /// /// public DateTime ImageScanCompletedAt { get { return this._imageScanCompletedAt.GetValueOrDefault(); } set { this._imageScanCompletedAt = value; } } // Check to see if ImageScanCompletedAt property is set internal bool IsSetImageScanCompletedAt() { return this._imageScanCompletedAt.HasValue; } /// /// Gets and sets the property VulnerabilitySourceUpdatedAt. /// /// The time when the vulnerability data was last scanned. /// /// public DateTime VulnerabilitySourceUpdatedAt { get { return this._vulnerabilitySourceUpdatedAt.GetValueOrDefault(); } set { this._vulnerabilitySourceUpdatedAt = value; } } // Check to see if VulnerabilitySourceUpdatedAt property is set internal bool IsSetVulnerabilitySourceUpdatedAt() { return this._vulnerabilitySourceUpdatedAt.HasValue; } } }