/*
* 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 codeguru-security-2018-05-10.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.CodeGuruSecurity.Model
{
///
/// Information about a security vulnerability that Amazon CodeGuru Security detected.
///
public partial class Vulnerability
{
private FilePath _filePath;
private string _id;
private int? _itemCount;
private List _referenceUrls = new List();
private List _relatedVulnerabilities = new List();
///
/// Gets and sets the property FilePath.
///
/// An object that describes the location of the detected security vulnerability in your
/// code.
///
///
public FilePath FilePath
{
get { return this._filePath; }
set { this._filePath = value; }
}
// Check to see if FilePath property is set
internal bool IsSetFilePath()
{
return this._filePath != null;
}
///
/// Gets and sets the property Id.
///
/// The identifier for the vulnerability.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property ItemCount.
///
/// The number of times the vulnerability appears in your code.
///
///
public int ItemCount
{
get { return this._itemCount.GetValueOrDefault(); }
set { this._itemCount = value; }
}
// Check to see if ItemCount property is set
internal bool IsSetItemCount()
{
return this._itemCount.HasValue;
}
///
/// Gets and sets the property ReferenceUrls.
///
/// One or more URL addresses that contain details about a vulnerability.
///
///
public List ReferenceUrls
{
get { return this._referenceUrls; }
set { this._referenceUrls = value; }
}
// Check to see if ReferenceUrls property is set
internal bool IsSetReferenceUrls()
{
return this._referenceUrls != null && this._referenceUrls.Count > 0;
}
///
/// Gets and sets the property RelatedVulnerabilities.
///
/// One or more vulnerabilities that are related to the vulnerability being described.
///
///
public List RelatedVulnerabilities
{
get { return this._relatedVulnerabilities; }
set { this._relatedVulnerabilities = value; }
}
// Check to see if RelatedVulnerabilities property is set
internal bool IsSetRelatedVulnerabilities()
{
return this._relatedVulnerabilities != null && this._relatedVulnerabilities.Count > 0;
}
}
}