|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceNetworkInterfaceSpecification
public class InstanceNetworkInterfaceSpecification
Describes a network interface.
Constructor Summary | |
---|---|
InstanceNetworkInterfaceSpecification()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Boolean |
getAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance in a VPC. |
java.lang.Boolean |
getDeleteOnTermination()
If set to true , the interface is deleted when the
instance is terminated. |
java.lang.String |
getDescription()
The description of the network interface. |
java.lang.Integer |
getDeviceIndex()
The index of the device on the instance for the network interface attachment. |
java.util.List<java.lang.String> |
getGroups()
The IDs of the security groups for the network interface. |
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface. |
java.lang.String |
getPrivateIpAddress()
The private IP address of the network interface. |
java.util.List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more private IP addresses to assign to the network interface. |
java.lang.Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses. |
java.lang.String |
getSubnetId()
The ID of the subnet associated with the network string. |
int |
hashCode()
|
java.lang.Boolean |
isAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance in a VPC. |
java.lang.Boolean |
isDeleteOnTermination()
If set to true , the interface is deleted when the
instance is terminated. |
void |
setAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to auto-assign a public IP address to an instance in a VPC. |
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
If set to true , the interface is deleted when the
instance is terminated. |
void |
setDescription(java.lang.String description)
The description of the network interface. |
void |
setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment. |
void |
setGroups(java.util.Collection<java.lang.String> groups)
The IDs of the security groups for the network interface. |
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface. |
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface. |
void |
setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface. |
void |
setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses. |
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet associated with the network string. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceNetworkInterfaceSpecification |
withAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to auto-assign a public IP address to an instance in a VPC. |
InstanceNetworkInterfaceSpecification |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
If set to true , the interface is deleted when the
instance is terminated. |
InstanceNetworkInterfaceSpecification |
withDescription(java.lang.String description)
The description of the network interface. |
InstanceNetworkInterfaceSpecification |
withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device on the instance for the network interface attachment. |
InstanceNetworkInterfaceSpecification |
withGroups(java.util.Collection<java.lang.String> groups)
The IDs of the security groups for the network interface. |
InstanceNetworkInterfaceSpecification |
withGroups(java.lang.String... groups)
The IDs of the security groups for the network interface. |
InstanceNetworkInterfaceSpecification |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface. |
InstanceNetworkInterfaceSpecification |
withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface. |
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface. |
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses to assign to the network interface. |
InstanceNetworkInterfaceSpecification |
withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses. |
InstanceNetworkInterfaceSpecification |
withSubnetId(java.lang.String subnetId)
The ID of the subnet associated with the network string. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceNetworkInterfaceSpecification()
Method Detail |
---|
public java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public InstanceNetworkInterfaceSpecification withNetworkInterfaceId(java.lang.String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.
public java.lang.Integer getDeviceIndex()
public void setDeviceIndex(java.lang.Integer deviceIndex)
deviceIndex
- The index of the device on the instance for the network interface
attachment.public InstanceNetworkInterfaceSpecification withDeviceIndex(java.lang.Integer deviceIndex)
Returns a reference to this object so that method calls can be chained together.
deviceIndex
- The index of the device on the instance for the network interface
attachment.
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet associated with the network string.public InstanceNetworkInterfaceSpecification withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet associated with the network string.
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of the network interface.public InstanceNetworkInterfaceSpecification withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description of the network interface.
public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress
- The private IP address of the network interface.public InstanceNetworkInterfaceSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- The private IP address of the network interface.
public java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.Collection<java.lang.String> groups)
groups
- The IDs of the security groups for the network interface.public InstanceNetworkInterfaceSpecification withGroups(java.lang.String... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of the security groups for the network interface.
public InstanceNetworkInterfaceSpecification withGroups(java.util.Collection<java.lang.String> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of the security groups for the network interface.
public java.lang.Boolean isDeleteOnTermination()
true
, the interface is deleted when the
instance is terminated.
true
, the interface is deleted when the
instance is terminated.public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
true
, the interface is deleted when the
instance is terminated.
deleteOnTermination
- If set to true
, the interface is deleted when the
instance is terminated.public InstanceNetworkInterfaceSpecification withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
true
, the interface is deleted when the
instance is terminated.
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- If set to true
, the interface is deleted when the
instance is terminated.
public java.lang.Boolean getDeleteOnTermination()
true
, the interface is deleted when the
instance is terminated.
true
, the interface is deleted when the
instance is terminated.public java.util.List<PrivateIpAddressSpecification> getPrivateIpAddresses()
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
privateIpAddresses
- One or more private IP addresses to assign to the network interface.public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses to assign to the network interface.
public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(java.util.Collection<PrivateIpAddressSpecification> privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses to assign to the network interface.
public java.lang.Integer getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public InstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
Returns a reference to this object so that method calls can be chained together.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.
public java.lang.Boolean isAssociatePublicIpAddress()
public void setAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
associatePublicIpAddress
- Indicates whether to auto-assign a public IP address to an instance in
a VPC. This public IP address can be assigned to the network interface
for eth0 only when you launch the instance. You must create the
network interface instead of using an existing network interface for
eth0, and you must not specify more than one network interface.public InstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress
- Indicates whether to auto-assign a public IP address to an instance in
a VPC. This public IP address can be assigned to the network interface
for eth0 only when you launch the instance. You must create the
network interface instead of using an existing network interface for
eth0, and you must not specify more than one network interface.
public java.lang.Boolean getAssociatePublicIpAddress()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |