Struct aws_sdk_quicksight::input::update_theme_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for UpdateThemeInput.
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 theme 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 theme that you're updating.
sourcepub fn set_theme_id(self, input: Option<String>) -> Self
pub fn set_theme_id(self, input: Option<String>) -> Self
The ID for the theme.
sourcepub fn base_theme_id(self, input: impl Into<String>) -> Self
pub fn base_theme_id(self, input: impl Into<String>) -> Self
The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.
sourcepub fn set_base_theme_id(self, input: Option<String>) -> Self
pub fn set_base_theme_id(self, input: Option<String>) -> Self
The theme ID, defined by Amazon QuickSight, that a custom theme inherits from. All themes initially inherit from a default Amazon QuickSight theme.
sourcepub fn version_description(self, input: impl Into<String>) -> Self
pub fn version_description(self, input: impl Into<String>) -> Self
A description of the theme version that you're updating Every time that you call UpdateTheme, you create a new version of the theme. Each version of the theme maintains a description of the version in VersionDescription.
sourcepub fn set_version_description(self, input: Option<String>) -> Self
pub fn set_version_description(self, input: Option<String>) -> Self
A description of the theme version that you're updating Every time that you call UpdateTheme, you create a new version of the theme. Each version of the theme maintains a description of the version in VersionDescription.
sourcepub fn configuration(self, input: ThemeConfiguration) -> Self
pub fn configuration(self, input: ThemeConfiguration) -> Self
The theme configuration, which contains the theme display properties.
sourcepub fn set_configuration(self, input: Option<ThemeConfiguration>) -> Self
pub fn set_configuration(self, input: Option<ThemeConfiguration>) -> Self
The theme configuration, which contains the theme display properties.
sourcepub fn build(self) -> Result<UpdateThemeInput, BuildError>
pub fn build(self) -> Result<UpdateThemeInput, BuildError>
Consumes the builder and constructs a UpdateThemeInput.
Examples found in repository?
15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTheme,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateThemeError>,
> {
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::UpdateThemeOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateThemeError>,
> {
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
}