/*
* 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
{
///
/// Information about a vulnerable package that Amazon Inspector identifies in a finding.
///
public partial class VulnerablePackage
{
private string _arch;
private int? _epoch;
private string _filePath;
private string _fixedInVersion;
private string _name;
private string _packageManager;
private string _release;
private string _remediation;
private string _sourceLayerHash;
private string _version;
///
/// Gets and sets the property Arch.
///
/// The architecture of the vulnerable package.
///
///
public string Arch
{
get { return this._arch; }
set { this._arch = value; }
}
// Check to see if Arch property is set
internal bool IsSetArch()
{
return this._arch != null;
}
///
/// Gets and sets the property Epoch.
///
/// The epoch of the vulnerable package.
///
///
public int Epoch
{
get { return this._epoch.GetValueOrDefault(); }
set { this._epoch = value; }
}
// Check to see if Epoch property is set
internal bool IsSetEpoch()
{
return this._epoch.HasValue;
}
///
/// Gets and sets the property FilePath.
///
/// The file path of the vulnerable package.
///
///
[AWSProperty(Min=1, Max=1024)]
public string 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 FixedInVersion.
///
/// The version of the package that contains the vulnerability fix.
///
///
[AWSProperty(Min=1, Max=1024)]
public string FixedInVersion
{
get { return this._fixedInVersion; }
set { this._fixedInVersion = value; }
}
// Check to see if FixedInVersion property is set
internal bool IsSetFixedInVersion()
{
return this._fixedInVersion != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the vulnerable package.
///
///
[AWSProperty(Min=1, Max=1024)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property PackageManager.
///
/// The package manager of the vulnerable package.
///
///
[AWSProperty(Min=1, Max=1024)]
public string PackageManager
{
get { return this._packageManager; }
set { this._packageManager = value; }
}
// Check to see if PackageManager property is set
internal bool IsSetPackageManager()
{
return this._packageManager != null;
}
///
/// Gets and sets the property Release.
///
/// The release of the vulnerable package.
///
///
[AWSProperty(Min=1, Max=1024)]
public string Release
{
get { return this._release; }
set { this._release = value; }
}
// Check to see if Release property is set
internal bool IsSetRelease()
{
return this._release != null;
}
///
/// Gets and sets the property Remediation.
///
/// The code to run in your environment to update packages with a fix available.
///
///
[AWSProperty(Min=1, Max=1024)]
public string Remediation
{
get { return this._remediation; }
set { this._remediation = value; }
}
// Check to see if Remediation property is set
internal bool IsSetRemediation()
{
return this._remediation != null;
}
///
/// Gets and sets the property SourceLayerHash.
///
/// The source layer hash of the vulnerable package.
///
///
public string SourceLayerHash
{
get { return this._sourceLayerHash; }
set { this._sourceLayerHash = value; }
}
// Check to see if SourceLayerHash property is set
internal bool IsSetSourceLayerHash()
{
return this._sourceLayerHash != null;
}
///
/// Gets and sets the property Version.
///
/// The version of the vulnerable package.
///
///
[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;
}
}
}