/*
* 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
{
///
/// Container for the parameters to the CreateDetector operation.
/// Creates a single Amazon GuardDuty detector. A detector is a resource that represents
/// the GuardDuty service. To start using GuardDuty, you must create a detector in each
/// Region where you enable the service. You can have only one detector per account per
/// Region. All data sources are enabled in a new detector by default.
///
///
///
/// There might be regional differences because some data sources might not be available
/// in all the Amazon Web Services Regions where GuardDuty is presently supported. For
/// more information, see Regions
/// and endpoints.
///
///
public partial class CreateDetectorRequest : AmazonGuardDutyRequest
{
private string _clientToken;
private DataSourceConfigurations _dataSources;
private bool? _enable;
private List _features = new List();
private FindingPublishingFrequency _findingPublishingFrequency;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ClientToken.
///
/// The idempotency token for the create request.
///
///
[AWSProperty(Min=0, Max=64)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property DataSources.
///
/// Describes which data sources will be enabled for the detector.
///
///
///
/// There might be regional differences because some data sources might not be available
/// in all the Amazon Web Services Regions where GuardDuty is presently supported. For
/// more information, see Regions
/// and endpoints.
///
///
[Obsolete("This parameter is deprecated, use Features instead")]
public DataSourceConfigurations DataSources
{
get { return this._dataSources; }
set { this._dataSources = value; }
}
// Check to see if DataSources property is set
internal bool IsSetDataSources()
{
return this._dataSources != null;
}
///
/// Gets and sets the property Enable.
///
/// A Boolean value that specifies whether the detector is to be enabled.
///
///
[AWSProperty(Required=true)]
public bool Enable
{
get { return this._enable.GetValueOrDefault(); }
set { this._enable = value; }
}
// Check to see if Enable property is set
internal bool IsSetEnable()
{
return this._enable.HasValue;
}
///
/// Gets and sets the property Features.
///
/// A list of features that will be configured for the detector.
///
///
public List Features
{
get { return this._features; }
set { this._features = value; }
}
// Check to see if Features property is set
internal bool IsSetFeatures()
{
return this._features != null && this._features.Count > 0;
}
///
/// Gets and sets the property FindingPublishingFrequency.
///
/// A value that specifies how frequently updated findings are exported.
///
///
public FindingPublishingFrequency FindingPublishingFrequency
{
get { return this._findingPublishingFrequency; }
set { this._findingPublishingFrequency = value; }
}
// Check to see if FindingPublishingFrequency property is set
internal bool IsSetFindingPublishingFrequency()
{
return this._findingPublishingFrequency != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags to be added to a new detector resource.
///
///
[AWSProperty(Min=1, Max=200)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}