Struct aws_sdk_cloudfront::model::ConflictingAlias
source · #[non_exhaustive]pub struct ConflictingAlias { /* private fields */ }
Expand description
An alias (also called a CNAME) and the CloudFront distribution and Amazon Web Services account ID that it’s associated with. The distribution and account IDs are partially hidden, which allows you to identify the distributions and accounts that you own, but helps to protect the information of ones that you don’t own.
Implementations§
source§impl ConflictingAlias
impl ConflictingAlias
sourcepub fn distribution_id(&self) -> Option<&str>
pub fn distribution_id(&self) -> Option<&str>
The (partially hidden) ID of the CloudFront distribution associated with the alias.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The (partially hidden) ID of the Amazon Web Services account that owns the distribution that’s associated with the alias.
source§impl ConflictingAlias
impl ConflictingAlias
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ConflictingAlias
.
Examples found in repository?
src/xml_deser.rs (line 12754)
12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800
pub fn deser_structure_crate_model_conflicting_alias(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ConflictingAlias, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ConflictingAlias::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Alias") /* Alias com.amazonaws.cloudfront#ConflictingAlias$Alias */ => {
let var_510 =
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_alias(var_510);
}
,
s if s.matches("DistributionId") /* DistributionId com.amazonaws.cloudfront#ConflictingAlias$DistributionId */ => {
let var_511 =
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_distribution_id(var_511);
}
,
s if s.matches("AccountId") /* AccountId com.amazonaws.cloudfront#ConflictingAlias$AccountId */ => {
let var_512 =
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_account_id(var_512);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ConflictingAlias
impl Clone for ConflictingAlias
source§fn clone(&self) -> ConflictingAlias
fn clone(&self) -> ConflictingAlias
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