Class ImportInstanceLaunchSpecification
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the launch specification for VM import.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Reserved.The architecture of the instance.One or more security group IDs.One or more security group names.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).The instance type.Indicates whether monitoring is enabled.The placement information for the instance.[EC2-VPC] An available IP address from the IP address range of the subnet.[EC2-VPC] The ID of the subnet in which to launch the instance.The Base64-encoded MIME user data to be made available to the instance.int
hashCode()
Indicates whether monitoring is enabled.void
setAdditionalInfo
(String additionalInfo) Reserved.void
setArchitecture
(ArchitectureValues architecture) The architecture of the instance.void
setArchitecture
(String architecture) The architecture of the instance.void
setGroupIds
(Collection<String> groupIds) One or more security group IDs.void
setGroupNames
(Collection<String> groupNames) One or more security group names.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).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).void
setInstanceType
(InstanceType instanceType) The instance type.void
setInstanceType
(String instanceType) The instance type.void
setMonitoring
(Boolean monitoring) Indicates whether monitoring is enabled.void
setPlacement
(Placement placement) The placement information for the instance.void
setPrivateIpAddress
(String privateIpAddress) [EC2-VPC] An available IP address from the IP address range of the subnet.void
setSubnetId
(String subnetId) [EC2-VPC] The ID of the subnet in which to launch the instance.void
setUserData
(UserData userData) The Base64-encoded MIME user data to be made available to the instance.toString()
Returns a string representation of this object; useful for testing and debugging.withAdditionalInfo
(String additionalInfo) Reserved.withArchitecture
(ArchitectureValues architecture) The architecture of the instance.withArchitecture
(String architecture) The architecture of the instance.withGroupIds
(String... groupIds) One or more security group IDs.withGroupIds
(Collection<String> groupIds) One or more security group IDs.withGroupNames
(String... groupNames) One or more security group names.withGroupNames
(Collection<String> groupNames) One or more security group names.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).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).withInstanceType
(InstanceType instanceType) The instance type.withInstanceType
(String instanceType) The instance type.withMonitoring
(Boolean monitoring) Indicates whether monitoring is enabled.withPlacement
(Placement placement) The placement information for the instance.withPrivateIpAddress
(String privateIpAddress) [EC2-VPC] An available IP address from the IP address range of the subnet.withSubnetId
(String subnetId) [EC2-VPC] The ID of the subnet in which to launch the instance.withUserData
(UserData userData) The Base64-encoded MIME user data to be made available to the instance.
-
Constructor Details
-
ImportInstanceLaunchSpecification
public ImportInstanceLaunchSpecification()
-
-
Method Details
-
setArchitecture
The architecture of the instance.
- Parameters:
architecture
- The architecture of the instance.- See Also:
-
getArchitecture
The architecture of the instance.
- Returns:
- The architecture of the instance.
- See Also:
-
withArchitecture
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
The architecture of the instance.
- Parameters:
architecture
- The architecture of the instance.- See Also:
-
withArchitecture
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
One or more security group names.
- Returns:
- One or more security group names.
-
setGroupNames
One or more security group names.
- Parameters:
groupNames
- One or more security group names.
-
withGroupNames
One or more security group names.
NOTE: This method appends the values to the existing list (if any). Use
setGroupNames(java.util.Collection)
orwithGroupNames(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
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
One or more security group IDs.
- Returns:
- One or more security group IDs.
-
setGroupIds
One or more security group IDs.
- Parameters:
groupIds
- One or more security group IDs.
-
withGroupIds
One or more security group IDs.
NOTE: This method appends the values to the existing list (if any). Use
setGroupIds(java.util.Collection)
orwithGroupIds(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
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
Reserved.
- Parameters:
additionalInfo
- Reserved.
-
getAdditionalInfo
Reserved.
- Returns:
- Reserved.
-
withAdditionalInfo
Reserved.
- Parameters:
additionalInfo
- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserData
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
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
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
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
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
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
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
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
The placement information for the instance.
- Parameters:
placement
- The placement information for the instance.
-
getPlacement
The placement information for the instance.
- Returns:
- The placement information for the instance.
-
withPlacement
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
Indicates whether monitoring is enabled.
- Parameters:
monitoring
- Indicates whether monitoring is enabled.
-
getMonitoring
Indicates whether monitoring is enabled.
- Returns:
- Indicates whether monitoring is enabled.
-
withMonitoring
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
Indicates whether monitoring is enabled.
- Returns:
- Indicates whether monitoring is enabled.
-
setSubnetId
[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
[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
[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
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
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
[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
[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
[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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-