pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCodeBuildProjectDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
The KMS key used to encrypt the build output artifacts.
You can specify either the ARN of the KMS key or, if available, the KMS key alias (using the format alias/alias-name).
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
The KMS key used to encrypt the build output artifacts.
You can specify either the ARN of the KMS key or, if available, the KMS key alias (using the format alias/alias-name).
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 artifacts(self, input: AwsCodeBuildProjectArtifactsDetails) -> Self
pub fn artifacts(self, input: AwsCodeBuildProjectArtifactsDetails) -> Self
Appends an item to artifacts
.
To override the contents of this collection use set_artifacts
.
Information about the build artifacts for the CodeBuild project.
sourcepub fn set_artifacts(
self,
input: Option<Vec<AwsCodeBuildProjectArtifactsDetails>>
) -> Self
pub fn set_artifacts(
self,
input: Option<Vec<AwsCodeBuildProjectArtifactsDetails>>
) -> Self
Information about the build artifacts for the CodeBuild project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 environment(self, input: AwsCodeBuildProjectEnvironment) -> Self
pub fn environment(self, input: AwsCodeBuildProjectEnvironment) -> Self
Information about the build environment for this build project.
sourcepub fn set_environment(
self,
input: Option<AwsCodeBuildProjectEnvironment>
) -> Self
pub fn set_environment(
self,
input: Option<AwsCodeBuildProjectEnvironment>
) -> Self
Information about the build environment for this build project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the build project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 source(self, input: AwsCodeBuildProjectSource) -> Self
pub fn source(self, input: AwsCodeBuildProjectSource) -> Self
Information about the build input source code for this build project.
sourcepub fn set_source(self, input: Option<AwsCodeBuildProjectSource>) -> Self
pub fn set_source(self, input: Option<AwsCodeBuildProjectSource>) -> Self
Information about the build input source code for this build project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 logs_config(self, input: AwsCodeBuildProjectLogsConfigDetails) -> Self
pub fn logs_config(self, input: AwsCodeBuildProjectLogsConfigDetails) -> Self
Information about logs for the build project.
sourcepub fn set_logs_config(
self,
input: Option<AwsCodeBuildProjectLogsConfigDetails>
) -> Self
pub fn set_logs_config(
self,
input: Option<AwsCodeBuildProjectLogsConfigDetails>
) -> Self
Information about logs for the build project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 vpc_config(self, input: AwsCodeBuildProjectVpcConfig) -> Self
pub fn vpc_config(self, input: AwsCodeBuildProjectVpcConfig) -> Self
Information about the VPC configuration that CodeBuild accesses.
sourcepub fn set_vpc_config(self, input: Option<AwsCodeBuildProjectVpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<AwsCodeBuildProjectVpcConfig>) -> Self
Information about the VPC configuration that CodeBuild accesses.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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 secondary_artifacts(
self,
input: AwsCodeBuildProjectArtifactsDetails
) -> Self
pub fn secondary_artifacts(
self,
input: AwsCodeBuildProjectArtifactsDetails
) -> Self
Appends an item to secondary_artifacts
.
To override the contents of this collection use set_secondary_artifacts
.
Information about the secondary artifacts for the CodeBuild project.
sourcepub fn set_secondary_artifacts(
self,
input: Option<Vec<AwsCodeBuildProjectArtifactsDetails>>
) -> Self
pub fn set_secondary_artifacts(
self,
input: Option<Vec<AwsCodeBuildProjectArtifactsDetails>>
) -> Self
Information about the secondary artifacts for the CodeBuild project.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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) -> AwsCodeBuildProjectDetails
pub fn build(self) -> AwsCodeBuildProjectDetails
Consumes the builder and constructs a AwsCodeBuildProjectDetails
.
Examples found in repository?
10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502
pub(crate) fn deser_structure_crate_model_aws_code_build_project_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCodeBuildProjectDetails>,
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::aws_code_build_project_details::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() {
"EncryptionKey" => {
builder = builder.set_encryption_key(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Artifacts" => {
builder = builder.set_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_list(tokens)?
);
}
"Environment" => {
builder = builder.set_environment(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_environment(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Source" => {
builder = builder.set_source(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_source(tokens)?
);
}
"ServiceRole" => {
builder = builder.set_service_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LogsConfig" => {
builder = builder.set_logs_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_logs_config_details(tokens)?
);
}
"VpcConfig" => {
builder = builder.set_vpc_config(
crate::json_deser::deser_structure_crate_model_aws_code_build_project_vpc_config(tokens)?
);
}
"SecondaryArtifacts" => {
builder = builder.set_secondary_artifacts(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_code_build_project_artifacts_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",
),
),
}
}