pub struct Builder { /* private fields */ }
Expand description
A builder for OriginAccessControlList
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
The value of the Marker
field that was provided in the request.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
The value of the Marker
field that was provided in the request.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn next_marker(self, input: impl Into<String>) -> Self
pub fn next_marker(self, input: impl Into<String>) -> Self
If there are more items in the list than are in this response, this element is present. It contains the value to use in the Marker
field of another request to continue listing origin access controls.
sourcepub fn set_next_marker(self, input: Option<String>) -> Self
pub fn set_next_marker(self, input: Option<String>) -> Self
If there are more items in the list than are in this response, this element is present. It contains the value to use in the Marker
field of another request to continue listing origin access controls.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn max_items(self, input: i32) -> Self
pub fn max_items(self, input: i32) -> Self
The maximum number of origin access controls requested.
sourcepub fn set_max_items(self, input: Option<i32>) -> Self
pub fn set_max_items(self, input: Option<i32>) -> Self
The maximum number of origin access controls requested.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn is_truncated(self, input: bool) -> Self
pub fn is_truncated(self, input: bool) -> Self
If there are more items in the list than are in this response, this value is true
.
sourcepub fn set_is_truncated(self, input: Option<bool>) -> Self
pub fn set_is_truncated(self, input: Option<bool>) -> Self
If there are more items in the list than are in this response, this value is true
.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of origin access controls returned in the response.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of origin access controls returned in the response.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn items(self, input: OriginAccessControlSummary) -> Self
pub fn items(self, input: OriginAccessControlSummary) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
Contains the origin access controls in the list.
sourcepub fn set_items(self, input: Option<Vec<OriginAccessControlSummary>>) -> Self
pub fn set_items(self, input: Option<Vec<OriginAccessControlSummary>>) -> Self
Contains the origin access controls in the list.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> OriginAccessControlList
pub fn build(self) -> OriginAccessControlList
Consumes the builder and constructs a OriginAccessControlList
.
Examples found in repository?
8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738
pub fn deser_structure_crate_model_origin_access_control_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Marker") /* Marker com.amazonaws.cloudfront#OriginAccessControlList$Marker */ => {
let var_311 =
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_marker(var_311);
}
,
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginAccessControlList$NextMarker */ => {
let var_312 =
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_next_marker(var_312);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginAccessControlList$MaxItems */ => {
let var_313 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_313);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.cloudfront#OriginAccessControlList$IsTruncated */ => {
let var_314 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_is_truncated(var_314);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginAccessControlList$Quantity */ => {
let var_315 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_315);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginAccessControlList$Items */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_access_control_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_316);
}
,
_ => {}
}
}
Ok(builder.build())
}