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 ScheduledInstancesNetworkInterfaceclone()booleanequals(Object obj)BooleangetAssociatePublicIpAddress()Indicates whether to assign a public IP address to instances launched in a VPC.BooleangetDeleteOnTermination()Indicates whether to delete the interface when the instance is terminated.StringgetDescription()The description.IntegergetDeviceIndex()The index of the device for the network interface attachment.List<String>getGroups()The IDs of one or more security groups.StringgetNetworkInterfaceId()The ID of the network interface.StringgetPrivateIpAddress()The IP address of the network interface within the subnet.List<ScheduledInstancesPrivateIpAddressConfig>getPrivateIpAddressConfigs()The private IP addresses.IntegergetSecondaryPrivateIpAddressCount()The number of secondary private IP addresses.StringgetSubnetId()The ID of the subnet.inthashCode()BooleanisAssociatePublicIpAddress()Indicates whether to assign a public IP address to instances launched in a VPC.BooleanisDeleteOnTermination()Indicates whether to delete the interface when the instance is terminated.voidsetAssociatePublicIpAddress(Boolean associatePublicIpAddress)Indicates whether to assign a public IP address to instances launched in a VPC.voidsetDeleteOnTermination(Boolean deleteOnTermination)Indicates whether to delete the interface when the instance is terminated.voidsetDescription(String description)The description.voidsetDeviceIndex(Integer deviceIndex)The index of the device for the network interface attachment.voidsetGroups(Collection<String> groups)The IDs of one or more security groups.voidsetNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.voidsetPrivateIpAddress(String privateIpAddress)The IP address of the network interface within the subnet.voidsetPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)The private IP addresses.voidsetSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)The number of secondary private IP addresses.voidsetSubnetId(String subnetId)The ID of the subnet.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScheduledInstancesNetworkInterfacewithAssociatePublicIpAddress(Boolean associatePublicIpAddress)Indicates whether to assign a public IP address to instances launched in a VPC.ScheduledInstancesNetworkInterfacewithDeleteOnTermination(Boolean deleteOnTermination)Indicates whether to delete the interface when the instance is terminated.ScheduledInstancesNetworkInterfacewithDescription(String description)The description.ScheduledInstancesNetworkInterfacewithDeviceIndex(Integer deviceIndex)The index of the device for the network interface attachment.ScheduledInstancesNetworkInterfacewithGroups(String... groups)The IDs of one or more security groups.ScheduledInstancesNetworkInterfacewithGroups(Collection<String> groups)The IDs of one or more security groups.ScheduledInstancesNetworkInterfacewithNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.ScheduledInstancesNetworkInterfacewithPrivateIpAddress(String privateIpAddress)The IP address of the network interface within the subnet.ScheduledInstancesNetworkInterfacewithPrivateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs)The private IP addresses.ScheduledInstancesNetworkInterfacewithPrivateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs)The private IP addresses.ScheduledInstancesNetworkInterfacewithSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)The number of secondary private IP addresses.ScheduledInstancesNetworkInterfacewithSubnetId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ScheduledInstancesNetworkInterface clone()
-
-