pub struct CreateAddressFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAddress
.
Creates an address for a Snow device to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown. If providing an address as a JSON file through the cli-input-json
option, include the full file path. For example, --cli-input-json file://create-address.json
.
Implementations§
source§impl CreateAddressFluentBuilder
impl CreateAddressFluentBuilder
sourcepub fn as_input(&self) -> &CreateAddressInputBuilder
pub fn as_input(&self) -> &CreateAddressInputBuilder
Access the CreateAddress as a reference.
sourcepub async fn send(
self
) -> Result<CreateAddressOutput, SdkError<CreateAddressError, HttpResponse>>
pub async fn send( self ) -> Result<CreateAddressOutput, SdkError<CreateAddressError, 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<CreateAddressOutput, CreateAddressError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateAddressOutput, CreateAddressError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn address(self, input: Address) -> Self
pub fn address(self, input: Address) -> Self
The address that you want the Snow device shipped to.
sourcepub fn set_address(self, input: Option<Address>) -> Self
pub fn set_address(self, input: Option<Address>) -> Self
The address that you want the Snow device shipped to.
sourcepub fn get_address(&self) -> &Option<Address>
pub fn get_address(&self) -> &Option<Address>
The address that you want the Snow device shipped to.
Trait Implementations§
source§impl Clone for CreateAddressFluentBuilder
impl Clone for CreateAddressFluentBuilder
source§fn clone(&self) -> CreateAddressFluentBuilder
fn clone(&self) -> CreateAddressFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more