Struct aws_sdk_quicksight::input::restore_analysis_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for RestoreAnalysisInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that contains the analysis.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that contains the analysis.
sourcepub fn analysis_id(self, input: impl Into<String>) -> Self
pub fn analysis_id(self, input: impl Into<String>) -> Self
The ID of the analysis that you're restoring.
sourcepub fn set_analysis_id(self, input: Option<String>) -> Self
pub fn set_analysis_id(self, input: Option<String>) -> Self
The ID of the analysis that you're restoring.
sourcepub fn build(self) -> Result<RestoreAnalysisInput, BuildError>
pub fn build(self) -> Result<RestoreAnalysisInput, BuildError>
Consumes the builder and constructs a RestoreAnalysisInput.
Examples found in repository?
src/client.rs (line 12238)
12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreAnalysis,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreAnalysisError>,
> {
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::RestoreAnalysisOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreAnalysisError>,
> {
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
}