/*
* 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 the finding, which is generated when abnormal or suspicious
/// activity is detected.
///
public partial class Finding
{
private string _accountId;
private string _arn;
private double? _confidence;
private string _createdAt;
private string _description;
private string _id;
private string _partition;
private string _region;
private Resource _resource;
private string _schemaVersion;
private Service _service;
private double? _severity;
private string _title;
private string _type;
private string _updatedAt;
///
/// Gets and sets the property AccountId.
///
/// The ID of the account in which the finding was generated.
///
///
[AWSProperty(Required=true)]
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 Arn.
///
/// The ARN of the finding.
///
///
[AWSProperty(Required=true)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property Confidence.
///
/// The confidence score for the finding.
///
///
public double Confidence
{
get { return this._confidence.GetValueOrDefault(); }
set { this._confidence = value; }
}
// Check to see if Confidence property is set
internal bool IsSetConfidence()
{
return this._confidence.HasValue;
}
///
/// Gets and sets the property CreatedAt.
///
/// The time and date when the finding was created.
///
///
[AWSProperty(Required=true)]
public string CreatedAt
{
get { return this._createdAt; }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt != 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 Id.
///
/// The ID of the finding.
///
///
[AWSProperty(Required=true)]
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 Partition.
///
/// The partition associated with the finding.
///
///
public string Partition
{
get { return this._partition; }
set { this._partition = value; }
}
// Check to see if Partition property is set
internal bool IsSetPartition()
{
return this._partition != null;
}
///
/// Gets and sets the property Region.
///
/// The Region where the finding was generated.
///
///
[AWSProperty(Required=true)]
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property Resource.
///
[AWSProperty(Required=true)]
public Resource Resource
{
get { return this._resource; }
set { this._resource = value; }
}
// Check to see if Resource property is set
internal bool IsSetResource()
{
return this._resource != null;
}
///
/// Gets and sets the property SchemaVersion.
///
/// The version of the schema used for the finding.
///
///
[AWSProperty(Required=true)]
public string SchemaVersion
{
get { return this._schemaVersion; }
set { this._schemaVersion = value; }
}
// Check to see if SchemaVersion property is set
internal bool IsSetSchemaVersion()
{
return this._schemaVersion != null;
}
///
/// Gets and sets the property Service.
///
public Service Service
{
get { return this._service; }
set { this._service = value; }
}
// Check to see if Service property is set
internal bool IsSetService()
{
return this._service != null;
}
///
/// Gets and sets the property Severity.
///
/// The severity of the finding.
///
///
[AWSProperty(Required=true)]
public double Severity
{
get { return this._severity.GetValueOrDefault(); }
set { this._severity = value; }
}
// Check to see if Severity property is set
internal bool IsSetSeverity()
{
return this._severity.HasValue;
}
///
/// 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 finding.
///
///
[AWSProperty(Required=true, Min=1, Max=50)]
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 time and date when the finding was last updated.
///
///
[AWSProperty(Required=true)]
public string UpdatedAt
{
get { return this._updatedAt; }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt != null;
}
}
}