Struct aws_sdk_ec2::model::dns_entry::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DnsEntry
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The DNS name.
Examples found in repository?
src/xml_deser.rs (line 57801)
57784 57785 57786 57787 57788 57789 57790 57791 57792 57793 57794 57795 57796 57797 57798 57799 57800 57801 57802 57803 57804 57805 57806 57807 57808 57809 57810 57811 57812 57813 57814 57815 57816 57817 57818 57819 57820 57821
pub fn deser_structure_crate_model_dns_entry(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DnsEntry, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DnsEntry::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("dnsName") /* DnsName com.amazonaws.ec2#DnsEntry$DnsName */ => {
let var_2816 =
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_dns_name(var_2816);
}
,
s if s.matches("hostedZoneId") /* HostedZoneId com.amazonaws.ec2#DnsEntry$HostedZoneId */ => {
let var_2817 =
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_hosted_zone_id(var_2817);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn hosted_zone_id(self, input: impl Into<String>) -> Self
pub fn hosted_zone_id(self, input: impl Into<String>) -> Self
The ID of the private hosted zone.
sourcepub fn set_hosted_zone_id(self, input: Option<String>) -> Self
pub fn set_hosted_zone_id(self, input: Option<String>) -> Self
The ID of the private hosted zone.
Examples found in repository?
src/xml_deser.rs (line 57814)
57784 57785 57786 57787 57788 57789 57790 57791 57792 57793 57794 57795 57796 57797 57798 57799 57800 57801 57802 57803 57804 57805 57806 57807 57808 57809 57810 57811 57812 57813 57814 57815 57816 57817 57818 57819 57820 57821
pub fn deser_structure_crate_model_dns_entry(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DnsEntry, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DnsEntry::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("dnsName") /* DnsName com.amazonaws.ec2#DnsEntry$DnsName */ => {
let var_2816 =
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_dns_name(var_2816);
}
,
s if s.matches("hostedZoneId") /* HostedZoneId com.amazonaws.ec2#DnsEntry$HostedZoneId */ => {
let var_2817 =
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_hosted_zone_id(var_2817);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> DnsEntry
pub fn build(self) -> DnsEntry
Consumes the builder and constructs a DnsEntry
.
Examples found in repository?
src/xml_deser.rs (line 57820)
57784 57785 57786 57787 57788 57789 57790 57791 57792 57793 57794 57795 57796 57797 57798 57799 57800 57801 57802 57803 57804 57805 57806 57807 57808 57809 57810 57811 57812 57813 57814 57815 57816 57817 57818 57819 57820 57821
pub fn deser_structure_crate_model_dns_entry(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DnsEntry, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DnsEntry::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("dnsName") /* DnsName com.amazonaws.ec2#DnsEntry$DnsName */ => {
let var_2816 =
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_dns_name(var_2816);
}
,
s if s.matches("hostedZoneId") /* HostedZoneId com.amazonaws.ec2#DnsEntry$HostedZoneId */ => {
let var_2817 =
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_hosted_zone_id(var_2817);
}
,
_ => {}
}
}
Ok(builder.build())
}