Struct aws_sdk_cloudfront::model::OriginAccessControlList
source · #[non_exhaustive]pub struct OriginAccessControlList { /* private fields */ }
Expand description
A list of CloudFront origin access controls.
Implementations§
source§impl OriginAccessControlList
impl OriginAccessControlList
sourcepub fn marker(&self) -> Option<&str>
pub fn marker(&self) -> Option<&str>
The value of the Marker
field that was provided in the request.
sourcepub fn next_marker(&self) -> Option<&str>
pub fn next_marker(&self) -> Option<&str>
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 is_truncated(&self) -> Option<bool>
pub fn is_truncated(&self) -> Option<bool>
If there are more items in the list than are in this response, this value is true
.
sourcepub fn quantity(&self) -> Option<i32>
pub fn quantity(&self) -> Option<i32>
The number of origin access controls returned in the response.
sourcepub fn items(&self) -> Option<&[OriginAccessControlSummary]>
pub fn items(&self) -> Option<&[OriginAccessControlSummary]>
Contains the origin access controls in the list.
source§impl OriginAccessControlList
impl OriginAccessControlList
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginAccessControlList
.
Examples found in repository?
src/xml_deser.rs (line 8650)
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())
}
Trait Implementations§
source§impl Clone for OriginAccessControlList
impl Clone for OriginAccessControlList
source§fn clone(&self) -> OriginAccessControlList
fn clone(&self) -> OriginAccessControlList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more