/*
 * 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
{
    /// <summary>
    /// A summary of the last completed image scan.
    /// </summary>
    public partial class ImageScanFindingsSummary
    {
        private Dictionary<string, int> _findingSeverityCounts = new Dictionary<string, int>();
        private DateTime? _imageScanCompletedAt;
        private DateTime? _vulnerabilitySourceUpdatedAt;

        /// <summary>
        /// Gets and sets the property FindingSeverityCounts. 
        /// <para>
        /// The image vulnerability counts, sorted by severity.
        /// </para>
        /// </summary>
        public Dictionary<string, int> 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; 
        }

        /// <summary>
        /// Gets and sets the property ImageScanCompletedAt. 
        /// <para>
        /// The time of the last completed image scan.
        /// </para>
        /// </summary>
        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; 
        }

        /// <summary>
        /// Gets and sets the property VulnerabilitySourceUpdatedAt. 
        /// <para>
        /// The time when the vulnerability data was last scanned.
        /// </para>
        /// </summary>
        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; 
        }

    }
}