/*
* 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 CreateIPSet operation.
/// Creates a new IPSet, which is called a trusted IP list in the console user interface.
/// An IPSet is a list of IP addresses that are trusted for secure communication with
/// Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings
/// for IP addresses that are included in IPSets. Only users from the administrator account
/// can use this operation.
///
public partial class CreateIPSetRequest : AmazonGuardDutyRequest
{
private bool? _activate;
private string _clientToken;
private string _detectorId;
private IpSetFormat _format;
private string _location;
private string _name;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property Activate.
///
/// A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet.
///
///
[AWSProperty(Required=true)]
public bool Activate
{
get { return this._activate.GetValueOrDefault(); }
set { this._activate = value; }
}
// Check to see if Activate property is set
internal bool IsSetActivate()
{
return this._activate.HasValue;
}
///
/// 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 DetectorId.
///
/// The unique ID of the detector of the GuardDuty account that you want to create an
/// IPSet for.
///
///
[AWSProperty(Required=true, 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 Format.
///
/// The format of the file that contains the IPSet.
///
///
[AWSProperty(Required=true, Min=1, Max=300)]
public IpSetFormat Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
///
/// Gets and sets the property Location.
///
/// The URI of the file that contains the IPSet.
///
///
[AWSProperty(Required=true, Min=1, Max=300)]
public string Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
///
/// Gets and sets the property Name.
///
/// The user-friendly name to identify the IPSet.
///
///
///
/// Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_).
///
///
[AWSProperty(Required=true, Min=1, Max=300)]
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 Tags.
///
/// The tags to be added to a new IP set 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;
}
}
}