/* * 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 { /// /// Describes a managed prefix list. /// public partial class ManagedPrefixList { private string _addressFamily; private int? _maxEntries; private string _ownerId; private string _prefixListArn; private string _prefixListId; private string _prefixListName; private PrefixListState _state; private string _stateMessage; private List _tags = new List(); private long? _version; /// /// Gets and sets the property AddressFamily. /// /// The IP address version. /// /// public string AddressFamily { get { return this._addressFamily; } set { this._addressFamily = value; } } // Check to see if AddressFamily property is set internal bool IsSetAddressFamily() { return this._addressFamily != null; } /// /// Gets and sets the property MaxEntries. /// /// The maximum number of entries for the prefix list. /// /// 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 OwnerId. /// /// The ID of the owner of the prefix list. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property PrefixListArn. /// /// The Amazon Resource Name (ARN) for the prefix list. /// /// [AWSProperty(Min=1, Max=1283)] public string PrefixListArn { get { return this._prefixListArn; } set { this._prefixListArn = value; } } // Check to see if PrefixListArn property is set internal bool IsSetPrefixListArn() { return this._prefixListArn != null; } /// /// Gets and sets the property PrefixListId. /// /// The ID of the prefix list. /// /// 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. /// /// The name of 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 State. /// /// The current state of the prefix list. /// /// public PrefixListState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property StateMessage. /// /// The state message. /// /// public string StateMessage { get { return this._stateMessage; } set { this._stateMessage = value; } } // Check to see if StateMessage property is set internal bool IsSetStateMessage() { return this._stateMessage != null; } /// /// Gets and sets the property Tags. /// /// The tags for the prefix list. /// /// public List 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; } /// /// Gets and sets the property Version. /// /// The version of the prefix list. /// /// public long Version { get { return this._version.GetValueOrDefault(); } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version.HasValue; } } }