/* * 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 { /// /// Details about the source of the score, and the factors that determined the adjustments /// to create the final score. /// public partial class CvssScoreDetails { private List _adjustments = new List(); private string _cvssSource; private double? _score; private string _scoreSource; private string _scoringVector; private string _version; /// /// Gets and sets the property Adjustments. /// /// An object that contains details about an adjustment that Amazon Inspector made to /// the CVSS score for the finding. /// /// public List Adjustments { get { return this._adjustments; } set { this._adjustments = value; } } // Check to see if Adjustments property is set internal bool IsSetAdjustments() { return this._adjustments != null && this._adjustments.Count > 0; } /// /// Gets and sets the property CvssSource. /// /// The source of the finding. /// /// [AWSProperty(Min=1, Max=1024)] public string CvssSource { get { return this._cvssSource; } set { this._cvssSource = value; } } // Check to see if CvssSource property is set internal bool IsSetCvssSource() { return this._cvssSource != null; } /// /// Gets and sets the property Score. /// /// The CVSS score. /// /// [AWSProperty(Min=0)] public double Score { get { return this._score.GetValueOrDefault(); } set { this._score = value; } } // Check to see if Score property is set internal bool IsSetScore() { return this._score.HasValue; } /// /// Gets and sets the property ScoreSource. /// /// The source for the CVSS score. /// /// [AWSProperty(Min=1, Max=1024)] public string ScoreSource { get { return this._scoreSource; } set { this._scoreSource = value; } } // Check to see if ScoreSource property is set internal bool IsSetScoreSource() { return this._scoreSource != null; } /// /// Gets and sets the property ScoringVector. /// /// A vector that measures the severity of the vulnerability. /// /// [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 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; } } }