pub struct CreateSiteFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateSite.
Grants permission to create a site
Implementations§
source§impl CreateSiteFluentBuilder
impl CreateSiteFluentBuilder
sourcepub fn as_input(&self) -> &CreateSiteInputBuilder
pub fn as_input(&self) -> &CreateSiteInputBuilder
Access the CreateSite as a reference.
sourcepub async fn send(
self
) -> Result<CreateSiteOutput, SdkError<CreateSiteError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSiteOutput, SdkError<CreateSiteError, 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 async fn customize(
self
) -> Result<CustomizableOperation<CreateSiteOutput, CreateSiteError>, SdkError<CreateSiteError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateSiteOutput, CreateSiteError>, SdkError<CreateSiteError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Token used for detecting replayed requests. Replayed requests will not be performed multiple times.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Token used for detecting replayed requests. Replayed requests will not be performed multiple times.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Token used for detecting replayed requests. Replayed requests will not be performed multiple times.
sourcepub fn country_code(self, input: impl Into<String>) -> Self
pub fn country_code(self, input: impl Into<String>) -> Self
A valid ISO 3166-1 alpha-2 code for the country in which the site resides. e.g., US.
sourcepub fn set_country_code(self, input: Option<String>) -> Self
pub fn set_country_code(self, input: Option<String>) -> Self
A valid ISO 3166-1 alpha-2 code for the country in which the site resides. e.g., US.
sourcepub fn get_country_code(&self) -> &Option<String>
pub fn get_country_code(&self) -> &Option<String>
A valid ISO 3166-1 alpha-2 code for the country in which the site resides. e.g., US.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A high-level description of the site.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A high-level description of the site.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A high-level description of the site.
Trait Implementations§
source§impl Clone for CreateSiteFluentBuilder
impl Clone for CreateSiteFluentBuilder
source§fn clone(&self) -> CreateSiteFluentBuilder
fn clone(&self) -> CreateSiteFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more