/*
* 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 guardduty-2017-11-28.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.GuardDuty.Model
{
///
/// Contains information about a malware scan.
///
public partial class Scan
{
private string _accountId;
private string _adminDetectorId;
private List _attachedVolumes = new List();
private string _detectorId;
private string _failureReason;
private long? _fileCount;
private ResourceDetails _resourceDetails;
private DateTime? _scanEndTime;
private string _scanId;
private ScanResultDetails _scanResultDetails;
private DateTime? _scanStartTime;
private ScanStatus _scanStatus;
private ScanType _scanType;
private long? _totalBytes;
private TriggerDetails _triggerDetails;
///
/// Gets and sets the property AccountId.
///
/// The ID for the account that belongs to the scan.
///
///
[AWSProperty(Min=12, Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property AdminDetectorId.
///
/// The unique detector ID of the administrator account that the request is associated
/// with. Note that this value will be the same as the one used for DetectorId
/// if the account is an administrator.
///
///
[AWSProperty(Min=1, Max=300)]
public string AdminDetectorId
{
get { return this._adminDetectorId; }
set { this._adminDetectorId = value; }
}
// Check to see if AdminDetectorId property is set
internal bool IsSetAdminDetectorId()
{
return this._adminDetectorId != null;
}
///
/// Gets and sets the property AttachedVolumes.
///
/// List of volumes that were attached to the original instance to be scanned.
///
///
public List AttachedVolumes
{
get { return this._attachedVolumes; }
set { this._attachedVolumes = value; }
}
// Check to see if AttachedVolumes property is set
internal bool IsSetAttachedVolumes()
{
return this._attachedVolumes != null && this._attachedVolumes.Count > 0;
}
///
/// Gets and sets the property DetectorId.
///
/// The unique ID of the detector that the request is associated with.
///
///
[AWSProperty(Min=1, Max=300)]
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 FailureReason.
///
/// Represents the reason for FAILED scan status.
///
///
[AWSProperty(Min=1, Max=200)]
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property FileCount.
///
/// Represents the number of files that were scanned.
///
///
[AWSProperty(Min=0)]
public long FileCount
{
get { return this._fileCount.GetValueOrDefault(); }
set { this._fileCount = value; }
}
// Check to see if FileCount property is set
internal bool IsSetFileCount()
{
return this._fileCount.HasValue;
}
///
/// Gets and sets the property ResourceDetails.
///
/// Represents the resources that were scanned in the scan entry.
///
///
public ResourceDetails ResourceDetails
{
get { return this._resourceDetails; }
set { this._resourceDetails = value; }
}
// Check to see if ResourceDetails property is set
internal bool IsSetResourceDetails()
{
return this._resourceDetails != null;
}
///
/// Gets and sets the property ScanEndTime.
///
/// The timestamp of when the scan was finished.
///
///
public DateTime ScanEndTime
{
get { return this._scanEndTime.GetValueOrDefault(); }
set { this._scanEndTime = value; }
}
// Check to see if ScanEndTime property is set
internal bool IsSetScanEndTime()
{
return this._scanEndTime.HasValue;
}
///
/// Gets and sets the property ScanId.
///
/// The unique scan ID associated with a scan entry.
///
///
[AWSProperty(Min=1, Max=200)]
public string ScanId
{
get { return this._scanId; }
set { this._scanId = value; }
}
// Check to see if ScanId property is set
internal bool IsSetScanId()
{
return this._scanId != null;
}
///
/// Gets and sets the property ScanResultDetails.
///
/// Represents the result of the scan.
///
///
public ScanResultDetails ScanResultDetails
{
get { return this._scanResultDetails; }
set { this._scanResultDetails = value; }
}
// Check to see if ScanResultDetails property is set
internal bool IsSetScanResultDetails()
{
return this._scanResultDetails != null;
}
///
/// Gets and sets the property ScanStartTime.
///
/// The timestamp of when the scan was triggered.
///
///
public DateTime ScanStartTime
{
get { return this._scanStartTime.GetValueOrDefault(); }
set { this._scanStartTime = value; }
}
// Check to see if ScanStartTime property is set
internal bool IsSetScanStartTime()
{
return this._scanStartTime.HasValue;
}
///
/// Gets and sets the property ScanStatus.
///
/// An enum value representing possible scan statuses.
///
///
public ScanStatus ScanStatus
{
get { return this._scanStatus; }
set { this._scanStatus = value; }
}
// Check to see if ScanStatus property is set
internal bool IsSetScanStatus()
{
return this._scanStatus != null;
}
///
/// Gets and sets the property ScanType.
///
/// Specifies the scan type that invoked the malware scan.
///
///
public ScanType ScanType
{
get { return this._scanType; }
set { this._scanType = value; }
}
// Check to see if ScanType property is set
internal bool IsSetScanType()
{
return this._scanType != null;
}
///
/// Gets and sets the property TotalBytes.
///
/// Represents total bytes that were scanned.
///
///
[AWSProperty(Min=0)]
public long TotalBytes
{
get { return this._totalBytes.GetValueOrDefault(); }
set { this._totalBytes = value; }
}
// Check to see if TotalBytes property is set
internal bool IsSetTotalBytes()
{
return this._totalBytes.HasValue;
}
///
/// Gets and sets the property TriggerDetails.
///
/// Specifies the reason why the scan was initiated.
///
///
public TriggerDetails TriggerDetails
{
get { return this._triggerDetails; }
set { this._triggerDetails = value; }
}
// Check to see if TriggerDetails property is set
internal bool IsSetTriggerDetails()
{
return this._triggerDetails != null;
}
}
}