/* * 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 imagebuilder-2019-12-02.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.Imagebuilder.Model { /// /// Amazon Inspector generates a risk score for each finding. This score helps you to /// prioritize findings, to focus on the most critical findings and the most vulnerable /// resources. The score uses the Common Vulnerability Scoring System (CVSS) format. This /// format is a modification of the base CVSS score that the National Vulnerability Database /// (NVD) provides. For more information about severity levels, see Severity /// levels for Amazon Inspector findings in the Amazon Inspector User Guide. /// public partial class CvssScore { private double? _baseScore; private string _scoringVector; private string _source; private string _version; /// /// Gets and sets the property BaseScore. /// /// The CVSS base score. /// /// [AWSProperty(Min=0)] public double BaseScore { get { return this._baseScore.GetValueOrDefault(); } set { this._baseScore = value; } } // Check to see if BaseScore property is set internal bool IsSetBaseScore() { return this._baseScore.HasValue; } /// /// Gets and sets the property ScoringVector. /// /// The vector string of the CVSS score. /// /// [AWSProperty(Min=1, Max=1024)] public string ScoringVector { get { return this._scoringVector; } set { this._scoringVector = value; } } // Check to see if ScoringVector property is set internal bool IsSetScoringVector() { return this._scoringVector != null; } /// /// Gets and sets the property Source. /// /// The source of the CVSS score. /// /// [AWSProperty(Min=1, Max=1024)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } /// /// Gets and sets the property Version. /// /// The CVSS version that generated the score. /// /// [AWSProperty(Min=1, Max=1024)] public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }