Struct aws_sdk_cloudfront::model::origin_access_control::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for OriginAccessControl
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier of the origin access control.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier of the origin access control.
Examples found in repository?
src/xml_deser.rs (line 6683)
6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700
pub fn deser_structure_crate_model_origin_access_control(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControl, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControl::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginAccessControl$Id */ => {
let var_181 =
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_id(var_181);
}
,
s if s.matches("OriginAccessControlConfig") /* OriginAccessControlConfig com.amazonaws.cloudfront#OriginAccessControl$OriginAccessControlConfig */ => {
let var_182 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_access_control_config(&mut tag)
?
)
;
builder = builder.set_origin_access_control_config(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn origin_access_control_config(
self,
input: OriginAccessControlConfig
) -> Self
pub fn origin_access_control_config(
self,
input: OriginAccessControlConfig
) -> Self
The origin access control.
sourcepub fn set_origin_access_control_config(
self,
input: Option<OriginAccessControlConfig>
) -> Self
pub fn set_origin_access_control_config(
self,
input: Option<OriginAccessControlConfig>
) -> Self
The origin access control.
Examples found in repository?
src/xml_deser.rs (line 6693)
6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700
pub fn deser_structure_crate_model_origin_access_control(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControl, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControl::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginAccessControl$Id */ => {
let var_181 =
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_id(var_181);
}
,
s if s.matches("OriginAccessControlConfig") /* OriginAccessControlConfig com.amazonaws.cloudfront#OriginAccessControl$OriginAccessControlConfig */ => {
let var_182 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_access_control_config(&mut tag)
?
)
;
builder = builder.set_origin_access_control_config(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> OriginAccessControl
pub fn build(self) -> OriginAccessControl
Consumes the builder and constructs a OriginAccessControl
.
Examples found in repository?
src/xml_deser.rs (line 6699)
6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700
pub fn deser_structure_crate_model_origin_access_control(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControl, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControl::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginAccessControl$Id */ => {
let var_181 =
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_id(var_181);
}
,
s if s.matches("OriginAccessControlConfig") /* OriginAccessControlConfig com.amazonaws.cloudfront#OriginAccessControl$OriginAccessControlConfig */ => {
let var_182 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_access_control_config(&mut tag)
?
)
;
builder = builder.set_origin_access_control_config(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}