/*
* 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 UpdateIPSet operation.
/// Updates the IPSet specified by the IPSet ID.
///
public partial class UpdateIPSetRequest : AmazonGuardDutyRequest
{
private bool? _activate;
private string _detectorId;
private string _ipSetId;
private string _location;
private string _name;
///
/// Gets and sets the property Activate.
///
/// The updated Boolean value that specifies whether the IPSet is active or not.
///
///
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 DetectorId.
///
/// The detectorID that specifies the GuardDuty service whose IPSet you want to update.
///
///
[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 IpSetId.
///
/// The unique ID that specifies the IPSet that you want to update.
///
///
[AWSProperty(Required=true)]
public string IpSetId
{
get { return this._ipSetId; }
set { this._ipSetId = value; }
}
// Check to see if IpSetId property is set
internal bool IsSetIpSetId()
{
return this._ipSetId != null;
}
///
/// Gets and sets the property Location.
///
/// The updated URI of the file that contains the IPSet.
///
///
[AWSProperty(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 unique ID that specifies the IPSet that you want to update.
///
///
[AWSProperty(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;
}
}
}