pub struct Builder { /* private fields */ }Expand description
A builder for MonitoringConfiguration.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_monitoring_configuration(
self,
input: S3MonitoringConfiguration
) -> Self
pub fn s3_monitoring_configuration(
self,
input: S3MonitoringConfiguration
) -> Self
The Amazon S3 configuration for monitoring log publishing.
sourcepub fn set_s3_monitoring_configuration(
self,
input: Option<S3MonitoringConfiguration>
) -> Self
pub fn set_s3_monitoring_configuration(
self,
input: Option<S3MonitoringConfiguration>
) -> Self
The Amazon S3 configuration for monitoring log publishing.
Examples found in repository?
src/json_deser.rs (lines 2277-2279)
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307
pub(crate) fn deser_structure_crate_model_monitoring_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MonitoringConfiguration>,
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::monitoring_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() {
"s3MonitoringConfiguration" => {
builder = builder.set_s3_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_s3_monitoring_configuration(tokens)?
);
}
"managedPersistenceMonitoringConfiguration" => {
builder = builder.set_managed_persistence_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_managed_persistence_monitoring_configuration(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 managed_persistence_monitoring_configuration(
self,
input: ManagedPersistenceMonitoringConfiguration
) -> Self
pub fn managed_persistence_monitoring_configuration(
self,
input: ManagedPersistenceMonitoringConfiguration
) -> Self
The managed log persistence configuration for a job run.
sourcepub fn set_managed_persistence_monitoring_configuration(
self,
input: Option<ManagedPersistenceMonitoringConfiguration>
) -> Self
pub fn set_managed_persistence_monitoring_configuration(
self,
input: Option<ManagedPersistenceMonitoringConfiguration>
) -> Self
The managed log persistence configuration for a job run.
Examples found in repository?
src/json_deser.rs (lines 2282-2284)
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307
pub(crate) fn deser_structure_crate_model_monitoring_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MonitoringConfiguration>,
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::monitoring_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() {
"s3MonitoringConfiguration" => {
builder = builder.set_s3_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_s3_monitoring_configuration(tokens)?
);
}
"managedPersistenceMonitoringConfiguration" => {
builder = builder.set_managed_persistence_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_managed_persistence_monitoring_configuration(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) -> MonitoringConfiguration
pub fn build(self) -> MonitoringConfiguration
Consumes the builder and constructs a MonitoringConfiguration.
Examples found in repository?
src/json_deser.rs (line 2299)
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307
pub(crate) fn deser_structure_crate_model_monitoring_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MonitoringConfiguration>,
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::monitoring_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() {
"s3MonitoringConfiguration" => {
builder = builder.set_s3_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_s3_monitoring_configuration(tokens)?
);
}
"managedPersistenceMonitoringConfiguration" => {
builder = builder.set_managed_persistence_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_managed_persistence_monitoring_configuration(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",
),
),
}
}