#[non_exhaustive]pub struct CreateSiteInputBuilder { /* private fields */ }Expand description
A builder for CreateSiteInput.
Implementations§
source§impl CreateSiteInputBuilder
impl CreateSiteInputBuilder
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.
sourcepub fn build(self) -> Result<CreateSiteInput, BuildError>
pub fn build(self) -> Result<CreateSiteInput, BuildError>
Consumes the builder and constructs a CreateSiteInput.
source§impl CreateSiteInputBuilder
impl CreateSiteInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSiteOutput, SdkError<CreateSiteError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSiteOutput, SdkError<CreateSiteError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSiteInputBuilder
impl Clone for CreateSiteInputBuilder
source§fn clone(&self) -> CreateSiteInputBuilder
fn clone(&self) -> CreateSiteInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateSiteInputBuilder
impl Debug for CreateSiteInputBuilder
source§impl Default for CreateSiteInputBuilder
impl Default for CreateSiteInputBuilder
source§fn default() -> CreateSiteInputBuilder
fn default() -> CreateSiteInputBuilder
source§impl PartialEq<CreateSiteInputBuilder> for CreateSiteInputBuilder
impl PartialEq<CreateSiteInputBuilder> for CreateSiteInputBuilder
source§fn eq(&self, other: &CreateSiteInputBuilder) -> bool
fn eq(&self, other: &CreateSiteInputBuilder) -> bool
self and other values to be equal, and is used
by ==.