Struct aws_sdk_ec2::model::network_interface_association::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for NetworkInterfaceAssociation
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn allocation_id(self, input: impl Into<String>) -> Self
pub fn allocation_id(self, input: impl Into<String>) -> Self
The allocation ID.
sourcepub fn set_allocation_id(self, input: Option<String>) -> Self
pub fn set_allocation_id(self, input: Option<String>) -> Self
The allocation ID.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
The association ID.
sourcepub fn set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
The association ID.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ip_owner_id(self, input: impl Into<String>) -> Self
pub fn ip_owner_id(self, input: impl Into<String>) -> Self
The ID of the Elastic IP address owner.
sourcepub fn set_ip_owner_id(self, input: Option<String>) -> Self
pub fn set_ip_owner_id(self, input: Option<String>) -> Self
The ID of the Elastic IP address owner.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn public_dns_name(self, input: impl Into<String>) -> Self
pub fn public_dns_name(self, input: impl Into<String>) -> Self
The public DNS name.
sourcepub fn set_public_dns_name(self, input: Option<String>) -> Self
pub fn set_public_dns_name(self, input: Option<String>) -> Self
The public DNS name.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn public_ip(self, input: impl Into<String>) -> Self
pub fn public_ip(self, input: impl Into<String>) -> Self
The address of the Elastic IP address bound to the network interface.
sourcepub fn set_public_ip(self, input: Option<String>) -> Self
pub fn set_public_ip(self, input: Option<String>) -> Self
The address of the Elastic IP address bound to the network interface.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn customer_owned_ip(self, input: impl Into<String>) -> Self
pub fn customer_owned_ip(self, input: impl Into<String>) -> Self
The customer-owned IP address associated with the network interface.
sourcepub fn set_customer_owned_ip(self, input: Option<String>) -> Self
pub fn set_customer_owned_ip(self, input: Option<String>) -> Self
The customer-owned IP address associated with the network interface.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn carrier_ip(self, input: impl Into<String>) -> Self
pub fn carrier_ip(self, input: impl Into<String>) -> Self
The carrier IP address associated with the network interface.
This option is only available when the network interface is in a subnet which is associated with a Wavelength Zone.
sourcepub fn set_carrier_ip(self, input: Option<String>) -> Self
pub fn set_carrier_ip(self, input: Option<String>) -> Self
The carrier IP address associated with the network interface.
This option is only available when the network interface is in a subnet which is associated with a Wavelength Zone.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> NetworkInterfaceAssociation
pub fn build(self) -> NetworkInterfaceAssociation
Consumes the builder and constructs a NetworkInterfaceAssociation
.
Examples found in repository?
40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074
pub fn deser_structure_crate_model_network_interface_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInterfaceAssociation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInterfaceAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("allocationId") /* AllocationId com.amazonaws.ec2#NetworkInterfaceAssociation$AllocationId */ => {
let var_1748 =
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_1748);
}
,
s if s.matches("associationId") /* AssociationId com.amazonaws.ec2#NetworkInterfaceAssociation$AssociationId */ => {
let var_1749 =
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_1749);
}
,
s if s.matches("ipOwnerId") /* IpOwnerId com.amazonaws.ec2#NetworkInterfaceAssociation$IpOwnerId */ => {
let var_1750 =
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_ip_owner_id(var_1750);
}
,
s if s.matches("publicDnsName") /* PublicDnsName com.amazonaws.ec2#NetworkInterfaceAssociation$PublicDnsName */ => {
let var_1751 =
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_dns_name(var_1751);
}
,
s if s.matches("publicIp") /* PublicIp com.amazonaws.ec2#NetworkInterfaceAssociation$PublicIp */ => {
let var_1752 =
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_1752);
}
,
s if s.matches("customerOwnedIp") /* CustomerOwnedIp com.amazonaws.ec2#NetworkInterfaceAssociation$CustomerOwnedIp */ => {
let var_1753 =
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_1753);
}
,
s if s.matches("carrierIp") /* CarrierIp com.amazonaws.ec2#NetworkInterfaceAssociation$CarrierIp */ => {
let var_1754 =
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_1754);
}
,
_ => {}
}
}
Ok(builder.build())
}