/*
* 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 inspector2-2020-06-08.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.Inspector2.Model
{
///
/// Contains information on the code vulnerability identified in your Lambda function.
///
public partial class CodeVulnerabilityDetails
{
private List _cwes = new List();
private string _detectorId;
private string _detectorName;
private List _detectorTags = new List();
private CodeFilePath _filePath;
private List _referenceUrls = new List();
private string _ruleId;
private string _sourceLambdaLayerArn;
///
/// Gets and sets the property Cwes.
///
/// The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List Cwes
{
get { return this._cwes; }
set { this._cwes = value; }
}
// Check to see if Cwes property is set
internal bool IsSetCwes()
{
return this._cwes != null && this._cwes.Count > 0;
}
///
/// Gets and sets the property DetectorId.
///
/// The ID for the Amazon CodeGuru detector associated with the finding. For more information
/// on detectors see Amazon
/// CodeGuru Detector Library.
///
///
[AWSProperty(Required=true, Min=1)]
public string DetectorId
{
get { return this._detectorId; }
set { this._detectorId = value; }
}
// Check to see if DetectorId property is set
internal bool IsSetDetectorId()
{
return this._detectorId != null;
}
///
/// Gets and sets the property DetectorName.
///
/// The name of the detector used to identify the code vulnerability. For more information
/// on detectors see CodeGuru
/// Detector Library.
///
///
[AWSProperty(Required=true, Min=1)]
public string DetectorName
{
get { return this._detectorName; }
set { this._detectorName = value; }
}
// Check to see if DetectorName property is set
internal bool IsSetDetectorName()
{
return this._detectorName != null;
}
///
/// Gets and sets the property DetectorTags.
///
/// The detector tag associated with the vulnerability. Detector tags group related vulnerabilities
/// by common themes or tactics. For a list of available tags by programming language,
/// see Java
/// tags, or Python
/// tags.
///
///
[AWSProperty(Min=1, Max=10)]
public List DetectorTags
{
get { return this._detectorTags; }
set { this._detectorTags = value; }
}
// Check to see if DetectorTags property is set
internal bool IsSetDetectorTags()
{
return this._detectorTags != null && this._detectorTags.Count > 0;
}
///
/// Gets and sets the property FilePath.
///
/// Contains information on where the code vulnerability is located in your code.
///
///
[AWSProperty(Required=true)]
public CodeFilePath 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 ReferenceUrls.
///
/// A URL containing supporting documentation about the code vulnerability detected.
///
///
[AWSProperty(Min=1, Max=10)]
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 RuleId.
///
/// The identifier for a rule that was used to detect the code vulnerability.
///
///
[AWSProperty(Min=1)]
public string RuleId
{
get { return this._ruleId; }
set { this._ruleId = value; }
}
// Check to see if RuleId property is set
internal bool IsSetRuleId()
{
return this._ruleId != null;
}
///
/// Gets and sets the property SourceLambdaLayerArn.
///
/// The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was
/// detected in.
///
///
public string SourceLambdaLayerArn
{
get { return this._sourceLambdaLayerArn; }
set { this._sourceLambdaLayerArn = value; }
}
// Check to see if SourceLambdaLayerArn property is set
internal bool IsSetSourceLambdaLayerArn()
{
return this._sourceLambdaLayerArn != null;
}
}
}