public class ImportInstanceLaunchSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the launch specification for VM import.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
additionalInfo
Reserved.
|
private java.lang.String |
architecture
The architecture of the instance.
|
private SdkInternalList<java.lang.String> |
groupIds
One or more security group IDs.
|
private SdkInternalList<java.lang.String> |
groupNames
One or more security group names.
|
private java.lang.String |
instanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for system
shutdown).
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.Boolean |
monitoring
Indicates whether monitoring is enabled.
|
private Placement |
placement
The placement information for the instance.
|
private java.lang.String |
privateIpAddress
[EC2-VPC] An available IP address from the IP address range of the
subnet.
|
private java.lang.String |
subnetId
[EC2-VPC] The ID of the subnet in which to launch the instance.
|
private UserData |
userData
The Base64-encoded MIME user data to be made available to the instance.
|
Constructor and Description |
---|
ImportInstanceLaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
ImportInstanceLaunchSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo()
Reserved.
|
java.lang.String |
getArchitecture()
The architecture of the instance.
|
java.util.List<java.lang.String> |
getGroupIds()
One or more security group IDs.
|
java.util.List<java.lang.String> |
getGroupNames()
One or more security group names.
|
java.lang.String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for system
shutdown).
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.Boolean |
getMonitoring()
Indicates whether monitoring is enabled.
|
Placement |
getPlacement()
The placement information for the instance.
|
java.lang.String |
getPrivateIpAddress()
[EC2-VPC] An available IP address from the IP address range of the
subnet.
|
java.lang.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() |
java.lang.Boolean |
isMonitoring()
Indicates whether monitoring is enabled.
|
void |
setAdditionalInfo(java.lang.String additionalInfo)
Reserved.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the instance.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the instance.
|
void |
setGroupIds(java.util.Collection<java.lang.String> groupIds)
One or more security group IDs.
|
void |
setGroupNames(java.util.Collection<java.lang.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(java.lang.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(java.lang.String instanceType)
The instance type.
|
void |
setMonitoring(java.lang.Boolean monitoring)
Indicates whether monitoring is enabled.
|
void |
setPlacement(Placement placement)
The placement information for the instance.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the
subnet.
|
void |
setSubnetId(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportInstanceLaunchSpecification |
withAdditionalInfo(java.lang.String additionalInfo)
Reserved.
|
ImportInstanceLaunchSpecification |
withArchitecture(ArchitectureValues architecture)
The architecture of the instance.
|
ImportInstanceLaunchSpecification |
withArchitecture(java.lang.String architecture)
The architecture of the instance.
|
ImportInstanceLaunchSpecification |
withGroupIds(java.util.Collection<java.lang.String> groupIds)
One or more security group IDs.
|
ImportInstanceLaunchSpecification |
withGroupIds(java.lang.String... groupIds)
One or more security group IDs.
|
ImportInstanceLaunchSpecification |
withGroupNames(java.util.Collection<java.lang.String> groupNames)
One or more security group names.
|
ImportInstanceLaunchSpecification |
withGroupNames(java.lang.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(java.lang.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(java.lang.String instanceType)
The instance type.
|
ImportInstanceLaunchSpecification |
withMonitoring(java.lang.Boolean monitoring)
Indicates whether monitoring is enabled.
|
ImportInstanceLaunchSpecification |
withPlacement(Placement placement)
The placement information for the instance.
|
ImportInstanceLaunchSpecification |
withPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the
subnet.
|
ImportInstanceLaunchSpecification |
withSubnetId(java.lang.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.
|
private java.lang.String architecture
The architecture of the instance.
private SdkInternalList<java.lang.String> groupNames
One or more security group names.
private SdkInternalList<java.lang.String> groupIds
One or more security group IDs.
private java.lang.String additionalInfo
Reserved.
private UserData userData
The Base64-encoded MIME user data to be made available to the instance.
private java.lang.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.
private Placement placement
The placement information for the instance.
private java.lang.Boolean monitoring
Indicates whether monitoring is enabled.
private java.lang.String subnetId
[EC2-VPC] The ID of the subnet in which to launch the instance.
private java.lang.String instanceInitiatedShutdownBehavior
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
private java.lang.String privateIpAddress
[EC2-VPC] An available IP address from the IP address range of the subnet.
public void setArchitecture(java.lang.String architecture)
The architecture of the instance.
architecture
- The architecture of the instance.ArchitectureValues
public java.lang.String getArchitecture()
The architecture of the instance.
ArchitectureValues
public ImportInstanceLaunchSpecification withArchitecture(java.lang.String architecture)
The architecture of the instance.
architecture
- The architecture of the instance.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the instance.
architecture
- The architecture of the instance.ArchitectureValues
public ImportInstanceLaunchSpecification withArchitecture(ArchitectureValues architecture)
The architecture of the instance.
architecture
- The architecture of the instance.ArchitectureValues
public java.util.List<java.lang.String> getGroupNames()
One or more security group names.
public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
One or more security group names.
groupNames
- One or more security group names.public ImportInstanceLaunchSpecification withGroupNames(java.lang.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.
groupNames
- One or more security group names.public ImportInstanceLaunchSpecification withGroupNames(java.util.Collection<java.lang.String> groupNames)
One or more security group names.
groupNames
- One or more security group names.public java.util.List<java.lang.String> getGroupIds()
One or more security group IDs.
public void setGroupIds(java.util.Collection<java.lang.String> groupIds)
One or more security group IDs.
groupIds
- One or more security group IDs.public ImportInstanceLaunchSpecification withGroupIds(java.lang.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.
groupIds
- One or more security group IDs.public ImportInstanceLaunchSpecification withGroupIds(java.util.Collection<java.lang.String> groupIds)
One or more security group IDs.
groupIds
- One or more security group IDs.public void setAdditionalInfo(java.lang.String additionalInfo)
Reserved.
additionalInfo
- Reserved.public java.lang.String getAdditionalInfo()
Reserved.
public ImportInstanceLaunchSpecification withAdditionalInfo(java.lang.String additionalInfo)
Reserved.
additionalInfo
- Reserved.public void setUserData(UserData userData)
The Base64-encoded MIME user data to be made available to the instance.
userData
- The Base64-encoded MIME user data to be made available to the
instance.public UserData getUserData()
The Base64-encoded MIME user data to be made available to the instance.
public ImportInstanceLaunchSpecification withUserData(UserData userData)
The Base64-encoded MIME user data to be made available to the instance.
userData
- The Base64-encoded MIME user data to be made available to the
instance.public void setInstanceType(java.lang.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.
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.InstanceType
public java.lang.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.
InstanceType
public ImportInstanceLaunchSpecification withInstanceType(java.lang.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.
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.InstanceType
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.
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.InstanceType
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.
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.InstanceType
public void setPlacement(Placement placement)
The placement information for the instance.
placement
- The placement information for the instance.public Placement getPlacement()
The placement information for the instance.
public ImportInstanceLaunchSpecification withPlacement(Placement placement)
The placement information for the instance.
placement
- The placement information for the instance.public void setMonitoring(java.lang.Boolean monitoring)
Indicates whether monitoring is enabled.
monitoring
- Indicates whether monitoring is enabled.public java.lang.Boolean getMonitoring()
Indicates whether monitoring is enabled.
public ImportInstanceLaunchSpecification withMonitoring(java.lang.Boolean monitoring)
Indicates whether monitoring is enabled.
monitoring
- Indicates whether monitoring is enabled.public java.lang.Boolean isMonitoring()
Indicates whether monitoring is enabled.
public void setSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which to launch the instance.
subnetId
- [EC2-VPC] The ID of the subnet in which to launch the instance.public java.lang.String getSubnetId()
[EC2-VPC] The ID of the subnet in which to launch the instance.
public ImportInstanceLaunchSpecification withSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet in which to launch the instance.
subnetId
- [EC2-VPC] The ID of the subnet in which to launch the instance.public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you
initiate shutdown from the instance (using the operating system
command for system shutdown).ShutdownBehavior
public java.lang.String getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
ShutdownBehavior
public ImportInstanceLaunchSpecification withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you
initiate shutdown from the instance (using the operating system
command for system shutdown).ShutdownBehavior
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).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you
initiate shutdown from the instance (using the operating system
command for system shutdown).ShutdownBehavior
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).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you
initiate shutdown from the instance (using the operating system
command for system shutdown).ShutdownBehavior
public void setPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the subnet.
privateIpAddress
- [EC2-VPC] An available IP address from the IP address range of the
subnet.public java.lang.String getPrivateIpAddress()
[EC2-VPC] An available IP address from the IP address range of the subnet.
public ImportInstanceLaunchSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] An available IP address from the IP address range of the subnet.
privateIpAddress
- [EC2-VPC] An available IP address from the IP address range of the
subnet.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImportInstanceLaunchSpecification clone()
clone
in class java.lang.Object