@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceNetworkInterface extends Object implements Serializable, Cloneable
Describes a network interface.
Constructor and Description |
---|
InstanceNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
InstanceNetworkInterface |
clone() |
boolean |
equals(Object obj) |
InstanceNetworkInterfaceAssociation |
getAssociation()
The association information for an Elastic IPv4 associated with the network interface.
|
InstanceNetworkInterfaceAttachment |
getAttachment()
The network interface attachment.
|
ConnectionTrackingSpecificationResponse |
getConnectionTrackingConfiguration()
A security group connection tracking configuration that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
String |
getDescription()
The description.
|
List<GroupIdentifier> |
getGroups()
The security groups.
|
String |
getInterfaceType()
The type of network interface.
|
List<InstanceIpv4Prefix> |
getIpv4Prefixes()
The IPv4 delegated prefixes that are assigned to the network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
The IPv6 addresses associated with the network interface.
|
List<InstanceIpv6Prefix> |
getIpv6Prefixes()
The IPv6 delegated prefixes that are assigned to the network interface.
|
String |
getMacAddress()
The MAC address.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that created the network interface.
|
String |
getPrivateDnsName()
The private DNS name.
|
String |
getPrivateIpAddress()
The IPv4 address of the network interface within the subnet.
|
List<InstancePrivateIpAddress> |
getPrivateIpAddresses()
The private IPv4 addresses associated with the network interface.
|
Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
String |
getStatus()
The status of the network interface.
|
String |
getSubnetId()
The ID of the subnet.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IPv4 associated with the network interface.
|
void |
setAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
|
void |
setConnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration)
A security group connection tracking configuration that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
void |
setDescription(String description)
The description.
|
void |
setGroups(Collection<GroupIdentifier> groups)
The security groups.
|
void |
setInterfaceType(String interfaceType)
The type of network interface.
|
void |
setIpv4Prefixes(Collection<InstanceIpv4Prefix> ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses associated with the network interface.
|
void |
setIpv6Prefixes(Collection<InstanceIpv6Prefix> ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
|
void |
setMacAddress(String macAddress)
The MAC address.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that created the network interface.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name.
|
void |
setPrivateIpAddress(String privateIpAddress)
The IPv4 address of the network interface within the subnet.
|
void |
setPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IPv4 addresses associated with the network interface.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
void |
setStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
void |
setStatus(String status)
The status of the network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
InstanceNetworkInterface |
withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IPv4 associated with the network interface.
|
InstanceNetworkInterface |
withAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
|
InstanceNetworkInterface |
withConnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration)
A security group connection tracking configuration that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
InstanceNetworkInterface |
withDescription(String description)
The description.
|
InstanceNetworkInterface |
withGroups(Collection<GroupIdentifier> groups)
The security groups.
|
InstanceNetworkInterface |
withGroups(GroupIdentifier... groups)
The security groups.
|
InstanceNetworkInterface |
withInterfaceType(String interfaceType)
The type of network interface.
|
InstanceNetworkInterface |
withIpv4Prefixes(Collection<InstanceIpv4Prefix> ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
|
InstanceNetworkInterface |
withIpv4Prefixes(InstanceIpv4Prefix... ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
|
InstanceNetworkInterface |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses associated with the network interface.
|
InstanceNetworkInterface |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses associated with the network interface.
|
InstanceNetworkInterface |
withIpv6Prefixes(Collection<InstanceIpv6Prefix> ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
|
InstanceNetworkInterface |
withIpv6Prefixes(InstanceIpv6Prefix... ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
|
InstanceNetworkInterface |
withMacAddress(String macAddress)
The MAC address.
|
InstanceNetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
InstanceNetworkInterface |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that created the network interface.
|
InstanceNetworkInterface |
withPrivateDnsName(String privateDnsName)
The private DNS name.
|
InstanceNetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The IPv4 address of the network interface within the subnet.
|
InstanceNetworkInterface |
withPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IPv4 addresses associated with the network interface.
|
InstanceNetworkInterface |
withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
The private IPv4 addresses associated with the network interface.
|
InstanceNetworkInterface |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
InstanceNetworkInterface |
withStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
InstanceNetworkInterface |
withStatus(String status)
The status of the network interface.
|
InstanceNetworkInterface |
withSubnetId(String subnetId)
The ID of the subnet.
|
InstanceNetworkInterface |
withVpcId(String vpcId)
The ID of the VPC.
|
public void setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IPv4 associated with the network interface.
association
- The association information for an Elastic IPv4 associated with the network interface.public InstanceNetworkInterfaceAssociation getAssociation()
The association information for an Elastic IPv4 associated with the network interface.
public InstanceNetworkInterface withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IPv4 associated with the network interface.
association
- The association information for an Elastic IPv4 associated with the network interface.public void setAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.public InstanceNetworkInterfaceAttachment getAttachment()
The network interface attachment.
public InstanceNetworkInterface withAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.public void setDescription(String description)
The description.
description
- The description.public String getDescription()
The description.
public InstanceNetworkInterface withDescription(String description)
The description.
description
- The description.public List<GroupIdentifier> getGroups()
The security groups.
public void setGroups(Collection<GroupIdentifier> groups)
The security groups.
groups
- The security groups.public InstanceNetworkInterface withGroups(GroupIdentifier... groups)
The security groups.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The security groups.public InstanceNetworkInterface withGroups(Collection<GroupIdentifier> groups)
The security groups.
groups
- The security groups.public List<InstanceIpv6Address> getIpv6Addresses()
The IPv6 addresses associated with the network interface.
public void setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses associated with the network interface.
ipv6Addresses
- The IPv6 addresses associated with the network interface.public InstanceNetworkInterface withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses associated with the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Addresses(java.util.Collection)
or withIpv6Addresses(java.util.Collection)
if you want
to override the existing values.
ipv6Addresses
- The IPv6 addresses associated with the network interface.public InstanceNetworkInterface withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses associated with the network interface.
ipv6Addresses
- The IPv6 addresses associated with the network interface.public void setMacAddress(String macAddress)
The MAC address.
macAddress
- The MAC address.public String getMacAddress()
The MAC address.
public InstanceNetworkInterface withMacAddress(String macAddress)
The MAC address.
macAddress
- The MAC address.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public InstanceNetworkInterface withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that created the network interface.
ownerId
- The ID of the Amazon Web Services account that created the network interface.public String getOwnerId()
The ID of the Amazon Web Services account that created the network interface.
public InstanceNetworkInterface withOwnerId(String ownerId)
The ID of the Amazon Web Services account that created the network interface.
ownerId
- The ID of the Amazon Web Services account that created the network interface.public void setPrivateDnsName(String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public String getPrivateDnsName()
The private DNS name.
public InstanceNetworkInterface withPrivateDnsName(String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public void setPrivateIpAddress(String privateIpAddress)
The IPv4 address of the network interface within the subnet.
privateIpAddress
- The IPv4 address of the network interface within the subnet.public String getPrivateIpAddress()
The IPv4 address of the network interface within the subnet.
public InstanceNetworkInterface withPrivateIpAddress(String privateIpAddress)
The IPv4 address of the network interface within the subnet.
privateIpAddress
- The IPv4 address of the network interface within the subnet.public List<InstancePrivateIpAddress> getPrivateIpAddresses()
The private IPv4 addresses associated with the network interface.
public void setPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IPv4 addresses associated with the network interface.
privateIpAddresses
- The private IPv4 addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
The private IPv4 addresses associated with the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
or withPrivateIpAddresses(java.util.Collection)
if
you want to override the existing values.
privateIpAddresses
- The private IPv4 addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IPv4 addresses associated with the network interface.
privateIpAddresses
- The private IPv4 addresses associated with the network interface.public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled.
public InstanceNetworkInterface withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled.
public void setStatus(String status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public String getStatus()
The status of the network interface.
NetworkInterfaceStatus
public InstanceNetworkInterface withStatus(String status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public void setStatus(NetworkInterfaceStatus status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public InstanceNetworkInterface withStatus(NetworkInterfaceStatus status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public void setSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public String getSubnetId()
The ID of the subnet.
public InstanceNetworkInterface withSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public InstanceNetworkInterface withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setInterfaceType(String interfaceType)
The type of network interface.
Valid values: interface
| efa
| trunk
interfaceType
- The type of network interface.
Valid values: interface
| efa
| trunk
public String getInterfaceType()
The type of network interface.
Valid values: interface
| efa
| trunk
Valid values: interface
| efa
| trunk
public InstanceNetworkInterface withInterfaceType(String interfaceType)
The type of network interface.
Valid values: interface
| efa
| trunk
interfaceType
- The type of network interface.
Valid values: interface
| efa
| trunk
public List<InstanceIpv4Prefix> getIpv4Prefixes()
The IPv4 delegated prefixes that are assigned to the network interface.
public void setIpv4Prefixes(Collection<InstanceIpv4Prefix> ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
ipv4Prefixes
- The IPv4 delegated prefixes that are assigned to the network interface.public InstanceNetworkInterface withIpv4Prefixes(InstanceIpv4Prefix... ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setIpv4Prefixes(java.util.Collection)
or withIpv4Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv4Prefixes
- The IPv4 delegated prefixes that are assigned to the network interface.public InstanceNetworkInterface withIpv4Prefixes(Collection<InstanceIpv4Prefix> ipv4Prefixes)
The IPv4 delegated prefixes that are assigned to the network interface.
ipv4Prefixes
- The IPv4 delegated prefixes that are assigned to the network interface.public List<InstanceIpv6Prefix> getIpv6Prefixes()
The IPv6 delegated prefixes that are assigned to the network interface.
public void setIpv6Prefixes(Collection<InstanceIpv6Prefix> ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
ipv6Prefixes
- The IPv6 delegated prefixes that are assigned to the network interface.public InstanceNetworkInterface withIpv6Prefixes(InstanceIpv6Prefix... ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Prefixes(java.util.Collection)
or withIpv6Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv6Prefixes
- The IPv6 delegated prefixes that are assigned to the network interface.public InstanceNetworkInterface withIpv6Prefixes(Collection<InstanceIpv6Prefix> ipv6Prefixes)
The IPv6 delegated prefixes that are assigned to the network interface.
ipv6Prefixes
- The IPv6 delegated prefixes that are assigned to the network interface.public void setConnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration)
A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.
connectionTrackingConfiguration
- A security group connection tracking configuration that enables you to set the timeout for connection
tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.public ConnectionTrackingSpecificationResponse getConnectionTrackingConfiguration()
A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.
public InstanceNetworkInterface withConnectionTrackingConfiguration(ConnectionTrackingSpecificationResponse connectionTrackingConfiguration)
A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.
connectionTrackingConfiguration
- A security group connection tracking configuration that enables you to set the timeout for connection
tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.public String toString()
toString
in class Object
Object.toString()
public InstanceNetworkInterface clone()