Class ScheduledInstancesNetworkInterface
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a network interface for a Scheduled Instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Indicates whether to assign a public IP address to instances launched in a VPC.Indicates whether to delete the interface when the instance is terminated.The description.The index of the device for the network interface attachment.The IDs of one or more security groups.The ID of the network interface.The IP address of the network interface within the subnet.The private IP addresses.The number of secondary private IP addresses.The ID of the subnet.int
hashCode()
Indicates whether to assign a public IP address to instances launched in a VPC.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAssociatePublicIpAddress
(Boolean associatePublicIpAddress) Indicates whether to assign a public IP address to instances launched in a VPC.withDeleteOnTermination
(Boolean deleteOnTermination) Indicates whether to delete the interface when the instance is terminated.withDescription
(String description) The description.withDeviceIndex
(Integer deviceIndex) The index of the device for the network interface attachment.withGroups
(String... groups) The IDs of one or more security groups.withGroups
(Collection<String> groups) The IDs of one or more security groups.withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withPrivateIpAddress
(String privateIpAddress) The IP address of the network interface within the subnet.withPrivateIpAddressConfigs
(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs) The private IP addresses.withPrivateIpAddressConfigs
(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs) The private IP addresses.withSecondaryPrivateIpAddressCount
(Integer secondaryPrivateIpAddressCount) The number of secondary private IP addresses.withSubnetId
(String subnetId) The ID of the subnet.
-
Constructor Details
-
ScheduledInstancesNetworkInterface
public ScheduledInstancesNetworkInterface()
-
-
Method Details
-
setNetworkInterfaceId
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
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
The index of the device for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device for the network interface attachment.
-
getDeviceIndex
The index of the device for the network interface attachment.
- Returns:
- The index of the device for the network interface attachment.
-
withDeviceIndex
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
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.
-
getSubnetId
The ID of the subnet.
- Returns:
- The ID of the subnet.
-
withSubnetId
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
The description.
- Parameters:
description
- The description.
-
getDescription
The description.
- Returns:
- The description.
-
withDescription
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
The IP address of the network interface within the subnet.
- Parameters:
privateIpAddress
- The IP address of the network interface within the subnet.
-
getPrivateIpAddress
The IP address of the network interface within the subnet.
- Returns:
- The IP address of the network interface within the subnet.
-
withPrivateIpAddress
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
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
The number of secondary private IP addresses.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.
-
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
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
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
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
The IDs of one or more security groups.
- Returns:
- The IDs of one or more security groups.
-
setGroups
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.
-
withGroups
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
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
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
Indicates whether to delete the interface when the instance is terminated.
- Returns:
- Indicates whether to delete the interface when the instance is terminated.
-
withDeleteOnTermination
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
Indicates whether to delete the interface when the instance is terminated.
- Returns:
- Indicates whether to delete the interface when the instance is terminated.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-