/* * 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 CreateThreatIntelSet operation. /// Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. /// GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator /// account can use this operation. /// public partial class CreateThreatIntelSetRequest : AmazonGuardDutyRequest { private bool? _activate; private string _clientToken; private string _detectorId; private ThreatIntelSetFormat _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 ThreatIntelSet. /// /// [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 a threatIntelSet /// 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 ThreatIntelSet. /// /// [AWSProperty(Required=true, Min=1, Max=300)] public ThreatIntelSetFormat 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 ThreatIntelSet. /// /// [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. /// /// A user-friendly ThreatIntelSet name displayed in all findings that are generated by /// activity that involves IP addresses included in this ThreatIntelSet. /// /// [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 threat list 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; } } }