public class ScheduledInstancesNetworkInterface
extends java.lang.Object
implements java.io.Serializable
Describes a network interface for a Scheduled Instance.
Constructor and Description |
---|
ScheduledInstancesNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public ScheduledInstancesNetworkInterface 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 for the network interface attachment.public ScheduledInstancesNetworkInterface 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 for the network interface attachment.public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet.public ScheduledInstancesNetworkInterface 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.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description.public ScheduledInstancesNetworkInterface withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description.public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress
- The IP address of the network interface within the subnet.public ScheduledInstancesNetworkInterface withPrivateIpAddress(java.lang.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 java.util.List<ScheduledInstancesPrivateIpAddressConfig> getPrivateIpAddressConfigs()
public void setPrivateIpAddressConfigs(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
privateIpAddressConfigs
- The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
Returns a reference to this object so that method calls can be chained together.
privateIpAddressConfigs
- The private IP addresses.public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
Returns a reference to this object so that method calls can be chained together.
privateIpAddressConfigs
- The private IP addresses.public java.lang.Integer getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(java.lang.Integer secondaryPrivateIpAddressCount)
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public ScheduledInstancesNetworkInterface 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()
true
.true
.public void setAssociatePublicIpAddress(java.lang.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(java.lang.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 java.lang.Boolean getAssociatePublicIpAddress()
true
.true
.public java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.Collection<java.lang.String> groups)
groups
- The IDs of one or more security groups.public ScheduledInstancesNetworkInterface withGroups(java.lang.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 ScheduledInstancesNetworkInterface 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 one or more security groups.public java.lang.Boolean isDeleteOnTermination()
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
deleteOnTermination
- Indicates whether to delete the interface when the instance is
terminated.public ScheduledInstancesNetworkInterface withDeleteOnTermination(java.lang.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 java.lang.Boolean getDeleteOnTermination()
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.