Class ImportInstanceLaunchSpecification

java.lang.Object
com.amazonaws.services.ec2.model.ImportInstanceLaunchSpecification
All Implemented Interfaces:
Serializable, Cloneable

public class ImportInstanceLaunchSpecification extends Object implements Serializable, Cloneable

Describes the launch specification for VM import.

See Also:
  • Constructor Details

    • ImportInstanceLaunchSpecification

      public ImportInstanceLaunchSpecification()
  • Method Details

    • setArchitecture

      public void setArchitecture(String architecture)

      The architecture of the instance.

      Parameters:
      architecture - The architecture of the instance.
      See Also:
    • getArchitecture

      public String getArchitecture()

      The architecture of the instance.

      Returns:
      The architecture of the instance.
      See Also:
    • withArchitecture

      public ImportInstanceLaunchSpecification withArchitecture(String architecture)

      The architecture of the instance.

      Parameters:
      architecture - The architecture of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setArchitecture

      public void setArchitecture(ArchitectureValues architecture)

      The architecture of the instance.

      Parameters:
      architecture - The architecture of the instance.
      See Also:
    • withArchitecture

      public ImportInstanceLaunchSpecification withArchitecture(ArchitectureValues architecture)

      The architecture of the instance.

      Parameters:
      architecture - The architecture of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getGroupNames

      public List<String> getGroupNames()

      One or more security group names.

      Returns:
      One or more security group names.
    • setGroupNames

      public void setGroupNames(Collection<String> groupNames)

      One or more security group names.

      Parameters:
      groupNames - One or more security group names.
    • withGroupNames

      public ImportInstanceLaunchSpecification withGroupNames(String... groupNames)

      One or more security group names.

      NOTE: This method appends the values to the existing list (if any). Use setGroupNames(java.util.Collection) or withGroupNames(java.util.Collection) if you want to override the existing values.

      Parameters:
      groupNames - One or more security group names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withGroupNames

      public ImportInstanceLaunchSpecification withGroupNames(Collection<String> groupNames)

      One or more security group names.

      Parameters:
      groupNames - One or more security group names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getGroupIds

      public List<String> getGroupIds()

      One or more security group IDs.

      Returns:
      One or more security group IDs.
    • setGroupIds

      public void setGroupIds(Collection<String> groupIds)

      One or more security group IDs.

      Parameters:
      groupIds - One or more security group IDs.
    • withGroupIds

      public ImportInstanceLaunchSpecification withGroupIds(String... groupIds)

      One or more security group IDs.

      NOTE: This method appends the values to the existing list (if any). Use setGroupIds(java.util.Collection) or withGroupIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      groupIds - One or more security group IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withGroupIds

      public ImportInstanceLaunchSpecification withGroupIds(Collection<String> groupIds)

      One or more security group IDs.

      Parameters:
      groupIds - One or more security group IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAdditionalInfo

      public void setAdditionalInfo(String additionalInfo)

      Reserved.

      Parameters:
      additionalInfo - Reserved.
    • getAdditionalInfo

      public String getAdditionalInfo()

      Reserved.

      Returns:
      Reserved.
    • withAdditionalInfo

      public ImportInstanceLaunchSpecification withAdditionalInfo(String additionalInfo)

      Reserved.

      Parameters:
      additionalInfo - Reserved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUserData

      public void setUserData(UserData userData)

      The Base64-encoded MIME user data to be made available to the instance.

      Parameters:
      userData - The Base64-encoded MIME user data to be made available to the instance.
    • getUserData

      public UserData getUserData()

      The Base64-encoded MIME user data to be made available to the instance.

      Returns:
      The Base64-encoded MIME user data to be made available to the instance.
    • withUserData

      public ImportInstanceLaunchSpecification withUserData(UserData userData)

      The Base64-encoded MIME user data to be made available to the instance.

      Parameters:
      userData - The Base64-encoded MIME user data to be made available to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceType

      public void setInstanceType(String instanceType)

      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      instanceType - The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
      See Also:
    • getInstanceType

      public String getInstanceType()

      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

      Returns:
      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
      See Also:
    • withInstanceType

      public ImportInstanceLaunchSpecification withInstanceType(String instanceType)

      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      instanceType - The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceType

      public void setInstanceType(InstanceType instanceType)

      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      instanceType - The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
      See Also:
    • withInstanceType

      public ImportInstanceLaunchSpecification withInstanceType(InstanceType instanceType)

      The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      instanceType - The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setPlacement

      public void setPlacement(Placement placement)

      The placement information for the instance.

      Parameters:
      placement - The placement information for the instance.
    • getPlacement

      public Placement getPlacement()

      The placement information for the instance.

      Returns:
      The placement information for the instance.
    • withPlacement

      public ImportInstanceLaunchSpecification withPlacement(Placement placement)

      The placement information for the instance.

      Parameters:
      placement - The placement information for the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMonitoring

      public void setMonitoring(Boolean monitoring)

      Indicates whether monitoring is enabled.

      Parameters:
      monitoring - Indicates whether monitoring is enabled.
    • getMonitoring

      public Boolean getMonitoring()

      Indicates whether monitoring is enabled.

      Returns:
      Indicates whether monitoring is enabled.
    • withMonitoring

      public ImportInstanceLaunchSpecification withMonitoring(Boolean monitoring)

      Indicates whether monitoring is enabled.

      Parameters:
      monitoring - Indicates whether monitoring is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isMonitoring

      public Boolean isMonitoring()

      Indicates whether monitoring is enabled.

      Returns:
      Indicates whether monitoring is enabled.
    • setSubnetId

      public void setSubnetId(String subnetId)

      [EC2-VPC] The ID of the subnet in which to launch the instance.

      Parameters:
      subnetId - [EC2-VPC] The ID of the subnet in which to launch the instance.
    • getSubnetId

      public String getSubnetId()

      [EC2-VPC] The ID of the subnet in which to launch the instance.

      Returns:
      [EC2-VPC] The ID of the subnet in which to launch the instance.
    • withSubnetId

      public ImportInstanceLaunchSpecification withSubnetId(String subnetId)

      [EC2-VPC] The ID of the subnet in which to launch the instance.

      Parameters:
      subnetId - [EC2-VPC] The ID of the subnet in which to launch the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceInitiatedShutdownBehavior

      public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)

      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

      Parameters:
      instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
      See Also:
    • getInstanceInitiatedShutdownBehavior

      public String getInstanceInitiatedShutdownBehavior()

      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

      Returns:
      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
      See Also:
    • withInstanceInitiatedShutdownBehavior

      public ImportInstanceLaunchSpecification withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)

      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

      Parameters:
      instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceInitiatedShutdownBehavior

      public void setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)

      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

      Parameters:
      instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
      See Also:
    • withInstanceInitiatedShutdownBehavior

      public ImportInstanceLaunchSpecification withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)

      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

      Parameters:
      instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setPrivateIpAddress

      public void setPrivateIpAddress(String privateIpAddress)

      [EC2-VPC] An available IP address from the IP address range of the subnet.

      Parameters:
      privateIpAddress - [EC2-VPC] An available IP address from the IP address range of the subnet.
    • getPrivateIpAddress

      public String getPrivateIpAddress()

      [EC2-VPC] An available IP address from the IP address range of the subnet.

      Returns:
      [EC2-VPC] An available IP address from the IP address range of the subnet.
    • withPrivateIpAddress

      public ImportInstanceLaunchSpecification withPrivateIpAddress(String privateIpAddress)

      [EC2-VPC] An available IP address from the IP address range of the subnet.

      Parameters:
      privateIpAddress - [EC2-VPC] An available IP address from the IP address range of the subnet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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