Struct aws_sdk_codepipeline::model::executor_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ExecutorConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn lambda_executor_configuration(
self,
input: LambdaExecutorConfiguration
) -> Self
pub fn lambda_executor_configuration(
self,
input: LambdaExecutorConfiguration
) -> Self
Details about the Lambda
executor of the action type.
sourcepub fn set_lambda_executor_configuration(
self,
input: Option<LambdaExecutorConfiguration>
) -> Self
pub fn set_lambda_executor_configuration(
self,
input: Option<LambdaExecutorConfiguration>
) -> Self
Details about the Lambda
executor of the action type.
Examples found in repository?
src/json_deser.rs (lines 6202-6204)
6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232
pub(crate) fn deser_structure_crate_model_executor_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExecutorConfiguration>,
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::executor_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() {
"lambdaExecutorConfiguration" => {
builder = builder.set_lambda_executor_configuration(
crate::json_deser::deser_structure_crate_model_lambda_executor_configuration(tokens)?
);
}
"jobWorkerExecutorConfiguration" => {
builder = builder.set_job_worker_executor_configuration(
crate::json_deser::deser_structure_crate_model_job_worker_executor_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 job_worker_executor_configuration(
self,
input: JobWorkerExecutorConfiguration
) -> Self
pub fn job_worker_executor_configuration(
self,
input: JobWorkerExecutorConfiguration
) -> Self
Details about the JobWorker
executor of the action type.
sourcepub fn set_job_worker_executor_configuration(
self,
input: Option<JobWorkerExecutorConfiguration>
) -> Self
pub fn set_job_worker_executor_configuration(
self,
input: Option<JobWorkerExecutorConfiguration>
) -> Self
Details about the JobWorker
executor of the action type.
Examples found in repository?
src/json_deser.rs (lines 6207-6209)
6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232
pub(crate) fn deser_structure_crate_model_executor_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExecutorConfiguration>,
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::executor_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() {
"lambdaExecutorConfiguration" => {
builder = builder.set_lambda_executor_configuration(
crate::json_deser::deser_structure_crate_model_lambda_executor_configuration(tokens)?
);
}
"jobWorkerExecutorConfiguration" => {
builder = builder.set_job_worker_executor_configuration(
crate::json_deser::deser_structure_crate_model_job_worker_executor_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) -> ExecutorConfiguration
pub fn build(self) -> ExecutorConfiguration
Consumes the builder and constructs a ExecutorConfiguration
.
Examples found in repository?
src/json_deser.rs (line 6224)
6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232
pub(crate) fn deser_structure_crate_model_executor_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExecutorConfiguration>,
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::executor_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() {
"lambdaExecutorConfiguration" => {
builder = builder.set_lambda_executor_configuration(
crate::json_deser::deser_structure_crate_model_lambda_executor_configuration(tokens)?
);
}
"jobWorkerExecutorConfiguration" => {
builder = builder.set_job_worker_executor_configuration(
crate::json_deser::deser_structure_crate_model_job_worker_executor_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",
),
),
}
}