Struct aws_sdk_networkmanager::model::route_analysis_path::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for RouteAnalysisPath.
Implementations§
source§impl Builder
impl Builder
sourcepub fn completion_status(self, input: RouteAnalysisCompletion) -> Self
pub fn completion_status(self, input: RouteAnalysisCompletion) -> Self
The status of the analysis at completion.
sourcepub fn set_completion_status(
self,
input: Option<RouteAnalysisCompletion>
) -> Self
pub fn set_completion_status(
self,
input: Option<RouteAnalysisCompletion>
) -> Self
The status of the analysis at completion.
Examples found in repository?
src/json_deser.rs (lines 9593-9595)
9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623
pub(crate) fn deser_structure_crate_model_route_analysis_path<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::RouteAnalysisPath>,
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::route_analysis_path::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() {
"CompletionStatus" => {
builder = builder.set_completion_status(
crate::json_deser::deser_structure_crate_model_route_analysis_completion(tokens)?
);
}
"Path" => {
builder = builder.set_path(
crate::json_deser::deser_list_com_amazonaws_networkmanager_path_component_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 path(self, input: PathComponent) -> Self
pub fn path(self, input: PathComponent) -> Self
Appends an item to path.
To override the contents of this collection use set_path.
The route analysis path.
sourcepub fn set_path(self, input: Option<Vec<PathComponent>>) -> Self
pub fn set_path(self, input: Option<Vec<PathComponent>>) -> Self
The route analysis path.
Examples found in repository?
src/json_deser.rs (lines 9598-9600)
9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623
pub(crate) fn deser_structure_crate_model_route_analysis_path<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::RouteAnalysisPath>,
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::route_analysis_path::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() {
"CompletionStatus" => {
builder = builder.set_completion_status(
crate::json_deser::deser_structure_crate_model_route_analysis_completion(tokens)?
);
}
"Path" => {
builder = builder.set_path(
crate::json_deser::deser_list_com_amazonaws_networkmanager_path_component_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) -> RouteAnalysisPath
pub fn build(self) -> RouteAnalysisPath
Consumes the builder and constructs a RouteAnalysisPath.
Examples found in repository?
src/json_deser.rs (line 9615)
9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623
pub(crate) fn deser_structure_crate_model_route_analysis_path<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::RouteAnalysisPath>,
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::route_analysis_path::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() {
"CompletionStatus" => {
builder = builder.set_completion_status(
crate::json_deser::deser_structure_crate_model_route_analysis_completion(tokens)?
);
}
"Path" => {
builder = builder.set_path(
crate::json_deser::deser_list_com_amazonaws_networkmanager_path_component_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",
),
),
}
}