@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkInterface extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
boolean |
equals(Object obj) |
List<String> |
getIpv6Addresses()
The IP addresses associated with the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateDnsName()
The name of a private DNS associated with the network interface.
|
String |
getPrivateIpAddress()
The private IP address associated with the network interface.
|
List<PrivateIp> |
getPrivateIpAddresses()
A list of the private IP addresses associated with the network interface.
|
String |
getPublicDnsName()
The name of a public DNS associated with the network interface.
|
String |
getPublicIp()
The public IP address from which the network interface is reachable.
|
List<SecurityGroup> |
getSecurityGroups()
A list of the security groups associated with the network interface.
|
String |
getSubnetId()
The ID of a subnet associated with the network interface.
|
String |
getVpcId()
The ID of a VPC associated with the network interface.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIpv6Addresses(Collection<String> ipv6Addresses)
The IP addresses associated with the network interface.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateDnsName(String privateDnsName)
The name of a private DNS associated with the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address associated with the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIp> privateIpAddresses)
A list of the private IP addresses associated with the network interface.
|
void |
setPublicDnsName(String publicDnsName)
The name of a public DNS associated with the network interface.
|
void |
setPublicIp(String publicIp)
The public IP address from which the network interface is reachable.
|
void |
setSecurityGroups(Collection<SecurityGroup> securityGroups)
A list of the security groups associated with the network interface.
|
void |
setSubnetId(String subnetId)
The ID of a subnet associated with the network interface.
|
void |
setVpcId(String vpcId)
The ID of a VPC associated with the network interface.
|
String |
toString()
Returns a string representation of this object.
|
NetworkInterface |
withIpv6Addresses(Collection<String> ipv6Addresses)
The IP addresses associated with the network interface.
|
NetworkInterface |
withIpv6Addresses(String... ipv6Addresses)
The IP addresses associated with the network interface.
|
NetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
NetworkInterface |
withPrivateDnsName(String privateDnsName)
The name of a private DNS associated with the network interface.
|
NetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The private IP address associated with the network interface.
|
NetworkInterface |
withPrivateIpAddresses(Collection<PrivateIp> privateIpAddresses)
A list of the private IP addresses associated with the network interface.
|
NetworkInterface |
withPrivateIpAddresses(PrivateIp... privateIpAddresses)
A list of the private IP addresses associated with the network interface.
|
NetworkInterface |
withPublicDnsName(String publicDnsName)
The name of a public DNS associated with the network interface.
|
NetworkInterface |
withPublicIp(String publicIp)
The public IP address from which the network interface is reachable.
|
NetworkInterface |
withSecurityGroups(Collection<SecurityGroup> securityGroups)
A list of the security groups associated with the network interface.
|
NetworkInterface |
withSecurityGroups(SecurityGroup... securityGroups)
A list of the security groups associated with the network interface.
|
NetworkInterface |
withSubnetId(String subnetId)
The ID of a subnet associated with the network interface.
|
NetworkInterface |
withVpcId(String vpcId)
The ID of a VPC associated with the network interface.
|
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 NetworkInterface withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setSubnetId(String subnetId)
The ID of a subnet associated with the network interface.
subnetId
- The ID of a subnet associated with the network interface.public String getSubnetId()
The ID of a subnet associated with the network interface.
public NetworkInterface withSubnetId(String subnetId)
The ID of a subnet associated with the network interface.
subnetId
- The ID of a subnet associated with the network interface.public void setVpcId(String vpcId)
The ID of a VPC associated with the network interface.
vpcId
- The ID of a VPC associated with the network interface.public String getVpcId()
The ID of a VPC associated with the network interface.
public NetworkInterface withVpcId(String vpcId)
The ID of a VPC associated with the network interface.
vpcId
- The ID of a VPC associated with the network interface.public void setPrivateDnsName(String privateDnsName)
The name of a private DNS associated with the network interface.
privateDnsName
- The name of a private DNS associated with the network interface.public String getPrivateDnsName()
The name of a private DNS associated with the network interface.
public NetworkInterface withPrivateDnsName(String privateDnsName)
The name of a private DNS associated with the network interface.
privateDnsName
- The name of a private DNS associated with the network interface.public void setPrivateIpAddress(String privateIpAddress)
The private IP address associated with the network interface.
privateIpAddress
- The private IP address associated with the network interface.public String getPrivateIpAddress()
The private IP address associated with the network interface.
public NetworkInterface withPrivateIpAddress(String privateIpAddress)
The private IP address associated with the network interface.
privateIpAddress
- The private IP address associated with the network interface.public List<PrivateIp> getPrivateIpAddresses()
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
public void setPrivateIpAddresses(Collection<PrivateIp> privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
privateIpAddresses
- A list of the private IP addresses associated with the network interface. Includes the privateDnsName and
privateIpAddress.public NetworkInterface withPrivateIpAddresses(PrivateIp... privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
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
- A list of the private IP addresses associated with the network interface. Includes the privateDnsName and
privateIpAddress.public NetworkInterface withPrivateIpAddresses(Collection<PrivateIp> privateIpAddresses)
A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
privateIpAddresses
- A list of the private IP addresses associated with the network interface. Includes the privateDnsName and
privateIpAddress.public void setPublicDnsName(String publicDnsName)
The name of a public DNS associated with the network interface.
publicDnsName
- The name of a public DNS associated with the network interface.public String getPublicDnsName()
The name of a public DNS associated with the network interface.
public NetworkInterface withPublicDnsName(String publicDnsName)
The name of a public DNS associated with the network interface.
publicDnsName
- The name of a public DNS associated with the network interface.public void setPublicIp(String publicIp)
The public IP address from which the network interface is reachable.
publicIp
- The public IP address from which the network interface is reachable.public String getPublicIp()
The public IP address from which the network interface is reachable.
public NetworkInterface withPublicIp(String publicIp)
The public IP address from which the network interface is reachable.
publicIp
- The public IP address from which the network interface is reachable.public List<String> getIpv6Addresses()
The IP addresses associated with the network interface.
public void setIpv6Addresses(Collection<String> ipv6Addresses)
The IP addresses associated with the network interface.
ipv6Addresses
- The IP addresses associated with the network interface.public NetworkInterface withIpv6Addresses(String... ipv6Addresses)
The IP 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 IP addresses associated with the network interface.public NetworkInterface withIpv6Addresses(Collection<String> ipv6Addresses)
The IP addresses associated with the network interface.
ipv6Addresses
- The IP addresses associated with the network interface.public List<SecurityGroup> getSecurityGroups()
A list of the security groups associated with the network interface. Includes the groupId and groupName.
public void setSecurityGroups(Collection<SecurityGroup> securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
securityGroups
- A list of the security groups associated with the network interface. Includes the groupId and groupName.public NetworkInterface withSecurityGroups(SecurityGroup... securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- A list of the security groups associated with the network interface. Includes the groupId and groupName.public NetworkInterface withSecurityGroups(Collection<SecurityGroup> securityGroups)
A list of the security groups associated with the network interface. Includes the groupId and groupName.
securityGroups
- A list of the security groups associated with the network interface. Includes the groupId and groupName.public String toString()
toString
in class Object
Object.toString()
public NetworkInterface clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.