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 ImportInstanceLaunchSpecification
clone()
boolean
equals(Object obj)
String
getAdditionalInfo()
Reserved.String
getArchitecture()
The architecture of the instance.List<String>
getGroupIds()
One or more security group IDs.List<String>
getGroupNames()
One or more security group names.String
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).String
getInstanceType()
The instance type.Boolean
getMonitoring()
Indicates whether monitoring is enabled.Placement
getPlacement()
The placement information for the instance.String
getPrivateIpAddress()
[EC2-VPC] An available IP address from the IP address range of the subnet.String
getSubnetId()
[EC2-VPC] The ID of the subnet in which to launch the instance.UserData
getUserData()
The Base64-encoded MIME user data to be made available to the instance.int
hashCode()
Boolean
isMonitoring()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ImportInstanceLaunchSpecification
withAdditionalInfo(String additionalInfo)
Reserved.ImportInstanceLaunchSpecification
withArchitecture(ArchitectureValues architecture)
The architecture of the instance.ImportInstanceLaunchSpecification
withArchitecture(String architecture)
The architecture of the instance.ImportInstanceLaunchSpecification
withGroupIds(String... groupIds)
One or more security group IDs.ImportInstanceLaunchSpecification
withGroupIds(Collection<String> groupIds)
One or more security group IDs.ImportInstanceLaunchSpecification
withGroupNames(String... groupNames)
One or more security group names.ImportInstanceLaunchSpecification
withGroupNames(Collection<String> groupNames)
One or more security group names.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).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).ImportInstanceLaunchSpecification
withInstanceType(InstanceType instanceType)
The instance type.ImportInstanceLaunchSpecification
withInstanceType(String instanceType)
The instance type.ImportInstanceLaunchSpecification
withMonitoring(Boolean monitoring)
Indicates whether monitoring is enabled.ImportInstanceLaunchSpecification
withPlacement(Placement placement)
The placement information for the instance.ImportInstanceLaunchSpecification
withPrivateIpAddress(String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the subnet.ImportInstanceLaunchSpecification
withSubnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which to launch the instance.ImportInstanceLaunchSpecification
withUserData(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportInstanceLaunchSpecification clone()
-
-