Struct aws_sdk_ec2::model::DhcpOptions
source · #[non_exhaustive]pub struct DhcpOptions { /* private fields */ }
Expand description
Describes a set of DHCP options.
Implementations§
source§impl DhcpOptions
impl DhcpOptions
sourcepub fn dhcp_configurations(&self) -> Option<&[DhcpConfiguration]>
pub fn dhcp_configurations(&self) -> Option<&[DhcpConfiguration]>
One or more DHCP options in the set.
sourcepub fn dhcp_options_id(&self) -> Option<&str>
pub fn dhcp_options_id(&self) -> Option<&str>
The ID of the set of DHCP options.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the DHCP options set.
Any tags assigned to the DHCP options set.
source§impl DhcpOptions
impl DhcpOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DhcpOptions
.
Examples found in repository?
src/xml_deser.rs (line 26803)
26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856
pub fn deser_structure_crate_model_dhcp_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DhcpOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DhcpOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("dhcpConfigurationSet") /* DhcpConfigurations com.amazonaws.ec2#DhcpOptions$DhcpConfigurations */ => {
let var_1071 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_dhcp_configuration_list(&mut tag)
?
)
;
builder = builder.set_dhcp_configurations(var_1071);
}
,
s if s.matches("dhcpOptionsId") /* DhcpOptionsId com.amazonaws.ec2#DhcpOptions$DhcpOptionsId */ => {
let var_1072 =
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_dhcp_options_id(var_1072);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#DhcpOptions$OwnerId */ => {
let var_1073 =
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_owner_id(var_1073);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#DhcpOptions$Tags */ => {
let var_1074 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1074);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DhcpOptions
impl Clone for DhcpOptions
source§fn clone(&self) -> DhcpOptions
fn clone(&self) -> DhcpOptions
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