public class ImportInstanceLaunchSpecification
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ImportInstanceLaunchSpecification() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo() |
java.lang.String |
getArchitecture()
The architecture of the instance.
|
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() |
Placement |
getPlacement() |
java.lang.String |
getPrivateIpAddress()
[EC2-VPC] Optionally, you can use this parameter to assign the
instance a specific available IP address from the IP address range of
the subnet.
|
java.lang.String |
getSubnetId()
[EC2-VPC] The ID of the subnet to launch the instance into.
|
java.lang.String |
getUserData()
User data to be made available to the instance.
|
int |
hashCode() |
java.lang.Boolean |
isMonitoring() |
void |
setAdditionalInfo(java.lang.String additionalInfo) |
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the instance.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the instance.
|
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) |
void |
setPlacement(Placement placement) |
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] Optionally, you can use this parameter to assign the
instance a specific available IP address from the IP address range of
the subnet.
|
void |
setSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.
|
void |
setUserData(java.lang.String userData)
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)
Returns a reference to this object so that method calls can be chained together.
|
ImportInstanceLaunchSpecification |
withArchitecture(ArchitectureValues architecture)
The architecture of the instance.
|
ImportInstanceLaunchSpecification |
withArchitecture(java.lang.String architecture)
The architecture of the instance.
|
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)
Returns a reference to this object so that method calls can be chained together.
|
ImportInstanceLaunchSpecification |
withPlacement(Placement placement)
Returns a reference to this object so that method calls can be chained together.
|
ImportInstanceLaunchSpecification |
withPrivateIpAddress(java.lang.String privateIpAddress)
[EC2-VPC] Optionally, you can use this parameter to assign the
instance a specific available IP address from the IP address range of
the subnet.
|
ImportInstanceLaunchSpecification |
withSubnetId(java.lang.String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.
|
ImportInstanceLaunchSpecification |
withUserData(java.lang.String userData)
User data to be made available to the instance.
|
public java.lang.String getArchitecture()
Constraints:
Allowed Values: i386, x86_64
ArchitectureValuespublic void setArchitecture(java.lang.String architecture)
Constraints:
Allowed Values: i386, x86_64
architecture - The architecture of the instance.ArchitectureValuespublic ImportInstanceLaunchSpecification withArchitecture(java.lang.String architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: i386, x86_64
architecture - The architecture of the instance.ArchitectureValuespublic void setArchitecture(ArchitectureValues architecture)
Constraints:
Allowed Values: i386, x86_64
architecture - The architecture of the instance.ArchitectureValuespublic ImportInstanceLaunchSpecification withArchitecture(ArchitectureValues architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: i386, x86_64
architecture - The architecture of the instance.ArchitectureValuespublic java.util.List<java.lang.String> getGroupNames()
public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
groupNames - One or more security group names.public ImportInstanceLaunchSpecification withGroupNames(java.lang.String... groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames - One or more security group names.public ImportInstanceLaunchSpecification withGroupNames(java.util.Collection<java.lang.String> groupNames)
Returns a reference to this object so that method calls can be chained together.
groupNames - One or more security group names.public java.lang.String getAdditionalInfo()
public void setAdditionalInfo(java.lang.String additionalInfo)
additionalInfo - public ImportInstanceLaunchSpecification withAdditionalInfo(java.lang.String additionalInfo)
Returns a reference to this object so that method calls can be chained together.
additionalInfo - public java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData - User data to be made available to the instance.public ImportInstanceLaunchSpecification withUserData(java.lang.String userData)
Returns a reference to this object so that method calls can be chained together.
userData - User data to be made available to the instance.public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
InstanceTypepublic void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType - The instance type. For more information, see Instance
Types in the Amazon Elastic Compute Cloud User Guide.InstanceTypepublic ImportInstanceLaunchSpecification withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType - The instance type. For more information, see Instance
Types in the Amazon Elastic Compute Cloud User Guide.InstanceTypepublic void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType - The instance type. For more information, see Instance
Types in the Amazon Elastic Compute Cloud User Guide.InstanceTypepublic ImportInstanceLaunchSpecification withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType - The instance type. For more information, see Instance
Types in the Amazon Elastic Compute Cloud User Guide.InstanceTypepublic Placement getPlacement()
public void setPlacement(Placement placement)
placement - public ImportInstanceLaunchSpecification withPlacement(Placement placement)
Returns a reference to this object so that method calls can be chained together.
placement - public java.lang.Boolean isMonitoring()
public void setMonitoring(java.lang.Boolean monitoring)
monitoring - public ImportInstanceLaunchSpecification withMonitoring(java.lang.Boolean monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring - public java.lang.Boolean getMonitoring()
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId - [EC2-VPC] The ID of the subnet to launch the instance into.public ImportInstanceLaunchSpecification withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId - [EC2-VPC] The ID of the subnet to launch the instance into.public java.lang.String getInstanceInitiatedShutdownBehavior()
Constraints:
Allowed Values: stop, terminate
ShutdownBehaviorpublic void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Constraints:
Allowed Values: stop, terminate
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).ShutdownBehaviorpublic ImportInstanceLaunchSpecification withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: stop, terminate
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).ShutdownBehaviorpublic void setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Constraints:
Allowed Values: stop, terminate
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).ShutdownBehaviorpublic ImportInstanceLaunchSpecification withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: stop, terminate
instanceInitiatedShutdownBehavior - Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).ShutdownBehaviorpublic java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress - [EC2-VPC] Optionally, you can use this parameter to assign the
instance a specific available IP address from the IP address range of
the subnet.public ImportInstanceLaunchSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress - [EC2-VPC] Optionally, you can use this parameter to assign the
instance a specific available IP address from the IP address range of
the subnet.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object