public class ScheduledInstancesNetworkInterface extends Object implements Serializable, Cloneable
Describes a network interface for a Scheduled Instance.
| Constructor and Description |
|---|
ScheduledInstancesNetworkInterface() |
| Modifier and Type | Method and Description |
|---|---|
ScheduledInstancesNetworkInterface |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Indicates whether to assign a public IP address to instances launched
in a VPC.
|
Boolean |
getDeleteOnTermination()
Indicates whether to delete the interface when the instance is
terminated.
|
String |
getDescription()
The description.
|
Integer |
getDeviceIndex()
The index of the device for the network interface attachment.
|
List<String> |
getGroups()
The IDs of one or more security groups.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The IP address of the network interface within the subnet.
|
List<ScheduledInstancesPrivateIpAddressConfig> |
getPrivateIpAddressConfigs()
The private IP addresses.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
|
String |
getSubnetId()
The ID of the subnet.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Indicates whether to assign a public IP address to instances launched
in a VPC.
|
Boolean |
isDeleteOnTermination()
Indicates whether to delete the interface when the instance is
terminated.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IP address to instances launched
in a VPC.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is
terminated.
|
void |
setDescription(String description)
The description.
|
void |
setDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
|
void |
setGroups(Collection<String> groups)
The IDs of one or more security groups.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
void |
setPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScheduledInstancesNetworkInterface |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IP address to instances launched
in a VPC.
|
ScheduledInstancesNetworkInterface |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is
terminated.
|
ScheduledInstancesNetworkInterface |
withDescription(String description)
The description.
|
ScheduledInstancesNetworkInterface |
withDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
|
ScheduledInstancesNetworkInterface |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
ScheduledInstancesNetworkInterface |
withGroups(String... groups)
The IDs of one or more security groups.
|
ScheduledInstancesNetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
The private IP addresses.
|
ScheduledInstancesNetworkInterface |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
ScheduledInstancesNetworkInterface |
withSubnetId(String subnetId)
The ID of the subnet.
|
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId - The ID of the network interface.public ScheduledInstancesNetworkInterface 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 Integer getDeviceIndex()
public void setDeviceIndex(Integer deviceIndex)
deviceIndex - The index of the device for the network interface attachment.public ScheduledInstancesNetworkInterface withDeviceIndex(Integer deviceIndex)
Returns a reference to this object so that method calls can be chained together.
deviceIndex - The index of the device for the network interface attachment.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId - The ID of the subnet.public ScheduledInstancesNetworkInterface 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 getDescription()
public void setDescription(String description)
description - The description.public ScheduledInstancesNetworkInterface withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - The description.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress - The IP address of the network interface within the subnet.public ScheduledInstancesNetworkInterface 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 List<ScheduledInstancesPrivateIpAddressConfig> getPrivateIpAddressConfigs()
public void setPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
privateIpAddressConfigs - The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
NOTE: This method appends the values to the existing list (if
any). Use setPrivateIpAddressConfigs(java.util.Collection) or
withPrivateIpAddressConfigs(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.
privateIpAddressConfigs - The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
Returns a reference to this object so that method calls can be chained together.
privateIpAddressConfigs - The private IP addresses.public Integer getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
secondaryPrivateIpAddressCount - The number of secondary private IP addresses.public ScheduledInstancesNetworkInterface withSecondaryPrivateIpAddressCount(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 Boolean isAssociatePublicIpAddress()
true.true.public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
true.associatePublicIpAddress - Indicates whether to assign a public IP address to instances launched
in a VPC. The public IP address can only be assigned to a network
interface for eth0, and can only be assigned to a new network
interface, not an existing one. You cannot specify more than one
network interface in the request. If launching into a default subnet,
the default value is true.public ScheduledInstancesNetworkInterface withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
true.
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress - Indicates whether to assign a public IP address to instances launched
in a VPC. The public IP address can only be assigned to a network
interface for eth0, and can only be assigned to a new network
interface, not an existing one. You cannot specify more than one
network interface in the request. If launching into a default subnet,
the default value is true.public Boolean getAssociatePublicIpAddress()
true.true.public List<String> getGroups()
public void setGroups(Collection<String> groups)
groups - The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(String... 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 - The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(Collection<String> groups)
Returns a reference to this object so that method calls can be chained together.
groups - The IDs of one or more security groups.public Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination - Indicates whether to delete the interface when the instance is
terminated.public ScheduledInstancesNetworkInterface withDeleteOnTermination(Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination - Indicates whether to delete the interface when the instance is
terminated.public Boolean getDeleteOnTermination()
public String toString()
toString in class ObjectObject.toString()public ScheduledInstancesNetworkInterface clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.