/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Container for the parameters to the ModifyManagedPrefixList operation.
/// Modifies the specified managed prefix list.
///
///
///
/// Adding or removing entries in a prefix list creates a new version of the prefix list.
/// Changing the name of the prefix list does not affect the version.
///
///
///
/// If you specify a current version number that does not match the true current version
/// number, the request fails.
///
///
public partial class ModifyManagedPrefixListRequest : AmazonEC2Request
{
private List _addEntries = new List();
private long? _currentVersion;
private int? _maxEntries;
private string _prefixListId;
private string _prefixListName;
private List _removeEntries = new List();
///
/// Gets and sets the property AddEntries.
///
/// One or more entries to add to the prefix list.
///
///
[AWSProperty(Min=0, Max=100)]
public List AddEntries
{
get { return this._addEntries; }
set { this._addEntries = value; }
}
// Check to see if AddEntries property is set
internal bool IsSetAddEntries()
{
return this._addEntries != null && this._addEntries.Count > 0;
}
///
/// Gets and sets the property CurrentVersion.
///
/// The current version of the prefix list.
///
///
public long CurrentVersion
{
get { return this._currentVersion.GetValueOrDefault(); }
set { this._currentVersion = value; }
}
// Check to see if CurrentVersion property is set
internal bool IsSetCurrentVersion()
{
return this._currentVersion.HasValue;
}
///
/// Gets and sets the property MaxEntries.
///
/// The maximum number of entries for the prefix list. You cannot modify the entries of
/// a prefix list and modify the size of a prefix list at the same time.
///
///
///
/// If any of the resources that reference the prefix list cannot support the new maximum
/// size, the modify operation fails. Check the state message for the IDs of the first
/// ten resources that do not support the new maximum size.
///
///
public int MaxEntries
{
get { return this._maxEntries.GetValueOrDefault(); }
set { this._maxEntries = value; }
}
// Check to see if MaxEntries property is set
internal bool IsSetMaxEntries()
{
return this._maxEntries.HasValue;
}
///
/// Gets and sets the property PrefixListId.
///
/// The ID of the prefix list.
///
///
[AWSProperty(Required=true)]
public string PrefixListId
{
get { return this._prefixListId; }
set { this._prefixListId = value; }
}
// Check to see if PrefixListId property is set
internal bool IsSetPrefixListId()
{
return this._prefixListId != null;
}
///
/// Gets and sets the property PrefixListName.
///
/// A name for the prefix list.
///
///
public string PrefixListName
{
get { return this._prefixListName; }
set { this._prefixListName = value; }
}
// Check to see if PrefixListName property is set
internal bool IsSetPrefixListName()
{
return this._prefixListName != null;
}
///
/// Gets and sets the property RemoveEntries.
///
/// One or more entries to remove from the prefix list.
///
///
[AWSProperty(Min=0, Max=100)]
public List RemoveEntries
{
get { return this._removeEntries; }
set { this._removeEntries = value; }
}
// Check to see if RemoveEntries property is set
internal bool IsSetRemoveEntries()
{
return this._removeEntries != null && this._removeEntries.Count > 0;
}
}
}