@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkInterface extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the network interface.
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
boolean |
equals(Object obj) |
List<String> |
getIpv6Addresses()
A list of EC2 instance IPv6 address information.
|
String |
getNetworkInterfaceId()
The ID of the network interface
|
String |
getPrivateDnsName()
Private DNS name of the EC2 instance.
|
String |
getPrivateIpAddress()
Private IP address of the EC2 instance.
|
List<PrivateIpAddressDetails> |
getPrivateIpAddresses()
Other private IP address information of the EC2 instance.
|
String |
getPublicDnsName()
Public DNS name of the EC2 instance.
|
String |
getPublicIp()
Public IP address of the EC2 instance.
|
List<SecurityGroup> |
getSecurityGroups()
Security groups associated with the EC2 instance.
|
String |
getSubnetId()
The subnet ID of the EC2 instance.
|
String |
getVpcId()
The VPC ID of the EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIpv6Addresses(Collection<String> ipv6Addresses)
A list of EC2 instance IPv6 address information.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface
|
void |
setPrivateDnsName(String privateDnsName)
Private DNS name of the EC2 instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
Private IP address of the EC2 instance.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
|
void |
setPublicDnsName(String publicDnsName)
Public DNS name of the EC2 instance.
|
void |
setPublicIp(String publicIp)
Public IP address of the EC2 instance.
|
void |
setSecurityGroups(Collection<SecurityGroup> securityGroups)
Security groups associated with the EC2 instance.
|
void |
setSubnetId(String subnetId)
The subnet ID of the EC2 instance.
|
void |
setVpcId(String vpcId)
The VPC ID of the EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
NetworkInterface |
withIpv6Addresses(Collection<String> ipv6Addresses)
A list of EC2 instance IPv6 address information.
|
NetworkInterface |
withIpv6Addresses(String... ipv6Addresses)
A list of EC2 instance IPv6 address information.
|
NetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface
|
NetworkInterface |
withPrivateDnsName(String privateDnsName)
Private DNS name of the EC2 instance.
|
NetworkInterface |
withPrivateIpAddress(String privateIpAddress)
Private IP address of the EC2 instance.
|
NetworkInterface |
withPrivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
|
NetworkInterface |
withPrivateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
Other private IP address information of the EC2 instance.
|
NetworkInterface |
withPublicDnsName(String publicDnsName)
Public DNS name of the EC2 instance.
|
NetworkInterface |
withPublicIp(String publicIp)
Public IP address of the EC2 instance.
|
NetworkInterface |
withSecurityGroups(Collection<SecurityGroup> securityGroups)
Security groups associated with the EC2 instance.
|
NetworkInterface |
withSecurityGroups(SecurityGroup... securityGroups)
Security groups associated with the EC2 instance.
|
NetworkInterface |
withSubnetId(String subnetId)
The subnet ID of the EC2 instance.
|
NetworkInterface |
withVpcId(String vpcId)
The VPC ID of the EC2 instance.
|
public List<String> getIpv6Addresses()
A list of EC2 instance IPv6 address information.
public void setIpv6Addresses(Collection<String> ipv6Addresses)
A list of EC2 instance IPv6 address information.
ipv6Addresses
- A list of EC2 instance IPv6 address information.public NetworkInterface withIpv6Addresses(String... ipv6Addresses)
A list of EC2 instance IPv6 address information.
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
- A list of EC2 instance IPv6 address information.public NetworkInterface withIpv6Addresses(Collection<String> ipv6Addresses)
A list of EC2 instance IPv6 address information.
ipv6Addresses
- A list of EC2 instance IPv6 address information.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface
networkInterfaceId
- The ID of the network interfacepublic 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 interfacepublic void setPrivateDnsName(String privateDnsName)
Private DNS name of the EC2 instance.
privateDnsName
- Private DNS name of the EC2 instance.public String getPrivateDnsName()
Private DNS name of the EC2 instance.
public NetworkInterface withPrivateDnsName(String privateDnsName)
Private DNS name of the EC2 instance.
privateDnsName
- Private DNS name of the EC2 instance.public void setPrivateIpAddress(String privateIpAddress)
Private IP address of the EC2 instance.
privateIpAddress
- Private IP address of the EC2 instance.public String getPrivateIpAddress()
Private IP address of the EC2 instance.
public NetworkInterface withPrivateIpAddress(String privateIpAddress)
Private IP address of the EC2 instance.
privateIpAddress
- Private IP address of the EC2 instance.public List<PrivateIpAddressDetails> getPrivateIpAddresses()
Other private IP address information of the EC2 instance.
public void setPrivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
privateIpAddresses
- Other private IP address information of the EC2 instance.public NetworkInterface withPrivateIpAddresses(PrivateIpAddressDetails... privateIpAddresses)
Other private IP address information of the EC2 instance.
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
- Other private IP address information of the EC2 instance.public NetworkInterface withPrivateIpAddresses(Collection<PrivateIpAddressDetails> privateIpAddresses)
Other private IP address information of the EC2 instance.
privateIpAddresses
- Other private IP address information of the EC2 instance.public void setPublicDnsName(String publicDnsName)
Public DNS name of the EC2 instance.
publicDnsName
- Public DNS name of the EC2 instance.public String getPublicDnsName()
Public DNS name of the EC2 instance.
public NetworkInterface withPublicDnsName(String publicDnsName)
Public DNS name of the EC2 instance.
publicDnsName
- Public DNS name of the EC2 instance.public void setPublicIp(String publicIp)
Public IP address of the EC2 instance.
publicIp
- Public IP address of the EC2 instance.public String getPublicIp()
Public IP address of the EC2 instance.
public NetworkInterface withPublicIp(String publicIp)
Public IP address of the EC2 instance.
publicIp
- Public IP address of the EC2 instance.public List<SecurityGroup> getSecurityGroups()
Security groups associated with the EC2 instance.
public void setSecurityGroups(Collection<SecurityGroup> securityGroups)
Security groups associated with the EC2 instance.
securityGroups
- Security groups associated with the EC2 instance.public NetworkInterface withSecurityGroups(SecurityGroup... securityGroups)
Security groups associated with the EC2 instance.
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
- Security groups associated with the EC2 instance.public NetworkInterface withSecurityGroups(Collection<SecurityGroup> securityGroups)
Security groups associated with the EC2 instance.
securityGroups
- Security groups associated with the EC2 instance.public void setSubnetId(String subnetId)
The subnet ID of the EC2 instance.
subnetId
- The subnet ID of the EC2 instance.public String getSubnetId()
The subnet ID of the EC2 instance.
public NetworkInterface withSubnetId(String subnetId)
The subnet ID of the EC2 instance.
subnetId
- The subnet ID of the EC2 instance.public void setVpcId(String vpcId)
The VPC ID of the EC2 instance.
vpcId
- The VPC ID of the EC2 instance.public String getVpcId()
The VPC ID of the EC2 instance.
public NetworkInterface withVpcId(String vpcId)
The VPC ID of the EC2 instance.
vpcId
- The VPC ID of the EC2 instance.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.