Struct aws_sdk_connect::operation::release_phone_number::builders::ReleasePhoneNumberInputBuilder
source · #[non_exhaustive]pub struct ReleasePhoneNumberInputBuilder { /* private fields */ }
Expand description
A builder for ReleasePhoneNumberInput
.
Implementations§
source§impl ReleasePhoneNumberInputBuilder
impl ReleasePhoneNumberInputBuilder
sourcepub fn phone_number_id(self, input: impl Into<String>) -> Self
pub fn phone_number_id(self, input: impl Into<String>) -> Self
A unique identifier for the phone number.
This field is required.sourcepub fn set_phone_number_id(self, input: Option<String>) -> Self
pub fn set_phone_number_id(self, input: Option<String>) -> Self
A unique identifier for the phone number.
sourcepub fn get_phone_number_id(&self) -> &Option<String>
pub fn get_phone_number_id(&self) -> &Option<String>
A unique identifier for the phone number.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn build(self) -> Result<ReleasePhoneNumberInput, BuildError>
pub fn build(self) -> Result<ReleasePhoneNumberInput, BuildError>
Consumes the builder and constructs a ReleasePhoneNumberInput
.
source§impl ReleasePhoneNumberInputBuilder
impl ReleasePhoneNumberInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ReleasePhoneNumberOutput, SdkError<ReleasePhoneNumberError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ReleasePhoneNumberOutput, SdkError<ReleasePhoneNumberError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ReleasePhoneNumberInputBuilder
impl Clone for ReleasePhoneNumberInputBuilder
source§fn clone(&self) -> ReleasePhoneNumberInputBuilder
fn clone(&self) -> ReleasePhoneNumberInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ReleasePhoneNumberInputBuilder
impl Default for ReleasePhoneNumberInputBuilder
source§fn default() -> ReleasePhoneNumberInputBuilder
fn default() -> ReleasePhoneNumberInputBuilder
source§impl PartialEq for ReleasePhoneNumberInputBuilder
impl PartialEq for ReleasePhoneNumberInputBuilder
source§fn eq(&self, other: &ReleasePhoneNumberInputBuilder) -> bool
fn eq(&self, other: &ReleasePhoneNumberInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.