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 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 ScheduledInstancesNetworkInterface withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
deviceIndex
- The index of the device for the network interface attachment.public Integer getDeviceIndex()
The index of the device for the network interface attachment.
public ScheduledInstancesNetworkInterface withDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
deviceIndex
- The index of the device for the network interface attachment.public void setSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public String getSubnetId()
The ID of the subnet.
public ScheduledInstancesNetworkInterface withSubnetId(String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setDescription(String description)
The description.
description
- The description.public String getDescription()
The description.
public ScheduledInstancesNetworkInterface withDescription(String description)
The description.
description
- The description.public void setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public String getPrivateIpAddress()
The IP address of the network interface within the subnet.
public ScheduledInstancesNetworkInterface withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public List<ScheduledInstancesPrivateIpAddressConfig> getPrivateIpAddressConfigs()
The private IP addresses.
public void setPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
privateIpAddressConfigs
- The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
The private IP addresses.
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.
privateIpAddressConfigs
- The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
privateIpAddressConfigs
- The private IP addresses.public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
public ScheduledInstancesNetworkInterface withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public void setAssociatePublicIpAddress(Boolean 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
.
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()
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
.
true
.public ScheduledInstancesNetworkInterface withAssociatePublicIpAddress(Boolean 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
.
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 isAssociatePublicIpAddress()
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
.
true
.public List<String> getGroups()
The IDs of one or more security groups.
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(String... groups)
The IDs of one or more security 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.
groups
- The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is terminated.
deleteOnTermination
- Indicates whether to delete the interface when the instance is terminated.public Boolean getDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
public ScheduledInstancesNetworkInterface withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is terminated.
deleteOnTermination
- Indicates whether to delete the interface when the instance is terminated.public Boolean isDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
public String toString()
toString
in class Object
Object.toString()
public ScheduledInstancesNetworkInterface clone()
Copyright © 2016. All rights reserved.