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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportInstanceLaunchSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportInstanceLaunchSpecificationclone()booleanequals(Object obj)StringgetAdditionalInfo()Reserved.StringgetArchitecture()The architecture of the instance.List<String>getGroupIds()One or more security group IDs.List<String>getGroupNames()One or more security group names.StringgetInstanceInitiatedShutdownBehavior()Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).StringgetInstanceType()The instance type.BooleangetMonitoring()Indicates whether monitoring is enabled.PlacementgetPlacement()The placement information for the instance.StringgetPrivateIpAddress()[EC2-VPC] An available IP address from the IP address range of the subnet.StringgetSubnetId()[EC2-VPC] The ID of the subnet in which to launch the instance.UserDatagetUserData()The Base64-encoded MIME user data to be made available to the instance.inthashCode()BooleanisMonitoring()Indicates whether monitoring is enabled.voidsetAdditionalInfo(String additionalInfo)Reserved.voidsetArchitecture(ArchitectureValues architecture)The architecture of the instance.voidsetArchitecture(String architecture)The architecture of the instance.voidsetGroupIds(Collection<String> groupIds)One or more security group IDs.voidsetGroupNames(Collection<String> groupNames)One or more security group names.voidsetInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).voidsetInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).voidsetInstanceType(InstanceType instanceType)The instance type.voidsetInstanceType(String instanceType)The instance type.voidsetMonitoring(Boolean monitoring)Indicates whether monitoring is enabled.voidsetPlacement(Placement placement)The placement information for the instance.voidsetPrivateIpAddress(String privateIpAddress)[EC2-VPC] An available IP address from the IP address range of the subnet.voidsetSubnetId(String subnetId)[EC2-VPC] The ID of the subnet in which to launch the instance.voidsetUserData(UserData userData)The Base64-encoded MIME user data to be made available to the instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportInstanceLaunchSpecificationwithAdditionalInfo(String additionalInfo)Reserved.ImportInstanceLaunchSpecificationwithArchitecture(ArchitectureValues architecture)The architecture of the instance.ImportInstanceLaunchSpecificationwithArchitecture(String architecture)The architecture of the instance.ImportInstanceLaunchSpecificationwithGroupIds(String... groupIds)One or more security group IDs.ImportInstanceLaunchSpecificationwithGroupIds(Collection<String> groupIds)One or more security group IDs.ImportInstanceLaunchSpecificationwithGroupNames(String... groupNames)One or more security group names.ImportInstanceLaunchSpecificationwithGroupNames(Collection<String> groupNames)One or more security group names.ImportInstanceLaunchSpecificationwithInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).ImportInstanceLaunchSpecificationwithInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).ImportInstanceLaunchSpecificationwithInstanceType(InstanceType instanceType)The instance type.ImportInstanceLaunchSpecificationwithInstanceType(String instanceType)The instance type.ImportInstanceLaunchSpecificationwithMonitoring(Boolean monitoring)Indicates whether monitoring is enabled.ImportInstanceLaunchSpecificationwithPlacement(Placement placement)The placement information for the instance.ImportInstanceLaunchSpecificationwithPrivateIpAddress(String privateIpAddress)[EC2-VPC] An available IP address from the IP address range of the subnet.ImportInstanceLaunchSpecificationwithSubnetId(String subnetId)[EC2-VPC] The ID of the subnet in which to launch the instance.ImportInstanceLaunchSpecificationwithUserData(UserData userData)The Base64-encoded MIME user data to be made available to the instance.
-
-
-
Method Detail
-
setArchitecture
public void setArchitecture(String architecture)
The architecture of the instance.
- Parameters:
architecture- The architecture of the instance.- See Also:
ArchitectureValues
-
getArchitecture
public String getArchitecture()
The architecture of the instance.
- Returns:
- The architecture of the instance.
- See Also:
ArchitectureValues
-
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:
ArchitectureValues
-
setArchitecture
public void setArchitecture(ArchitectureValues architecture)
The architecture of the instance.
- Parameters:
architecture- The architecture of the instance.- See Also:
ArchitectureValues
-
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:
ArchitectureValues
-
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)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
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)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
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:
InstanceType
-
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:
InstanceType
-
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:
InstanceType
-
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:
InstanceType
-
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:
InstanceType
-
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:
ShutdownBehavior
-
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:
ShutdownBehavior
-
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:
ShutdownBehavior
-
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:
ShutdownBehavior
-
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:
ShutdownBehavior
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportInstanceLaunchSpecification clone()
-
-