@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkInterface extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the elastic network interface of the EC2 instance.
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
boolean |
equals(Object obj) |
List<String> |
getIpv6Addresses()
A list of IPv6 addresses for the EC2 instance.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateDnsName()
The private DNS name of the EC2 instance.
|
String |
getPrivateIpAddress()
The private IP address of the EC2 instance.
|
List<PrivateIpAddressDetails> |
getPrivateIpAddresses()
Other private IP address information of the EC2 instance.
|
String |
getPublicDnsName()
The public DNS name of the EC2 instance.
|
String |
getPublicIp()
The public IP address of the EC2 instance.
|
List<SecurityGroup> |
getSecurityGroups()
The 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 IPv6 addresses for the EC2 instance.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The 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)
The public DNS name of the EC2 instance.
|
void |
setPublicIp(String publicIp)
The public IP address of the EC2 instance.
|
void |
setSecurityGroups(Collection<SecurityGroup> securityGroups)
The 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 IPv6 addresses for the EC2 instance.
|
NetworkInterface |
withIpv6Addresses(String... ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
|
NetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
NetworkInterface |
withPrivateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
|
NetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The 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)
The public DNS name of the EC2 instance.
|
NetworkInterface |
withPublicIp(String publicIp)
The public IP address of the EC2 instance.
|
NetworkInterface |
withSecurityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the EC2 instance.
|
NetworkInterface |
withSecurityGroups(SecurityGroup... securityGroups)
The 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 IPv6 addresses for the EC2 instance.
public void setIpv6Addresses(Collection<String> ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
ipv6Addresses
- A list of IPv6 addresses for the EC2 instance.public NetworkInterface withIpv6Addresses(String... ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
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 IPv6 addresses for the EC2 instance.public NetworkInterface withIpv6Addresses(Collection<String> ipv6Addresses)
A list of IPv6 addresses for the EC2 instance.
ipv6Addresses
- A list of IPv6 addresses for the EC2 instance.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 setPrivateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
privateDnsName
- The private DNS name of the EC2 instance.public String getPrivateDnsName()
The private DNS name of the EC2 instance.
public NetworkInterface withPrivateDnsName(String privateDnsName)
The private DNS name of the EC2 instance.
privateDnsName
- The private DNS name of the EC2 instance.public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the EC2 instance.
privateIpAddress
- The private IP address of the EC2 instance.public String getPrivateIpAddress()
The private IP address of the EC2 instance.
public NetworkInterface withPrivateIpAddress(String privateIpAddress)
The private IP address of the EC2 instance.
privateIpAddress
- The 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)
The public DNS name of the EC2 instance.
publicDnsName
- The public DNS name of the EC2 instance.public String getPublicDnsName()
The public DNS name of the EC2 instance.
public NetworkInterface withPublicDnsName(String publicDnsName)
The public DNS name of the EC2 instance.
publicDnsName
- The public DNS name of the EC2 instance.public void setPublicIp(String publicIp)
The public IP address of the EC2 instance.
publicIp
- The public IP address of the EC2 instance.public String getPublicIp()
The public IP address of the EC2 instance.
public NetworkInterface withPublicIp(String publicIp)
The public IP address of the EC2 instance.
publicIp
- The public IP address of the EC2 instance.public List<SecurityGroup> getSecurityGroups()
The security groups associated with the EC2 instance.
public void setSecurityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the EC2 instance.
securityGroups
- The security groups associated with the EC2 instance.public NetworkInterface withSecurityGroups(SecurityGroup... securityGroups)
The 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
- The security groups associated with the EC2 instance.public NetworkInterface withSecurityGroups(Collection<SecurityGroup> securityGroups)
The security groups associated with the EC2 instance.
securityGroups
- The 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.