Struct aws_sdk_account::operation::put_alternate_contact::builders::PutAlternateContactInputBuilder
source · #[non_exhaustive]pub struct PutAlternateContactInputBuilder { /* private fields */ }
Expand description
A builder for PutAlternateContactInput
.
Implementations§
source§impl PutAlternateContactInputBuilder
impl PutAlternateContactInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Specifies a name for the alternate contact.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Specifies a name for the alternate contact.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
Specifies a title for the alternate contact.
This field is required.sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
Specifies a title for the alternate contact.
sourcepub fn email_address(self, input: impl Into<String>) -> Self
pub fn email_address(self, input: impl Into<String>) -> Self
Specifies an email address for the alternate contact.
This field is required.sourcepub fn set_email_address(self, input: Option<String>) -> Self
pub fn set_email_address(self, input: Option<String>) -> Self
Specifies an email address for the alternate contact.
sourcepub fn get_email_address(&self) -> &Option<String>
pub fn get_email_address(&self) -> &Option<String>
Specifies an email address for the alternate contact.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
Specifies a phone number for the alternate contact.
This field is required.sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
Specifies a phone number for the alternate contact.
sourcepub fn get_phone_number(&self) -> &Option<String>
pub fn get_phone_number(&self) -> &Option<String>
Specifies a phone number for the alternate contact.
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 create or update.
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 create or update.
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 create or update.
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<PutAlternateContactInput, BuildError>
pub fn build(self) -> Result<PutAlternateContactInput, BuildError>
Consumes the builder and constructs a PutAlternateContactInput
.
source§impl PutAlternateContactInputBuilder
impl PutAlternateContactInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutAlternateContactOutput, SdkError<PutAlternateContactError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutAlternateContactOutput, SdkError<PutAlternateContactError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutAlternateContactInputBuilder
impl Clone for PutAlternateContactInputBuilder
source§fn clone(&self) -> PutAlternateContactInputBuilder
fn clone(&self) -> PutAlternateContactInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutAlternateContactInputBuilder
impl Default for PutAlternateContactInputBuilder
source§fn default() -> PutAlternateContactInputBuilder
fn default() -> PutAlternateContactInputBuilder
source§impl PartialEq for PutAlternateContactInputBuilder
impl PartialEq for PutAlternateContactInputBuilder
source§fn eq(&self, other: &PutAlternateContactInputBuilder) -> bool
fn eq(&self, other: &PutAlternateContactInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutAlternateContactInputBuilder
Auto Trait Implementations§
impl Freeze for PutAlternateContactInputBuilder
impl RefUnwindSafe for PutAlternateContactInputBuilder
impl Send for PutAlternateContactInputBuilder
impl Sync for PutAlternateContactInputBuilder
impl Unpin for PutAlternateContactInputBuilder
impl UnwindSafe for PutAlternateContactInputBuilder
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