Struct aws_sdk_account::operation::get_region_opt_status::builders::GetRegionOptStatusInputBuilder
source · #[non_exhaustive]pub struct GetRegionOptStatusInputBuilder { /* private fields */ }
Expand description
A builder for GetRegionOptStatusInput
.
Implementations§
source§impl GetRegionOptStatusInputBuilder
impl GetRegionOptStatusInputBuilder
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 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 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 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.
sourcepub fn build(self) -> Result<GetRegionOptStatusInput, BuildError>
pub fn build(self) -> Result<GetRegionOptStatusInput, BuildError>
Consumes the builder and constructs a GetRegionOptStatusInput
.
source§impl GetRegionOptStatusInputBuilder
impl GetRegionOptStatusInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetRegionOptStatusOutput, SdkError<GetRegionOptStatusError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetRegionOptStatusOutput, SdkError<GetRegionOptStatusError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRegionOptStatusInputBuilder
impl Clone for GetRegionOptStatusInputBuilder
source§fn clone(&self) -> GetRegionOptStatusInputBuilder
fn clone(&self) -> GetRegionOptStatusInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRegionOptStatusInputBuilder
impl Default for GetRegionOptStatusInputBuilder
source§fn default() -> GetRegionOptStatusInputBuilder
fn default() -> GetRegionOptStatusInputBuilder
source§impl PartialEq for GetRegionOptStatusInputBuilder
impl PartialEq for GetRegionOptStatusInputBuilder
source§fn eq(&self, other: &GetRegionOptStatusInputBuilder) -> bool
fn eq(&self, other: &GetRegionOptStatusInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRegionOptStatusInputBuilder
Auto Trait Implementations§
impl Freeze for GetRegionOptStatusInputBuilder
impl RefUnwindSafe for GetRegionOptStatusInputBuilder
impl Send for GetRegionOptStatusInputBuilder
impl Sync for GetRegionOptStatusInputBuilder
impl Unpin for GetRegionOptStatusInputBuilder
impl UnwindSafe for GetRegionOptStatusInputBuilder
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