Struct aws_sdk_cloudfront::model::alias_icp_recordal::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AliasIcpRecordal
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cname(self, input: impl Into<String>) -> Self
pub fn cname(self, input: impl Into<String>) -> Self
A domain name associated with a distribution.
sourcepub fn set_cname(self, input: Option<String>) -> Self
pub fn set_cname(self, input: Option<String>) -> Self
A domain name associated with a distribution.
Examples found in repository?
11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395
pub fn deser_structure_crate_model_alias_icp_recordal(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AliasIcpRecordal, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AliasIcpRecordal::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CNAME") /* CNAME com.amazonaws.cloudfront#AliasICPRecordal$CNAME */ => {
let var_445 =
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_cname(var_445);
}
,
s if s.matches("ICPRecordalStatus") /* ICPRecordalStatus com.amazonaws.cloudfront#AliasICPRecordal$ICPRecordalStatus */ => {
let var_446 =
Some(
Result::<crate::model::IcpRecordalStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IcpRecordalStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_icp_recordal_status(var_446);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn icp_recordal_status(self, input: IcpRecordalStatus) -> Self
pub fn icp_recordal_status(self, input: IcpRecordalStatus) -> Self
The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
The status values returned are the following:
-
APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it.
-
SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number.
-
PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
sourcepub fn set_icp_recordal_status(self, input: Option<IcpRecordalStatus>) -> Self
pub fn set_icp_recordal_status(self, input: Option<IcpRecordalStatus>) -> Self
The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
The status values returned are the following:
-
APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it.
-
SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number.
-
PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
Examples found in repository?
11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395
pub fn deser_structure_crate_model_alias_icp_recordal(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AliasIcpRecordal, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AliasIcpRecordal::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CNAME") /* CNAME com.amazonaws.cloudfront#AliasICPRecordal$CNAME */ => {
let var_445 =
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_cname(var_445);
}
,
s if s.matches("ICPRecordalStatus") /* ICPRecordalStatus com.amazonaws.cloudfront#AliasICPRecordal$ICPRecordalStatus */ => {
let var_446 =
Some(
Result::<crate::model::IcpRecordalStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IcpRecordalStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_icp_recordal_status(var_446);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AliasIcpRecordal
pub fn build(self) -> AliasIcpRecordal
Consumes the builder and constructs a AliasIcpRecordal
.
Examples found in repository?
11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395
pub fn deser_structure_crate_model_alias_icp_recordal(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AliasIcpRecordal, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AliasIcpRecordal::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CNAME") /* CNAME com.amazonaws.cloudfront#AliasICPRecordal$CNAME */ => {
let var_445 =
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_cname(var_445);
}
,
s if s.matches("ICPRecordalStatus") /* ICPRecordalStatus com.amazonaws.cloudfront#AliasICPRecordal$ICPRecordalStatus */ => {
let var_446 =
Some(
Result::<crate::model::IcpRecordalStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IcpRecordalStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_icp_recordal_status(var_446);
}
,
_ => {}
}
}
Ok(builder.build())
}