public class ScheduledInstancesNetworkInterface
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a network interface for a Scheduled Instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
associatePublicIpAddress
Indicates whether to assign a public IP address to instances launched in
a VPC.
|
private java.lang.Boolean |
deleteOnTermination
Indicates whether to delete the interface when the instance is
terminated.
|
private java.lang.String |
description
The description.
|
private java.lang.Integer |
deviceIndex
The index of the device for the network interface attachment.
|
private SdkInternalList<java.lang.String> |
groups
The IDs of one or more security groups.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.String |
privateIpAddress
The IP address of the network interface within the subnet.
|
private SdkInternalList<ScheduledInstancesPrivateIpAddressConfig> |
privateIpAddressConfigs
The private IP addresses.
|
private java.lang.Integer |
secondaryPrivateIpAddressCount
The number of secondary private IP addresses.
|
private java.lang.String |
subnetId
The ID of the subnet.
|
Constructor and Description |
---|
ScheduledInstancesNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
ScheduledInstancesNetworkInterface |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAssociatePublicIpAddress()
Indicates whether to assign a public IP address to instances launched in
a VPC.
|
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether to delete the interface when the instance is
terminated.
|
java.lang.String |
getDescription()
The description.
|
java.lang.Integer |
getDeviceIndex()
The index of the device for the network interface attachment.
|
java.util.List<java.lang.String> |
getGroups()
The IDs of one or more security groups.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
java.lang.String |
getPrivateIpAddress()
The IP address of the network interface within the subnet.
|
java.util.List<ScheduledInstancesPrivateIpAddressConfig> |
getPrivateIpAddressConfigs()
The private IP addresses.
|
java.lang.Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
|
java.lang.String |
getSubnetId()
The ID of the subnet.
|
int |
hashCode() |
java.lang.Boolean |
isAssociatePublicIpAddress()
Indicates whether to assign a public IP address to instances launched in
a VPC.
|
java.lang.Boolean |
isDeleteOnTermination()
Indicates whether to delete the interface when the instance is
terminated.
|
void |
setAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to assign a public IP address to instances launched in
a VPC.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is
terminated.
|
void |
setDescription(java.lang.String description)
The description.
|
void |
setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.
|
void |
setGroups(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
|
void |
setPrivateIpAddressConfigs(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
|
void |
setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScheduledInstancesNetworkInterface |
withAssociatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
Indicates whether to assign a public IP address to instances launched in
a VPC.
|
ScheduledInstancesNetworkInterface |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is
terminated.
|
ScheduledInstancesNetworkInterface |
withDescription(java.lang.String description)
The description.
|
ScheduledInstancesNetworkInterface |
withDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.
|
ScheduledInstancesNetworkInterface |
withGroups(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.
|
ScheduledInstancesNetworkInterface |
withGroups(java.lang.String... groups)
The IDs of one or more security groups.
|
ScheduledInstancesNetworkInterface |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddressConfigs(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
|
ScheduledInstancesNetworkInterface |
withPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
The private IP addresses.
|
ScheduledInstancesNetworkInterface |
withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
ScheduledInstancesNetworkInterface |
withSubnetId(java.lang.String subnetId)
The ID of the subnet.
|
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.Integer deviceIndex
The index of the device for the network interface attachment.
private java.lang.String subnetId
The ID of the subnet.
private java.lang.String description
The description.
private java.lang.String privateIpAddress
The IP address of the network interface within the subnet.
private SdkInternalList<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs
The private IP addresses.
private java.lang.Integer secondaryPrivateIpAddressCount
The number of secondary private IP addresses.
private java.lang.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
.
private SdkInternalList<java.lang.String> groups
The IDs of one or more security groups.
private java.lang.Boolean deleteOnTermination
Indicates whether to delete the interface when the instance is terminated.
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public ScheduledInstancesNetworkInterface withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setDeviceIndex(java.lang.Integer deviceIndex)
The index of the device for the network interface attachment.
deviceIndex
- The index of the device for the network interface attachment.public java.lang.Integer getDeviceIndex()
The index of the device for the network interface attachment.
public ScheduledInstancesNetworkInterface withDeviceIndex(java.lang.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(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public java.lang.String getSubnetId()
The ID of the subnet.
public ScheduledInstancesNetworkInterface withSubnetId(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setDescription(java.lang.String description)
The description.
description
- The description.public java.lang.String getDescription()
The description.
public ScheduledInstancesNetworkInterface withDescription(java.lang.String description)
The description.
description
- The description.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public java.lang.String getPrivateIpAddress()
The IP address of the network interface within the subnet.
public ScheduledInstancesNetworkInterface withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public java.util.List<ScheduledInstancesPrivateIpAddressConfig> getPrivateIpAddressConfigs()
The private IP addresses.
public void setPrivateIpAddressConfigs(java.util.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(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
privateIpAddressConfigs
- The private IP addresses.public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public java.lang.Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
public ScheduledInstancesNetworkInterface withSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public void setAssociatePublicIpAddress(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.util.List<java.lang.String> getGroups()
The IDs of one or more security groups.
public void setGroups(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(java.lang.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(java.util.Collection<java.lang.String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public void setDeleteOnTermination(java.lang.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 java.lang.Boolean getDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
public ScheduledInstancesNetworkInterface withDeleteOnTermination(java.lang.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 java.lang.Boolean isDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ScheduledInstancesNetworkInterface clone()
clone
in class java.lang.Object