Struct aws_sdk_cloudfront::model::conflicting_alias::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ConflictingAlias
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_alias(self, input: Option<String>) -> Self
pub fn set_alias(self, input: Option<String>) -> Self
An alias (also called a CNAME).
Examples found in repository?
src/xml_deser.rs (line 12767)
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())
}
sourcepub fn distribution_id(self, input: impl Into<String>) -> Self
pub fn distribution_id(self, input: impl Into<String>) -> Self
The (partially hidden) ID of the CloudFront distribution associated with the alias.
sourcepub fn set_distribution_id(self, input: Option<String>) -> Self
pub fn set_distribution_id(self, input: Option<String>) -> Self
The (partially hidden) ID of the CloudFront distribution associated with the alias.
Examples found in repository?
src/xml_deser.rs (line 12780)
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())
}
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The (partially hidden) ID of the Amazon Web Services account that owns the distribution that’s associated with the alias.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The (partially hidden) ID of the Amazon Web Services account that owns the distribution that’s associated with the alias.
Examples found in repository?
src/xml_deser.rs (line 12793)
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())
}
sourcepub fn build(self) -> ConflictingAlias
pub fn build(self) -> ConflictingAlias
Consumes the builder and constructs a ConflictingAlias
.
Examples found in repository?
src/xml_deser.rs (line 12799)
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())
}