/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// CVSS scores from the advisory related to the vulnerability.
///
public partial class Cvss
{
private List _adjustments = new List();
private double? _baseScore;
private string _baseVector;
private string _source;
private string _version;
///
/// Gets and sets the property Adjustments.
///
/// Adjustments to the CVSS metrics.
///
///
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 BaseScore.
///
/// The base CVSS score.
///
///
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 BaseVector.
///
/// The base scoring vector for the CVSS score.
///
///
public string BaseVector
{
get { return this._baseVector; }
set { this._baseVector = value; }
}
// Check to see if BaseVector property is set
internal bool IsSetBaseVector()
{
return this._baseVector != null;
}
///
/// Gets and sets the property Source.
///
/// The origin of the original CVSS score and vector.
///
///
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 version of CVSS for the CVSS score.
///
///
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;
}
}
}