Struct aws_sdk_account::operation::get_alternate_contact::builders::GetAlternateContactInputBuilder
source · #[non_exhaustive]pub struct GetAlternateContactInputBuilder { /* private fields */ }
Expand description
A builder for GetAlternateContactInput
.
Implementations§
source§impl GetAlternateContactInputBuilder
impl GetAlternateContactInputBuilder
sourcepub fn alternate_contact_type(self, input: AlternateContactType) -> Self
pub fn alternate_contact_type(self, input: AlternateContactType) -> Self
Specifies which alternate contact you want to retrieve.
This field is required.sourcepub fn set_alternate_contact_type(
self,
input: Option<AlternateContactType>,
) -> Self
pub fn set_alternate_contact_type( self, input: Option<AlternateContactType>, ) -> Self
Specifies which alternate contact you want to retrieve.
sourcepub fn get_alternate_contact_type(&self) -> &Option<AlternateContactType>
pub fn get_alternate_contact_type(&self) -> &Option<AlternateContactType>
Specifies which alternate contact you want to retrieve.
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 do not 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, and 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, then don't specify this parameter, and 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 do not 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, and 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, then don't specify this parameter, and 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 do not 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, and 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, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.
sourcepub fn build(self) -> Result<GetAlternateContactInput, BuildError>
pub fn build(self) -> Result<GetAlternateContactInput, BuildError>
Consumes the builder and constructs a GetAlternateContactInput
.
source§impl GetAlternateContactInputBuilder
impl GetAlternateContactInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetAlternateContactOutput, SdkError<GetAlternateContactError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetAlternateContactOutput, SdkError<GetAlternateContactError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetAlternateContactInputBuilder
impl Clone for GetAlternateContactInputBuilder
source§fn clone(&self) -> GetAlternateContactInputBuilder
fn clone(&self) -> GetAlternateContactInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetAlternateContactInputBuilder
impl Default for GetAlternateContactInputBuilder
source§fn default() -> GetAlternateContactInputBuilder
fn default() -> GetAlternateContactInputBuilder
source§impl PartialEq for GetAlternateContactInputBuilder
impl PartialEq for GetAlternateContactInputBuilder
source§fn eq(&self, other: &GetAlternateContactInputBuilder) -> bool
fn eq(&self, other: &GetAlternateContactInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetAlternateContactInputBuilder
Auto Trait Implementations§
impl Freeze for GetAlternateContactInputBuilder
impl RefUnwindSafe for GetAlternateContactInputBuilder
impl Send for GetAlternateContactInputBuilder
impl Sync for GetAlternateContactInputBuilder
impl Unpin for GetAlternateContactInputBuilder
impl UnwindSafe for GetAlternateContactInputBuilder
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