Struct aws_sdk_cloudfront::input::get_invalidation_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetInvalidationInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn distribution_id(self, input: impl Into<String>) -> Self
pub fn distribution_id(self, input: impl Into<String>) -> Self
The distribution's ID.
sourcepub fn set_distribution_id(self, input: Option<String>) -> Self
pub fn set_distribution_id(self, input: Option<String>) -> Self
The distribution's ID.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier for the invalidation request, for example, IDFDVBD632BHDS5
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier for the invalidation request, for example, IDFDVBD632BHDS5
.
sourcepub fn build(self) -> Result<GetInvalidationInput, BuildError>
pub fn build(self) -> Result<GetInvalidationInput, BuildError>
Consumes the builder and constructs a GetInvalidationInput
.
Examples found in repository?
src/client.rs (line 4978)
4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetInvalidation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetInvalidationError>,
> {
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::GetInvalidationOutput,
aws_smithy_http::result::SdkError<crate::error::GetInvalidationError>,
> {
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
}