Struct aws_sdk_devicefarm::model::customer_artifact_paths::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for CustomerArtifactPaths.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ios_paths(self, input: impl Into<String>) -> Self
pub fn ios_paths(self, input: impl Into<String>) -> Self
Appends an item to ios_paths.
To override the contents of this collection use set_ios_paths.
Comma-separated list of paths on the iOS device where the artifacts generated by the customer's tests are pulled from.
sourcepub fn set_ios_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_ios_paths(self, input: Option<Vec<String>>) -> Self
Comma-separated list of paths on the iOS device where the artifacts generated by the customer's tests are pulled from.
Examples found in repository?
8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548
pub(crate) fn deser_structure_crate_model_customer_artifact_paths<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CustomerArtifactPaths>,
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::customer_artifact_paths::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() {
"iosPaths" => {
builder = builder.set_ios_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_ios_paths(tokens)?
);
}
"androidPaths" => {
builder = builder.set_android_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_android_paths(tokens)?
);
}
"deviceHostPaths" => {
builder = builder.set_device_host_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_device_host_paths(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 android_paths(self, input: impl Into<String>) -> Self
pub fn android_paths(self, input: impl Into<String>) -> Self
Appends an item to android_paths.
To override the contents of this collection use set_android_paths.
Comma-separated list of paths on the Android device where the artifacts generated by the customer's tests are pulled from.
sourcepub fn set_android_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_android_paths(self, input: Option<Vec<String>>) -> Self
Comma-separated list of paths on the Android device where the artifacts generated by the customer's tests are pulled from.
Examples found in repository?
8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548
pub(crate) fn deser_structure_crate_model_customer_artifact_paths<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CustomerArtifactPaths>,
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::customer_artifact_paths::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() {
"iosPaths" => {
builder = builder.set_ios_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_ios_paths(tokens)?
);
}
"androidPaths" => {
builder = builder.set_android_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_android_paths(tokens)?
);
}
"deviceHostPaths" => {
builder = builder.set_device_host_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_device_host_paths(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 device_host_paths(self, input: impl Into<String>) -> Self
pub fn device_host_paths(self, input: impl Into<String>) -> Self
Appends an item to device_host_paths.
To override the contents of this collection use set_device_host_paths.
Comma-separated list of paths in the test execution environment where the artifacts generated by the customer's tests are pulled from.
sourcepub fn set_device_host_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_device_host_paths(self, input: Option<Vec<String>>) -> Self
Comma-separated list of paths in the test execution environment where the artifacts generated by the customer's tests are pulled from.
Examples found in repository?
8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548
pub(crate) fn deser_structure_crate_model_customer_artifact_paths<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CustomerArtifactPaths>,
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::customer_artifact_paths::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() {
"iosPaths" => {
builder = builder.set_ios_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_ios_paths(tokens)?
);
}
"androidPaths" => {
builder = builder.set_android_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_android_paths(tokens)?
);
}
"deviceHostPaths" => {
builder = builder.set_device_host_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_device_host_paths(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) -> CustomerArtifactPaths
pub fn build(self) -> CustomerArtifactPaths
Consumes the builder and constructs a CustomerArtifactPaths.
Examples found in repository?
8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548
pub(crate) fn deser_structure_crate_model_customer_artifact_paths<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::CustomerArtifactPaths>,
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::customer_artifact_paths::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() {
"iosPaths" => {
builder = builder.set_ios_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_ios_paths(tokens)?
);
}
"androidPaths" => {
builder = builder.set_android_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_android_paths(tokens)?
);
}
"deviceHostPaths" => {
builder = builder.set_device_host_paths(
crate::json_deser::deser_list_com_amazonaws_devicefarm_device_host_paths(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",
),
),
}
}