Struct aws_sdk_quicksight::model::theme_configuration::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ThemeConfiguration.
Implementations§
source§impl Builder
impl Builder
sourcepub fn data_color_palette(self, input: DataColorPalette) -> Self
pub fn data_color_palette(self, input: DataColorPalette) -> Self
Color properties that apply to chart data colors.
sourcepub fn set_data_color_palette(self, input: Option<DataColorPalette>) -> Self
pub fn set_data_color_palette(self, input: Option<DataColorPalette>) -> Self
Color properties that apply to chart data colors.
Examples found in repository?
src/json_deser.rs (lines 17336-17338)
17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373
pub(crate) fn deser_structure_crate_model_theme_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ThemeConfiguration>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::theme_configuration::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"DataColorPalette" => {
builder = builder.set_data_color_palette(
crate::json_deser::deser_structure_crate_model_data_color_palette(tokens)?
);
}
"UIColorPalette" => {
builder = builder.set_ui_color_palette(
crate::json_deser::deser_structure_crate_model_ui_color_palette(tokens)?
);
}
"Sheet" => {
builder = builder.set_sheet(
crate::json_deser::deser_structure_crate_model_sheet_style(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn ui_color_palette(self, input: UiColorPalette) -> Self
pub fn ui_color_palette(self, input: UiColorPalette) -> Self
Color properties that apply to the UI and to charts, excluding the colors that apply to data.
sourcepub fn set_ui_color_palette(self, input: Option<UiColorPalette>) -> Self
pub fn set_ui_color_palette(self, input: Option<UiColorPalette>) -> Self
Color properties that apply to the UI and to charts, excluding the colors that apply to data.
Examples found in repository?
src/json_deser.rs (lines 17341-17343)
17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373
pub(crate) fn deser_structure_crate_model_theme_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ThemeConfiguration>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::theme_configuration::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"DataColorPalette" => {
builder = builder.set_data_color_palette(
crate::json_deser::deser_structure_crate_model_data_color_palette(tokens)?
);
}
"UIColorPalette" => {
builder = builder.set_ui_color_palette(
crate::json_deser::deser_structure_crate_model_ui_color_palette(tokens)?
);
}
"Sheet" => {
builder = builder.set_sheet(
crate::json_deser::deser_structure_crate_model_sheet_style(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn sheet(self, input: SheetStyle) -> Self
pub fn sheet(self, input: SheetStyle) -> Self
Display options related to sheets.
sourcepub fn set_sheet(self, input: Option<SheetStyle>) -> Self
pub fn set_sheet(self, input: Option<SheetStyle>) -> Self
Display options related to sheets.
Examples found in repository?
src/json_deser.rs (lines 17346-17350)
17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373
pub(crate) fn deser_structure_crate_model_theme_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ThemeConfiguration>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::theme_configuration::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"DataColorPalette" => {
builder = builder.set_data_color_palette(
crate::json_deser::deser_structure_crate_model_data_color_palette(tokens)?
);
}
"UIColorPalette" => {
builder = builder.set_ui_color_palette(
crate::json_deser::deser_structure_crate_model_ui_color_palette(tokens)?
);
}
"Sheet" => {
builder = builder.set_sheet(
crate::json_deser::deser_structure_crate_model_sheet_style(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn build(self) -> ThemeConfiguration
pub fn build(self) -> ThemeConfiguration
Consumes the builder and constructs a ThemeConfiguration.
Examples found in repository?
src/json_deser.rs (line 17365)
17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373
pub(crate) fn deser_structure_crate_model_theme_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ThemeConfiguration>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::theme_configuration::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"DataColorPalette" => {
builder = builder.set_data_color_palette(
crate::json_deser::deser_structure_crate_model_data_color_palette(tokens)?
);
}
"UIColorPalette" => {
builder = builder.set_ui_color_palette(
crate::json_deser::deser_structure_crate_model_ui_color_palette(tokens)?
);
}
"Sheet" => {
builder = builder.set_sheet(
crate::json_deser::deser_structure_crate_model_sheet_style(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}