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 IP associated with the
network interface.
|
InstanceNetworkInterfaceAttachment |
getAttachment()
The network interface attachment.
|
String |
getDescription()
The description.
|
List<GroupIdentifier> |
getGroups()
One or more security groups.
|
String |
getMacAddress()
The MAC address.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOwnerId()
The ID of the AWS account that created the network interface.
|
String |
getPrivateDnsName()
The private DNS name.
|
String |
getPrivateIpAddress()
The IP address of the network interface within the subnet.
|
List<InstancePrivateIpAddress> |
getPrivateIpAddresses()
The private IP addresses associated with the network interface.
|
Boolean |
getSourceDestCheck()
Indicates whether to validate network traffic to or from this network
interface.
|
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 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(String description)
The description.
|
void |
setGroups(Collection<GroupIdentifier> groups)
One or more security groups.
|
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 AWS account that created the network interface.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name.
|
void |
setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
void |
setPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
|
void |
setSourceDestCheck(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(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; 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(String description)
The description.
|
InstanceNetworkInterface |
withGroups(Collection<GroupIdentifier> groups)
One or more security groups.
|
InstanceNetworkInterface |
withGroups(GroupIdentifier... groups)
One or more security groups.
|
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 AWS account that created the network interface.
|
InstanceNetworkInterface |
withPrivateDnsName(String privateDnsName)
The private DNS name.
|
InstanceNetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
InstanceNetworkInterface |
withPrivateIpAddresses(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(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(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 String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public InstanceNetworkInterface withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet.public InstanceNetworkInterface withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.public InstanceNetworkInterface withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public String getDescription()
public void setDescription(String description)
description
- The description.public InstanceNetworkInterface withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description.public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- The ID of the AWS account that created the network interface.public InstanceNetworkInterface withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The ID of the AWS account that created the network interface.public String getStatus()
Constraints:
Allowed Values: available, attaching, in-use, detaching
NetworkInterfaceStatus
public void setStatus(String status)
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public InstanceNetworkInterface withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public void setStatus(NetworkInterfaceStatus status)
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public InstanceNetworkInterface withStatus(NetworkInterfaceStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public String getMacAddress()
public void setMacAddress(String macAddress)
macAddress
- The MAC address.public InstanceNetworkInterface withMacAddress(String macAddress)
Returns a reference to this object so that method calls can be chained together.
macAddress
- The MAC address.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress
- The IP address of the network interface within the subnet.public InstanceNetworkInterface withPrivateIpAddress(String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- The IP address of the network interface within the subnet.public String getPrivateDnsName()
public void setPrivateDnsName(String privateDnsName)
privateDnsName
- The private DNS name.public InstanceNetworkInterface withPrivateDnsName(String privateDnsName)
Returns a reference to this object so that method calls can be chained together.
privateDnsName
- The private DNS name.public Boolean isSourceDestCheck()
public void setSourceDestCheck(Boolean sourceDestCheck)
sourceDestCheck
- Indicates whether to validate network traffic to or from this network
interface.public InstanceNetworkInterface withSourceDestCheck(Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck
- Indicates whether to validate network traffic to or from this network
interface.public Boolean getSourceDestCheck()
public List<GroupIdentifier> getGroups()
public void setGroups(Collection<GroupIdentifier> groups)
groups
- One or more security groups.public InstanceNetworkInterface withGroups(GroupIdentifier... 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.
Returns a reference to this object so that method calls can be chained together.
groups
- One or more security groups.public InstanceNetworkInterface withGroups(Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- One or more security groups.public InstanceNetworkInterfaceAttachment getAttachment()
public void setAttachment(InstanceNetworkInterfaceAttachment attachment)
attachment
- The network interface attachment.public InstanceNetworkInterface withAttachment(InstanceNetworkInterfaceAttachment attachment)
Returns a reference to this object so that method calls can be chained together.
attachment
- The network interface attachment.public InstanceNetworkInterfaceAssociation getAssociation()
public void setAssociation(InstanceNetworkInterfaceAssociation association)
association
- The association information for an Elastic IP associated with the
network interface.public InstanceNetworkInterface withAssociation(InstanceNetworkInterfaceAssociation association)
Returns a reference to this object so that method calls can be chained together.
association
- The association information for an Elastic IP associated with the
network interface.public List<InstancePrivateIpAddress> getPrivateIpAddresses()
public void setPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
privateIpAddresses
- The private IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
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.
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- The private IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- The private IP addresses associated with the network interface.public String toString()
toString
in class Object
Object.toString()
public InstanceNetworkInterface clone()
Copyright © 2015. All rights reserved.