public class InstanceNetworkInterface
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a network interface.
Modifier and Type | Field and Description |
---|---|
private InstanceNetworkInterfaceAssociation |
association
The association information for an Elastic IP associated with the network
interface.
|
private InstanceNetworkInterfaceAttachment |
attachment
The network interface attachment.
|
private java.lang.String |
description
The description.
|
private SdkInternalList<GroupIdentifier> |
groups
One or more security groups.
|
private java.lang.String |
macAddress
The MAC address.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.String |
ownerId
The ID of the AWS account that created the network interface.
|
private java.lang.String |
privateDnsName
The private DNS name.
|
private java.lang.String |
privateIpAddress
The IP address of the network interface within the subnet.
|
private SdkInternalList<InstancePrivateIpAddress> |
privateIpAddresses
The private IP addresses associated with the network interface.
|
private java.lang.Boolean |
sourceDestCheck
Indicates whether to validate network traffic to or from this network
interface.
|
private java.lang.String |
status
The status of the network interface.
|
private java.lang.String |
subnetId
The ID of the subnet.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
InstanceNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
InstanceNetworkInterface |
clone() |
boolean |
equals(java.lang.Object obj) |
InstanceNetworkInterfaceAssociation |
getAssociation()
The association information for an Elastic IP associated with the network
interface.
|
InstanceNetworkInterfaceAttachment |
getAttachment()
The network interface attachment.
|
java.lang.String |
getDescription()
The description.
|
java.util.List<GroupIdentifier> |
getGroups()
One or more security groups.
|
java.lang.String |
getMacAddress()
The MAC address.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
java.lang.String |
getOwnerId()
The ID of the AWS account that created the network interface.
|
java.lang.String |
getPrivateDnsName()
The private DNS name.
|
java.lang.String |
getPrivateIpAddress()
The IP address of the network interface within the subnet.
|
java.util.List<InstancePrivateIpAddress> |
getPrivateIpAddresses()
The private IP addresses associated with the network interface.
|
java.lang.Boolean |
getSourceDestCheck()
Indicates whether to validate network traffic to or from this network
interface.
|
java.lang.String |
getStatus()
The status of the network interface.
|
java.lang.String |
getSubnetId()
The ID of the subnet.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
java.lang.Boolean |
isSourceDestCheck()
Indicates whether to validate network traffic to or from this network
interface.
|
void |
setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network
interface.
|
void |
setAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
|
void |
setDescription(java.lang.String description)
The description.
|
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.
|
void |
setMacAddress(java.lang.String macAddress)
The MAC address.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
void |
setOwnerId(java.lang.String ownerId)
The ID of the AWS account that created the network interface.
|
void |
setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
|
void |
setPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network
interface.
|
void |
setStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
void |
setStatus(java.lang.String status)
The status of the network interface.
|
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceNetworkInterface |
withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network
interface.
|
InstanceNetworkInterface |
withAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
|
InstanceNetworkInterface |
withDescription(java.lang.String description)
The description.
|
InstanceNetworkInterface |
withGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.
|
InstanceNetworkInterface |
withGroups(GroupIdentifier... groups)
One or more security groups.
|
InstanceNetworkInterface |
withMacAddress(java.lang.String macAddress)
The MAC address.
|
InstanceNetworkInterface |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
InstanceNetworkInterface |
withOwnerId(java.lang.String ownerId)
The ID of the AWS account that created the network interface.
|
InstanceNetworkInterface |
withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
|
InstanceNetworkInterface |
withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
|
InstanceNetworkInterface |
withPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
|
InstanceNetworkInterface |
withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
The private IP addresses associated with the network interface.
|
InstanceNetworkInterface |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network
interface.
|
InstanceNetworkInterface |
withStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
InstanceNetworkInterface |
withStatus(java.lang.String status)
The status of the network interface.
|
InstanceNetworkInterface |
withSubnetId(java.lang.String subnetId)
The ID of the subnet.
|
InstanceNetworkInterface |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String subnetId
The ID of the subnet.
private java.lang.String vpcId
The ID of the VPC.
private java.lang.String description
The description.
private java.lang.String ownerId
The ID of the AWS account that created the network interface.
private java.lang.String status
The status of the network interface.
private java.lang.String macAddress
The MAC address.
private java.lang.String privateIpAddress
The IP address of the network interface within the subnet.
private java.lang.String privateDnsName
The private DNS name.
private java.lang.Boolean sourceDestCheck
Indicates whether to validate network traffic to or from this network interface.
private SdkInternalList<GroupIdentifier> groups
One or more security groups.
private InstanceNetworkInterfaceAttachment attachment
The network interface attachment.
private InstanceNetworkInterfaceAssociation association
The association information for an Elastic IP associated with the network interface.
private SdkInternalList<InstancePrivateIpAddress> privateIpAddresses
The private IP addresses associated with the network interface.
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public InstanceNetworkInterface withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setSubnetId(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public java.lang.String getSubnetId()
The ID of the subnet.
public InstanceNetworkInterface withSubnetId(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public InstanceNetworkInterface withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setDescription(java.lang.String description)
The description.
description
- The description.public java.lang.String getDescription()
The description.
public InstanceNetworkInterface withDescription(java.lang.String description)
The description.
description
- The description.public void setOwnerId(java.lang.String ownerId)
The ID of the AWS account that created the network interface.
ownerId
- The ID of the AWS account that created the network interface.public java.lang.String getOwnerId()
The ID of the AWS account that created the network interface.
public InstanceNetworkInterface withOwnerId(java.lang.String ownerId)
The ID of the AWS account that created the network interface.
ownerId
- The ID of the AWS account that created the network interface.public void setStatus(java.lang.String status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public java.lang.String getStatus()
The status of the network interface.
NetworkInterfaceStatus
public InstanceNetworkInterface withStatus(java.lang.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 setMacAddress(java.lang.String macAddress)
The MAC address.
macAddress
- The MAC address.public java.lang.String getMacAddress()
The MAC address.
public InstanceNetworkInterface withMacAddress(java.lang.String macAddress)
The MAC address.
macAddress
- The MAC address.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public java.lang.String getPrivateIpAddress()
The IP address of the network interface within the subnet.
public InstanceNetworkInterface withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public java.lang.String getPrivateDnsName()
The private DNS name.
public InstanceNetworkInterface withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network interface.
sourceDestCheck
- Indicates whether to validate network traffic to or from this
network interface.public java.lang.Boolean getSourceDestCheck()
Indicates whether to validate network traffic to or from this network interface.
public InstanceNetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network interface.
sourceDestCheck
- Indicates whether to validate network traffic to or from this
network interface.public java.lang.Boolean isSourceDestCheck()
Indicates whether to validate network traffic to or from this network interface.
public java.util.List<GroupIdentifier> getGroups()
One or more security groups.
public void setGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.
groups
- One or more security groups.public InstanceNetworkInterface withGroups(GroupIdentifier... groups)
One or more 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
- One or more security groups.public InstanceNetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.
groups
- One or more security groups.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 setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.
association
- The association information for an Elastic IP associated with the
network interface.public InstanceNetworkInterfaceAssociation getAssociation()
The association information for an Elastic IP associated with the network interface.
public InstanceNetworkInterface withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.
association
- The association information for an Elastic IP associated with the
network interface.public java.util.List<InstancePrivateIpAddress> getPrivateIpAddresses()
The private IP addresses associated with the network interface.
public void setPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
privateIpAddresses
- The private IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
The private IP 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 IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
privateIpAddresses
- The private IP addresses associated with the network interface.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceNetworkInterface clone()
clone
in class java.lang.Object