Class ScheduledInstancesNetworkInterface
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstancesNetworkInterface
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScheduledInstancesNetworkInterface extends Object implements Serializable, Cloneable
Describes a network interface for a Scheduled Instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstancesNetworkInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... groups)
The IDs of one or more security groups.ScheduledInstancesNetworkInterface
withGroups(Collection<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(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)
The private IP addresses.ScheduledInstancesNetworkInterface
withPrivateIpAddressConfigs(Collection<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.
-
-
-
Method Detail
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public ScheduledInstancesNetworkInterface withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceIndex
public void setDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device for the network interface attachment.
-
getDeviceIndex
public Integer getDeviceIndex()
The index of the device for the network interface attachment.
- Returns:
- The index of the device for the network interface attachment.
-
withDeviceIndex
public ScheduledInstancesNetworkInterface withDeviceIndex(Integer deviceIndex)
The index of the device for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubnetId
public void setSubnetId(String subnetId)
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.
-
getSubnetId
public String getSubnetId()
The ID of the subnet.
- Returns:
- The ID of the subnet.
-
withSubnetId
public ScheduledInstancesNetworkInterface withSubnetId(String subnetId)
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description.
- Parameters:
description
- The description.
-
getDescription
public String getDescription()
The description.
- Returns:
- The description.
-
withDescription
public ScheduledInstancesNetworkInterface withDescription(String description)
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
public void setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
- Parameters:
privateIpAddress
- The IP address of the network interface within the subnet.
-
getPrivateIpAddress
public String getPrivateIpAddress()
The IP address of the network interface within the subnet.
- Returns:
- The IP address of the network interface within the subnet.
-
withPrivateIpAddress
public ScheduledInstancesNetworkInterface withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
- Parameters:
privateIpAddress
- The IP address of the network interface within the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPrivateIpAddressConfigs
public List<ScheduledInstancesPrivateIpAddressConfig> getPrivateIpAddressConfigs()
The private IP addresses.
- Returns:
- The private IP addresses.
-
setPrivateIpAddressConfigs
public void setPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
- Parameters:
privateIpAddressConfigs
- The private IP addresses.
-
withPrivateIpAddressConfigs
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)
orwithPrivateIpAddressConfigs(java.util.Collection)
if you want to override the existing values.- Parameters:
privateIpAddressConfigs
- The private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPrivateIpAddressConfigs
public ScheduledInstancesNetworkInterface withPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)
The private IP addresses.
- Parameters:
privateIpAddressConfigs
- The private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecondaryPrivateIpAddressCount
public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.
-
getSecondaryPrivateIpAddressCount
public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
- Returns:
- The number of secondary private IP addresses.
-
withSecondaryPrivateIpAddressCount
public ScheduledInstancesNetworkInterface withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssociatePublicIpAddress
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
.- Parameters:
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 istrue
.
-
getAssociatePublicIpAddress
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
.- Returns:
- 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
.
-
withAssociatePublicIpAddress
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
.- Parameters:
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 istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAssociatePublicIpAddress
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
.- Returns:
- 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
.
-
getGroups
public List<String> getGroups()
The IDs of one or more security groups.
- Returns:
- The IDs of one or more security groups.
-
setGroups
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.
-
withGroups
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)
orwithGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
public ScheduledInstancesNetworkInterface withGroups(Collection<String> groups)
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeleteOnTermination
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether to delete the interface when the instance is terminated.
-
getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
- Returns:
- Indicates whether to delete the interface when the instance is terminated.
-
withDeleteOnTermination
public ScheduledInstancesNetworkInterface withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether to delete the interface when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether to delete the interface when the instance is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeleteOnTermination
public Boolean isDeleteOnTermination()
Indicates whether to delete the interface when the instance is terminated.
- Returns:
- Indicates whether to delete the interface when the instance is terminated.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstancesNetworkInterface clone()
-
-