pub struct Builder { /* private fields */ }Expand description
A builder for UpdateDashboardPublishedVersionInput.
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 dashboard that you're updating.
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 dashboard that you're updating.
sourcepub fn dashboard_id(self, input: impl Into<String>) -> Self
pub fn dashboard_id(self, input: impl Into<String>) -> Self
The ID for the dashboard.
sourcepub fn set_dashboard_id(self, input: Option<String>) -> Self
pub fn set_dashboard_id(self, input: Option<String>) -> Self
The ID for the dashboard.
sourcepub fn version_number(self, input: i64) -> Self
pub fn version_number(self, input: i64) -> Self
The version number of the dashboard.
sourcepub fn set_version_number(self, input: Option<i64>) -> Self
pub fn set_version_number(self, input: Option<i64>) -> Self
The version number of the dashboard.
sourcepub fn build(self) -> Result<UpdateDashboardPublishedVersionInput, BuildError>
pub fn build(self) -> Result<UpdateDashboardPublishedVersionInput, BuildError>
Consumes the builder and constructs a UpdateDashboardPublishedVersionInput.
Examples found in repository?
src/client.rs (line 13772)
13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDashboardPublishedVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDashboardPublishedVersionError>,
> {
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::UpdateDashboardPublishedVersionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDashboardPublishedVersionError>,
> {
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
}