Struct aws_sdk_account::operation::get_region_opt_status::builders::GetRegionOptStatusFluentBuilder
source · pub struct GetRegionOptStatusFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetRegionOptStatus
.
Retrieves the opt-in status of a particular Region.
Implementations§
source§impl GetRegionOptStatusFluentBuilder
impl GetRegionOptStatusFluentBuilder
sourcepub fn as_input(&self) -> &GetRegionOptStatusInputBuilder
pub fn as_input(&self) -> &GetRegionOptStatusInputBuilder
Access the GetRegionOptStatus as a reference.
sourcepub async fn send(
self
) -> Result<GetRegionOptStatusOutput, SdkError<GetRegionOptStatusError, HttpResponse>>
pub async fn send( self ) -> Result<GetRegionOptStatusOutput, SdkError<GetRegionOptStatusError, 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<GetRegionOptStatusOutput, GetRegionOptStatusError, Self>
pub fn customize( self ) -> CustomizableOperation<GetRegionOptStatusOutput, GetRegionOptStatusError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 region_name(self, input: impl Into<String>) -> Self
pub fn region_name(self, input: impl Into<String>) -> Self
Specifies the Region-code for a given Region name (for example, af-south-1
). This function will return the status of whatever Region you pass into this parameter.
sourcepub fn set_region_name(self, input: Option<String>) -> Self
pub fn set_region_name(self, input: Option<String>) -> Self
Specifies the Region-code for a given Region name (for example, af-south-1
). This function will return the status of whatever Region you pass into this parameter.
sourcepub fn get_region_name(&self) -> &Option<String>
pub fn get_region_name(&self) -> &Option<String>
Specifies the Region-code for a given Region name (for example, af-south-1
). This function will return the status of whatever Region you pass into this parameter.
Trait Implementations§
source§impl Clone for GetRegionOptStatusFluentBuilder
impl Clone for GetRegionOptStatusFluentBuilder
source§fn clone(&self) -> GetRegionOptStatusFluentBuilder
fn clone(&self) -> GetRegionOptStatusFluentBuilder
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 GetRegionOptStatusFluentBuilder
impl !RefUnwindSafe for GetRegionOptStatusFluentBuilder
impl Send for GetRegionOptStatusFluentBuilder
impl Sync for GetRegionOptStatusFluentBuilder
impl Unpin for GetRegionOptStatusFluentBuilder
impl !UnwindSafe for GetRegionOptStatusFluentBuilder
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