Struct aws_sdk_ec2::model::Address
source · #[non_exhaustive]pub struct Address { /* private fields */ }
Expand description
Describes an Elastic IP address, or a carrier IP address.
Implementations§
source§impl Address
impl Address
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance that the address is associated with (if any).
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
The ID representing the allocation of the address for use with EC2-VPC.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The ID representing the association of the address with an instance in a VPC.
sourcepub fn domain(&self) -> Option<&DomainType>
pub fn domain(&self) -> Option<&DomainType>
Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard
) or instances in a VPC (vpc
).
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn network_interface_owner_id(&self) -> Option<&str>
pub fn network_interface_owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the network interface.
sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The private IP address associated with the Elastic IP address.
Any tags assigned to the Elastic IP address.
sourcepub fn public_ipv4_pool(&self) -> Option<&str>
pub fn public_ipv4_pool(&self) -> Option<&str>
The ID of an address pool.
sourcepub fn network_border_group(&self) -> Option<&str>
pub fn network_border_group(&self) -> Option<&str>
The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.
sourcepub fn customer_owned_ip(&self) -> Option<&str>
pub fn customer_owned_ip(&self) -> Option<&str>
The customer-owned IP address.
sourcepub fn customer_owned_ipv4_pool(&self) -> Option<&str>
pub fn customer_owned_ipv4_pool(&self) -> Option<&str>
The ID of the customer-owned address pool.
sourcepub fn carrier_ip(&self) -> Option<&str>
pub fn carrier_ip(&self) -> Option<&str>
The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
source§impl Address
impl Address
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Address
.
Examples found in repository?
42807 42808 42809 42810 42811 42812 42813 42814 42815 42816 42817 42818 42819 42820 42821 42822 42823 42824 42825 42826 42827 42828 42829 42830 42831 42832 42833 42834 42835 42836 42837 42838 42839 42840 42841 42842 42843 42844 42845 42846 42847 42848 42849 42850 42851 42852 42853 42854 42855 42856 42857 42858 42859 42860 42861 42862 42863 42864 42865 42866 42867 42868 42869 42870 42871 42872 42873 42874 42875 42876 42877 42878 42879 42880 42881 42882 42883 42884 42885 42886 42887 42888 42889 42890 42891 42892 42893 42894 42895 42896 42897 42898 42899 42900 42901 42902 42903 42904 42905 42906 42907 42908 42909 42910 42911 42912 42913 42914 42915 42916 42917 42918 42919 42920 42921 42922 42923 42924 42925 42926 42927 42928 42929 42930 42931 42932 42933 42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 42944 42945 42946 42947 42948 42949 42950 42951 42952 42953 42954 42955 42956 42957 42958 42959 42960 42961 42962 42963 42964 42965 42966 42967 42968 42969 42970 42971 42972 42973 42974 42975 42976 42977 42978 42979 42980 42981 42982 42983 42984 42985 42986 42987 42988 42989 42990 42991 42992 42993 42994 42995 42996 42997 42998
pub fn deser_structure_crate_model_address(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Address, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Address::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Address$InstanceId */ => {
let var_1836 =
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_instance_id(var_1836);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#Address$PublicIp */ => {
let var_1837 =
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_public_ip(var_1837);
}
,
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#Address$AllocationId */ => {
let var_1838 =
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_allocation_id(var_1838);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#Address$AssociationId */ => {
let var_1839 =
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_association_id(var_1839);
}
,
s if s.matches("domain") /* Domain com.amazonaws.ec2#Address$Domain */ => {
let var_1840 =
Some(
Result::<crate::model::DomainType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DomainType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_domain(var_1840);
}
,
s if s.matches("networkInterfaceId") /* NetworkInterfaceId com.amazonaws.ec2#Address$NetworkInterfaceId */ => {
let var_1841 =
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_network_interface_id(var_1841);
}
,
s if s.matches("networkInterfaceOwnerId") /* NetworkInterfaceOwnerId com.amazonaws.ec2#Address$NetworkInterfaceOwnerId */ => {
let var_1842 =
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_network_interface_owner_id(var_1842);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Address$PrivateIpAddress */ => {
let var_1843 =
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_private_ip_address(var_1843);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Address$Tags */ => {
let var_1844 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1844);
}
,
s if s.matches("publicIpv4Pool") /* PublicIpv4Pool com.amazonaws.ec2#Address$PublicIpv4Pool */ => {
let var_1845 =
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_public_ipv4_pool(var_1845);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#Address$NetworkBorderGroup */ => {
let var_1846 =
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_network_border_group(var_1846);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#Address$CustomerOwnedIp */ => {
let var_1847 =
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_customer_owned_ip(var_1847);
}
,
s if s.matches("customerOwnedIpv4Pool") /* CustomerOwnedIpv4Pool com.amazonaws.ec2#Address$CustomerOwnedIpv4Pool */ => {
let var_1848 =
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_customer_owned_ipv4_pool(var_1848);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#Address$CarrierIp */ => {
let var_1849 =
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_carrier_ip(var_1849);
}
,
_ => {}
}
}
Ok(builder.build())
}