Struct aws_sdk_quicksight::model::data_set_configuration::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DataSetConfiguration.
Implementations§
source§impl Builder
impl Builder
sourcepub fn placeholder(self, input: impl Into<String>) -> Self
pub fn placeholder(self, input: impl Into<String>) -> Self
Placeholder.
sourcepub fn set_placeholder(self, input: Option<String>) -> Self
pub fn set_placeholder(self, input: Option<String>) -> Self
Placeholder.
Examples found in repository?
src/json_deser.rs (lines 18288-18294)
18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329
pub(crate) fn deser_structure_crate_model_data_set_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::DataSetConfiguration>,
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::data_set_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() {
"Placeholder" => {
builder = builder.set_placeholder(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DataSetSchema" => {
builder = builder.set_data_set_schema(
crate::json_deser::deser_structure_crate_model_data_set_schema(
tokens,
)?,
);
}
"ColumnGroupSchemaList" => {
builder = builder.set_column_group_schema_list(
crate::json_deser::deser_list_com_amazonaws_quicksight_column_group_schema_list(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 data_set_schema(self, input: DataSetSchema) -> Self
pub fn data_set_schema(self, input: DataSetSchema) -> Self
Dataset schema.
sourcepub fn set_data_set_schema(self, input: Option<DataSetSchema>) -> Self
pub fn set_data_set_schema(self, input: Option<DataSetSchema>) -> Self
Dataset schema.
Examples found in repository?
src/json_deser.rs (lines 18297-18301)
18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329
pub(crate) fn deser_structure_crate_model_data_set_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::DataSetConfiguration>,
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::data_set_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() {
"Placeholder" => {
builder = builder.set_placeholder(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DataSetSchema" => {
builder = builder.set_data_set_schema(
crate::json_deser::deser_structure_crate_model_data_set_schema(
tokens,
)?,
);
}
"ColumnGroupSchemaList" => {
builder = builder.set_column_group_schema_list(
crate::json_deser::deser_list_com_amazonaws_quicksight_column_group_schema_list(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 column_group_schema_list(self, input: ColumnGroupSchema) -> Self
pub fn column_group_schema_list(self, input: ColumnGroupSchema) -> Self
Appends an item to column_group_schema_list.
To override the contents of this collection use set_column_group_schema_list.
A structure containing the list of column group schemas.
sourcepub fn set_column_group_schema_list(
self,
input: Option<Vec<ColumnGroupSchema>>
) -> Self
pub fn set_column_group_schema_list(
self,
input: Option<Vec<ColumnGroupSchema>>
) -> Self
A structure containing the list of column group schemas.
Examples found in repository?
src/json_deser.rs (lines 18304-18306)
18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329
pub(crate) fn deser_structure_crate_model_data_set_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::DataSetConfiguration>,
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::data_set_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() {
"Placeholder" => {
builder = builder.set_placeholder(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DataSetSchema" => {
builder = builder.set_data_set_schema(
crate::json_deser::deser_structure_crate_model_data_set_schema(
tokens,
)?,
);
}
"ColumnGroupSchemaList" => {
builder = builder.set_column_group_schema_list(
crate::json_deser::deser_list_com_amazonaws_quicksight_column_group_schema_list(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) -> DataSetConfiguration
pub fn build(self) -> DataSetConfiguration
Consumes the builder and constructs a DataSetConfiguration.
Examples found in repository?
src/json_deser.rs (line 18321)
18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329
pub(crate) fn deser_structure_crate_model_data_set_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::DataSetConfiguration>,
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::data_set_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() {
"Placeholder" => {
builder = builder.set_placeholder(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DataSetSchema" => {
builder = builder.set_data_set_schema(
crate::json_deser::deser_structure_crate_model_data_set_schema(
tokens,
)?,
);
}
"ColumnGroupSchemaList" => {
builder = builder.set_column_group_schema_list(
crate::json_deser::deser_list_com_amazonaws_quicksight_column_group_schema_list(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",
),
),
}
}