pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2NetworkInterfaceDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attachment(self, input: AwsEc2NetworkInterfaceAttachment) -> Self
pub fn attachment(self, input: AwsEc2NetworkInterfaceAttachment) -> Self
The network interface attachment.
sourcepub fn set_attachment(
self,
input: Option<AwsEc2NetworkInterfaceAttachment>
) -> Self
pub fn set_attachment(
self,
input: Option<AwsEc2NetworkInterfaceAttachment>
) -> Self
The network interface attachment.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn security_groups(self, input: AwsEc2NetworkInterfaceSecurityGroup) -> Self
pub fn security_groups(self, input: AwsEc2NetworkInterfaceSecurityGroup) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
Security groups for the network interface.
sourcepub fn set_security_groups(
self,
input: Option<Vec<AwsEc2NetworkInterfaceSecurityGroup>>
) -> Self
pub fn set_security_groups(
self,
input: Option<Vec<AwsEc2NetworkInterfaceSecurityGroup>>
) -> Self
Security groups for the network interface.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn source_dest_check(self, input: bool) -> Self
pub fn source_dest_check(self, input: bool) -> Self
Indicates whether traffic to or from the instance is validated.
sourcepub fn set_source_dest_check(self, input: Option<bool>) -> Self
pub fn set_source_dest_check(self, input: Option<bool>) -> Self
Indicates whether traffic to or from the instance is validated.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn ip_v6_addresses(
self,
input: AwsEc2NetworkInterfaceIpV6AddressDetail
) -> Self
pub fn ip_v6_addresses(
self,
input: AwsEc2NetworkInterfaceIpV6AddressDetail
) -> Self
Appends an item to ip_v6_addresses
.
To override the contents of this collection use set_ip_v6_addresses
.
The IPv6 addresses associated with the network interface.
sourcepub fn set_ip_v6_addresses(
self,
input: Option<Vec<AwsEc2NetworkInterfaceIpV6AddressDetail>>
) -> Self
pub fn set_ip_v6_addresses(
self,
input: Option<Vec<AwsEc2NetworkInterfaceIpV6AddressDetail>>
) -> Self
The IPv6 addresses associated with the network interface.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn private_ip_addresses(
self,
input: AwsEc2NetworkInterfacePrivateIpAddressDetail
) -> Self
pub fn private_ip_addresses(
self,
input: AwsEc2NetworkInterfacePrivateIpAddressDetail
) -> Self
Appends an item to private_ip_addresses
.
To override the contents of this collection use set_private_ip_addresses
.
The private IPv4 addresses associated with the network interface.
sourcepub fn set_private_ip_addresses(
self,
input: Option<Vec<AwsEc2NetworkInterfacePrivateIpAddressDetail>>
) -> Self
pub fn set_private_ip_addresses(
self,
input: Option<Vec<AwsEc2NetworkInterfacePrivateIpAddressDetail>>
) -> Self
The private IPv4 addresses associated with the network interface.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
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 of the network interface.
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 of the network interface.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
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?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsEc2NetworkInterfaceDetails
pub fn build(self) -> AwsEc2NetworkInterfaceDetails
Consumes the builder and constructs a AwsEc2NetworkInterfaceDetails
.
Examples found in repository?
10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874
pub(crate) fn deser_structure_crate_model_aws_ec2_network_interface_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEc2NetworkInterfaceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ec2_network_interface_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"Attachment" => {
builder = builder.set_attachment(
crate::json_deser::deser_structure_crate_model_aws_ec2_network_interface_attachment(tokens)?
);
}
"NetworkInterfaceId" => {
builder = builder.set_network_interface_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SecurityGroups" => {
builder = builder.set_security_groups(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_security_group_list(tokens)?
);
}
"SourceDestCheck" => {
builder = builder.set_source_dest_check(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"IpV6Addresses" => {
builder = builder.set_ip_v6_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_ip_v6_address_list(tokens)?
);
}
"PrivateIpAddresses" => {
builder = builder.set_private_ip_addresses(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ec2_network_interface_private_ip_address_list(tokens)?
);
}
"PublicDnsName" => {
builder = builder.set_public_dns_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PublicIp" => {
builder = builder.set_public_ip(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}