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:
  • Constructor Details

    • ScheduledInstancesNetworkInterface

      public ScheduledInstancesNetworkInterface()
  • Method Details

    • 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) or withPrivateIpAddressConfigs(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 is true.
    • 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 is true.
      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) or withGroups(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

      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object