pub struct ListRegionsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListRegions
.
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.
Implementations§
source§impl ListRegionsFluentBuilder
impl ListRegionsFluentBuilder
sourcepub fn as_input(&self) -> &ListRegionsInputBuilder
pub fn as_input(&self) -> &ListRegionsInputBuilder
Access the ListRegions as a reference.
sourcepub async fn send(
self
) -> Result<ListRegionsOutput, SdkError<ListRegionsError, HttpResponse>>
pub async fn send( self ) -> Result<ListRegionsOutput, SdkError<ListRegionsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ListRegionsOutput, ListRegionsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListRegionsOutput, ListRegionsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListRegionsPaginator
pub fn into_paginator(self) -> ListRegionsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
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.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
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.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
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.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
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.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
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.
sourcepub fn region_opt_status_contains(self, input: RegionOptStatus) -> Self
pub fn region_opt_status_contains(self, input: RegionOptStatus) -> Self
Appends an item to RegionOptStatusContains
.
To override the contents of this collection use set_region_opt_status_contains
.
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.
sourcepub fn set_region_opt_status_contains(
self,
input: Option<Vec<RegionOptStatus>>
) -> Self
pub fn set_region_opt_status_contains( self, input: Option<Vec<RegionOptStatus>> ) -> Self
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.
sourcepub fn get_region_opt_status_contains(&self) -> &Option<Vec<RegionOptStatus>>
pub fn get_region_opt_status_contains(&self) -> &Option<Vec<RegionOptStatus>>
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.
Trait Implementations§
source§impl Clone for ListRegionsFluentBuilder
impl Clone for ListRegionsFluentBuilder
source§fn clone(&self) -> ListRegionsFluentBuilder
fn clone(&self) -> ListRegionsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ListRegionsFluentBuilder
impl !RefUnwindSafe for ListRegionsFluentBuilder
impl Send for ListRegionsFluentBuilder
impl Sync for ListRegionsFluentBuilder
impl Unpin for ListRegionsFluentBuilder
impl !UnwindSafe for ListRegionsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more