Struct aws_sdk_ec2::model::PrivateDnsNameConfiguration
source · #[non_exhaustive]pub struct PrivateDnsNameConfiguration { /* private fields */ }
Expand description
Information about the private DNS name for the service endpoint.
Implementations§
source§impl PrivateDnsNameConfiguration
impl PrivateDnsNameConfiguration
sourcepub fn state(&self) -> Option<&DnsNameState>
pub fn state(&self) -> Option<&DnsNameState>
The verification state of the VPC endpoint service.
>Consumers of the endpoint service can use the private name only when the state is verified
.
source§impl PrivateDnsNameConfiguration
impl PrivateDnsNameConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PrivateDnsNameConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 42168)
42164 42165 42166 42167 42168 42169 42170 42171 42172 42173 42174 42175 42176 42177 42178 42179 42180 42181 42182 42183 42184 42185 42186 42187 42188 42189 42190 42191 42192 42193 42194 42195 42196 42197 42198 42199 42200 42201 42202 42203 42204 42205 42206 42207 42208 42209 42210 42211 42212 42213 42214 42215 42216 42217 42218 42219 42220 42221 42222 42223 42224 42225 42226 42227 42228
pub fn deser_structure_crate_model_private_dns_name_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PrivateDnsNameConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PrivateDnsNameConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("state") /* State com.amazonaws.ec2#PrivateDnsNameConfiguration$State */ => {
let var_1803 =
Some(
Result::<crate::model::DnsNameState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DnsNameState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1803);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#PrivateDnsNameConfiguration$Type */ => {
let var_1804 =
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_type(var_1804);
}
,
s if s.matches("value") /* Value com.amazonaws.ec2#PrivateDnsNameConfiguration$Value */ => {
let var_1805 =
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_value(var_1805);
}
,
s if s.matches("name") /* Name com.amazonaws.ec2#PrivateDnsNameConfiguration$Name */ => {
let var_1806 =
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_name(var_1806);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PrivateDnsNameConfiguration
impl Clone for PrivateDnsNameConfiguration
source§fn clone(&self) -> PrivateDnsNameConfiguration
fn clone(&self) -> PrivateDnsNameConfiguration
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