/*
* 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 ecr-2015-09-21.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.ECR.Model
{
///
/// The details of an enhanced image scan. This is returned when enhanced scanning is
/// enabled for your private registry.
///
public partial class EnhancedImageScanFinding
{
private string _awsAccountId;
private string _description;
private string _findingArn;
private DateTime? _firstObservedAt;
private DateTime? _lastObservedAt;
private PackageVulnerabilityDetails _packageVulnerabilityDetails;
private Remediation _remediation;
private List _resources = new List();
private double? _score;
private ScoreDetails _scoreDetails;
private string _severity;
private string _status;
private string _title;
private string _type;
private DateTime? _updatedAt;
///
/// Gets and sets the property AwsAccountId.
///
/// The Amazon Web Services account ID associated with the image.
///
///
public string AwsAccountId
{
get { return this._awsAccountId; }
set { this._awsAccountId = value; }
}
// Check to see if AwsAccountId property is set
internal bool IsSetAwsAccountId()
{
return this._awsAccountId != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the finding.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property FindingArn.
///
/// The Amazon Resource Number (ARN) of the finding.
///
///
public string FindingArn
{
get { return this._findingArn; }
set { this._findingArn = value; }
}
// Check to see if FindingArn property is set
internal bool IsSetFindingArn()
{
return this._findingArn != null;
}
///
/// Gets and sets the property FirstObservedAt.
///
/// The date and time that the finding was first observed.
///
///
public DateTime FirstObservedAt
{
get { return this._firstObservedAt.GetValueOrDefault(); }
set { this._firstObservedAt = value; }
}
// Check to see if FirstObservedAt property is set
internal bool IsSetFirstObservedAt()
{
return this._firstObservedAt.HasValue;
}
///
/// Gets and sets the property LastObservedAt.
///
/// The date and time that the finding was last observed.
///
///
public DateTime LastObservedAt
{
get { return this._lastObservedAt.GetValueOrDefault(); }
set { this._lastObservedAt = value; }
}
// Check to see if LastObservedAt property is set
internal bool IsSetLastObservedAt()
{
return this._lastObservedAt.HasValue;
}
///
/// Gets and sets the property PackageVulnerabilityDetails.
///
/// An object that contains the details of a package vulnerability finding.
///
///
public PackageVulnerabilityDetails PackageVulnerabilityDetails
{
get { return this._packageVulnerabilityDetails; }
set { this._packageVulnerabilityDetails = value; }
}
// Check to see if PackageVulnerabilityDetails property is set
internal bool IsSetPackageVulnerabilityDetails()
{
return this._packageVulnerabilityDetails != null;
}
///
/// Gets and sets the property Remediation.
///
/// An object that contains the details about how to remediate a finding.
///
///
public Remediation 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 Resources.
///
/// Contains information on the resources involved in a finding.
///
///
public List Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
///
/// Gets and sets the property Score.
///
/// The Amazon Inspector score given to the finding.
///
///
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 ScoreDetails.
///
/// An object that contains details of the Amazon Inspector score.
///
///
public ScoreDetails ScoreDetails
{
get { return this._scoreDetails; }
set { this._scoreDetails = value; }
}
// Check to see if ScoreDetails property is set
internal bool IsSetScoreDetails()
{
return this._scoreDetails != null;
}
///
/// Gets and sets the property Severity.
///
/// The severity of the finding.
///
///
public string Severity
{
get { return this._severity; }
set { this._severity = value; }
}
// Check to see if Severity property is set
internal bool IsSetSeverity()
{
return this._severity != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the finding.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Title.
///
/// The title of the finding.
///
///
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
///
/// Gets and sets the property Type.
///
/// The type of the finding.
///
///
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
///
/// Gets and sets the property UpdatedAt.
///
/// The date and time the finding was last updated at.
///
///
public DateTime UpdatedAt
{
get { return this._updatedAt.GetValueOrDefault(); }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt.HasValue;
}
}
}