/*
* 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 account-2021-02-01.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.Account.Model
{
///
/// Container for the parameters to the ListRegions operation.
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the region-opt-status-contains
parameter.
///
public partial class ListRegionsRequest : AmazonAccountRequest
{
private string _accountId;
private int? _maxResults;
private string _nextToken;
private List _regionOptStatusContains = new List();
///
/// Gets and sets the property AccountId.
///
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the organization's
/// management account or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// all
/// features enabled, and the organization must have trusted
/// access enabled for the Account Management service, and optionally a delegated
/// admin account assigned.
///
///
///
/// The management account can't specify its own AccountId
. It must call
/// the operation in standalone context by not including the AccountId
parameter.
///
///
///
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
///
///
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property MaxResults.
///
/// The total number of items to return in the command’s output. If the total number of
/// items available is more than the value specified, a NextToken
is provided
/// in the command’s output. To resume pagination, provide the NextToken
/// value in the starting-token
argument of a subsequent command. Do not
/// use the NextToken
response element directly outside of the Amazon Web
/// Services CLI. For usage examples, see Pagination
/// in the Amazon Web Services Command Line Interface User Guide.
///
///
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// A token used to specify where to start paginating. This is the NextToken
/// from a previously truncated response. For usage examples, see Pagination
/// in the Amazon Web Services Command Line Interface User Guide.
///
///
[AWSProperty(Min=0, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property RegionOptStatusContains.
///
/// A list of Region statuses (Enabling, Enabled, Disabling, Disabled, Enabled_by_default)
/// to use to filter the list of Regions for a given account. For example, passing in
/// a value of ENABLING will only return a list of Regions with a Region status of ENABLING.
///
///
public List RegionOptStatusContains
{
get { return this._regionOptStatusContains; }
set { this._regionOptStatusContains = value; }
}
// Check to see if RegionOptStatusContains property is set
internal bool IsSetRegionOptStatusContains()
{
return this._regionOptStatusContains != null && this._regionOptStatusContains.Count > 0;
}
}
}