pub struct Builder { /* private fields */ }Expand description
A builder for UpdateDomainNameInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name.
sourcepub fn domain_name_configurations(self, input: DomainNameConfiguration) -> Self
pub fn domain_name_configurations(self, input: DomainNameConfiguration) -> Self
Appends an item to domain_name_configurations.
To override the contents of this collection use set_domain_name_configurations.
The domain name configurations.
sourcepub fn set_domain_name_configurations(
self,
input: Option<Vec<DomainNameConfiguration>>
) -> Self
pub fn set_domain_name_configurations(
self,
input: Option<Vec<DomainNameConfiguration>>
) -> Self
The domain name configurations.
sourcepub fn mutual_tls_authentication(
self,
input: MutualTlsAuthenticationInput
) -> Self
pub fn mutual_tls_authentication(
self,
input: MutualTlsAuthenticationInput
) -> Self
The mutual TLS authentication configuration for a custom domain name.
sourcepub fn set_mutual_tls_authentication(
self,
input: Option<MutualTlsAuthenticationInput>
) -> Self
pub fn set_mutual_tls_authentication(
self,
input: Option<MutualTlsAuthenticationInput>
) -> Self
The mutual TLS authentication configuration for a custom domain name.
sourcepub fn build(self) -> Result<UpdateDomainNameInput, BuildError>
pub fn build(self) -> Result<UpdateDomainNameInput, BuildError>
Consumes the builder and constructs a UpdateDomainNameInput.
Examples found in repository?
src/client.rs (line 8509)
8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDomainName,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDomainNameError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateDomainNameOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDomainNameError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}