pub struct Builder { /* private fields */ }Expand description
A builder for ConfigurationOverrides.
Implementations§
source§impl Builder
impl Builder
sourcepub fn application_configuration(self, input: Configuration) -> Self
pub fn application_configuration(self, input: Configuration) -> Self
Appends an item to application_configuration.
To override the contents of this collection use set_application_configuration.
The override configurations for the application.
sourcepub fn set_application_configuration(
self,
input: Option<Vec<Configuration>>
) -> Self
pub fn set_application_configuration(
self,
input: Option<Vec<Configuration>>
) -> Self
The override configurations for the application.
Examples found in repository?
src/json_deser.rs (lines 1597-1599)
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627
pub(crate) fn deser_structure_crate_model_configuration_overrides<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConfigurationOverrides>,
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::configuration_overrides::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() {
"applicationConfiguration" => {
builder = builder.set_application_configuration(
crate::json_deser::deser_list_com_amazonaws_emrserverless_configuration_list(tokens)?
);
}
"monitoringConfiguration" => {
builder = builder.set_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_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 monitoring_configuration(self, input: MonitoringConfiguration) -> Self
pub fn monitoring_configuration(self, input: MonitoringConfiguration) -> Self
The override configurations for monitoring.
sourcepub fn set_monitoring_configuration(
self,
input: Option<MonitoringConfiguration>
) -> Self
pub fn set_monitoring_configuration(
self,
input: Option<MonitoringConfiguration>
) -> Self
The override configurations for monitoring.
Examples found in repository?
src/json_deser.rs (lines 1602-1604)
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627
pub(crate) fn deser_structure_crate_model_configuration_overrides<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConfigurationOverrides>,
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::configuration_overrides::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() {
"applicationConfiguration" => {
builder = builder.set_application_configuration(
crate::json_deser::deser_list_com_amazonaws_emrserverless_configuration_list(tokens)?
);
}
"monitoringConfiguration" => {
builder = builder.set_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_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) -> ConfigurationOverrides
pub fn build(self) -> ConfigurationOverrides
Consumes the builder and constructs a ConfigurationOverrides.
Examples found in repository?
src/json_deser.rs (line 1619)
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627
pub(crate) fn deser_structure_crate_model_configuration_overrides<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ConfigurationOverrides>,
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::configuration_overrides::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() {
"applicationConfiguration" => {
builder = builder.set_application_configuration(
crate::json_deser::deser_list_com_amazonaws_emrserverless_configuration_list(tokens)?
);
}
"monitoringConfiguration" => {
builder = builder.set_monitoring_configuration(
crate::json_deser::deser_structure_crate_model_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",
),
),
}
}