/* * 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 DescribeRegions operation. /// Describes the Regions that are enabled for your account, or all Regions. /// /// /// /// For a list of the Regions supported by Amazon EC2, see /// Amazon Elastic Compute Cloud endpoints and quotas. /// /// /// /// For information about enabling and disabling Regions for your account, see Managing /// Amazon Web Services Regions in the Amazon Web Services General Reference. /// /// public partial class DescribeRegionsRequest : AmazonEC2Request { private bool? _allRegions; private List _filters = new List(); private List _regionNames = new List(); /// /// Gets and sets the property AllRegions. /// /// Indicates whether to display all Regions, including Regions that are disabled for /// your account. /// /// public bool AllRegions { get { return this._allRegions.GetValueOrDefault(); } set { this._allRegions = value; } } // Check to see if AllRegions property is set internal bool IsSetAllRegions() { return this._allRegions.HasValue; } /// /// Gets and sets the property Filters. /// /// The filters. /// ///
  • /// /// endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com). /// ///
  • /// /// opt-in-status - The opt-in status of the Region (opt-in-not-required /// | opted-in | not-opted-in). /// ///
  • /// /// region-name - The name of the Region (for example, us-east-1). /// ///
///
public List Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// /// Gets and sets the property RegionNames. /// /// The names of the Regions. You can specify any Regions, whether they are enabled and /// disabled for your account. /// /// public List RegionNames { get { return this._regionNames; } set { this._regionNames = value; } } // Check to see if RegionNames property is set internal bool IsSetRegionNames() { return this._regionNames != null && this._regionNames.Count > 0; } } }