pub struct Builder { /* private fields */ }Expand description
A builder for TranscriptSourceSetting.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_bucket_transcript_source(self, input: S3BucketTranscriptSource) -> Self
pub fn s3_bucket_transcript_source(self, input: S3BucketTranscriptSource) -> Self
Indicates the setting of the Amazon S3 bucket where the transcript is stored.
sourcepub fn set_s3_bucket_transcript_source(
self,
input: Option<S3BucketTranscriptSource>
) -> Self
pub fn set_s3_bucket_transcript_source(
self,
input: Option<S3BucketTranscriptSource>
) -> Self
Indicates the setting of the Amazon S3 bucket where the transcript is stored.
Examples found in repository?
src/json_deser.rs (lines 8230-8232)
8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255
pub(crate) fn deser_structure_crate_model_transcript_source_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::TranscriptSourceSetting>,
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::transcript_source_setting::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() {
"s3BucketTranscriptSource" => {
builder = builder.set_s3_bucket_transcript_source(
crate::json_deser::deser_structure_crate_model_s3_bucket_transcript_source(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) -> TranscriptSourceSetting
pub fn build(self) -> TranscriptSourceSetting
Consumes the builder and constructs a TranscriptSourceSetting.
Examples found in repository?
src/json_deser.rs (line 8247)
8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255
pub(crate) fn deser_structure_crate_model_transcript_source_setting<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::TranscriptSourceSetting>,
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::transcript_source_setting::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() {
"s3BucketTranscriptSource" => {
builder = builder.set_s3_bucket_transcript_source(
crate::json_deser::deser_structure_crate_model_s3_bucket_transcript_source(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",
),
),
}
}