Struct aws_sdk_cloudfront::model::function_summary::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FunctionSummary
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the CloudFront function.
Examples found in repository?
src/xml_deser.rs (line 6488)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the CloudFront function.
Examples found in repository?
src/xml_deser.rs (line 6501)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn function_config(self, input: FunctionConfig) -> Self
pub fn function_config(self, input: FunctionConfig) -> Self
Contains configuration information about a CloudFront function.
sourcepub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
pub fn set_function_config(self, input: Option<FunctionConfig>) -> Self
Contains configuration information about a CloudFront function.
Examples found in repository?
src/xml_deser.rs (line 6511)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn function_metadata(self, input: FunctionMetadata) -> Self
pub fn function_metadata(self, input: FunctionMetadata) -> Self
Contains metadata about a CloudFront function.
sourcepub fn set_function_metadata(self, input: Option<FunctionMetadata>) -> Self
pub fn set_function_metadata(self, input: Option<FunctionMetadata>) -> Self
Contains metadata about a CloudFront function.
Examples found in repository?
src/xml_deser.rs (line 6521)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> FunctionSummary
pub fn build(self) -> FunctionSummary
Consumes the builder and constructs a FunctionSummary
.
Examples found in repository?
src/xml_deser.rs (line 6527)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}