|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.LaunchSpecification
public class LaunchSpecification
The LaunchSpecificationType data type.
Constructor Summary | |
---|---|
LaunchSpecification()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAddressingType()
Deprecated. |
List<GroupIdentifier> |
getAllSecurityGroups()
Returns the value of the AllSecurityGroups property for this object. |
List<BlockDeviceMapping> |
getBlockDeviceMappings()
Specifies how block devices are exposed to the instance. |
Boolean |
getEbsOptimized()
Returns the value of the EbsOptimized property for this object. |
IamInstanceProfileSpecification |
getIamInstanceProfile()
Returns the value of the IamInstanceProfile property for this object. |
String |
getImageId()
The AMI ID. |
String |
getInstanceType()
Specifies the instance type. |
String |
getKernelId()
Specifies the ID of the kernel to select. |
String |
getKeyName()
The name of the key pair. |
Boolean |
getMonitoringEnabled()
Enables monitoring for the instance. |
List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
Returns the value of the NetworkInterfaces property for this object. |
SpotPlacement |
getPlacement()
Defines a placement item. |
String |
getRamdiskId()
Specifies the ID of the RAM disk to select. |
List<String> |
getSecurityGroups()
Returns the value of the SecurityGroups property for this object. |
String |
getSubnetId()
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
String |
getUserData()
Optional data, specific to a user's application, to provide in the launch request. |
int |
hashCode()
|
Boolean |
isEbsOptimized()
Returns the value of the EbsOptimized property for this object. |
Boolean |
isMonitoringEnabled()
Enables monitoring for the instance. |
void |
setAddressingType(String addressingType)
Deprecated. |
void |
setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object. |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
void |
setEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object. |
void |
setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object. |
void |
setImageId(String imageId)
The AMI ID. |
void |
setInstanceType(InstanceType instanceType)
Specifies the instance type. |
void |
setInstanceType(String instanceType)
Specifies the instance type. |
void |
setKernelId(String kernelId)
Specifies the ID of the kernel to select. |
void |
setKeyName(String keyName)
The name of the key pair. |
void |
setMonitoringEnabled(Boolean monitoringEnabled)
Enables monitoring for the instance. |
void |
setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object. |
void |
setPlacement(SpotPlacement placement)
Defines a placement item. |
void |
setRamdiskId(String ramdiskId)
Specifies the ID of the RAM disk to select. |
void |
setSecurityGroups(Collection<String> securityGroups)
Sets the value of the SecurityGroups property for this object. |
void |
setSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
void |
setUserData(String userData)
Optional data, specific to a user's application, to provide in the launch request. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LaunchSpecification |
withAddressingType(String addressingType)
Deprecated. |
LaunchSpecification |
withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object. |
LaunchSpecification |
withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
Sets the value of the AllSecurityGroups property for this object. |
LaunchSpecification |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
LaunchSpecification |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
LaunchSpecification |
withEbsOptimized(Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object. |
LaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object. |
LaunchSpecification |
withImageId(String imageId)
The AMI ID. |
LaunchSpecification |
withInstanceType(InstanceType instanceType)
Specifies the instance type. |
LaunchSpecification |
withInstanceType(String instanceType)
Specifies the instance type. |
LaunchSpecification |
withKernelId(String kernelId)
Specifies the ID of the kernel to select. |
LaunchSpecification |
withKeyName(String keyName)
The name of the key pair. |
LaunchSpecification |
withMonitoringEnabled(Boolean monitoringEnabled)
Enables monitoring for the instance. |
LaunchSpecification |
withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object. |
LaunchSpecification |
withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
Sets the value of the NetworkInterfaces property for this object. |
LaunchSpecification |
withPlacement(SpotPlacement placement)
Defines a placement item. |
LaunchSpecification |
withRamdiskId(String ramdiskId)
Specifies the ID of the RAM disk to select. |
LaunchSpecification |
withSecurityGroups(Collection<String> securityGroups)
Sets the value of the SecurityGroups property for this object. |
LaunchSpecification |
withSecurityGroups(String... securityGroups)
Sets the value of the SecurityGroups property for this object. |
LaunchSpecification |
withSubnetId(String subnetId)
Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. |
LaunchSpecification |
withUserData(String userData)
Optional data, specific to a user's application, to provide in the launch request. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LaunchSpecification()
Method Detail |
---|
public String getImageId()
public void setImageId(String imageId)
imageId
- The AMI ID.public LaunchSpecification withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The AMI ID.
public String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair.public LaunchSpecification withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.
public List<GroupIdentifier> getAllSecurityGroups()
public void setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
allSecurityGroups
- The new value for the AllSecurityGroups property for this object.public LaunchSpecification withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
allSecurityGroups
- The new value for the AllSecurityGroups property for this object.
public LaunchSpecification withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
allSecurityGroups
- The new value for the AllSecurityGroups property for this object.
public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- The new value for the SecurityGroups property for this object.public LaunchSpecification withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The new value for the SecurityGroups property for this object.
public LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The new value for the SecurityGroups property for this object.
public String getUserData()
public void setUserData(String userData)
userData
- Optional data, specific to a user's application, to provide in the
launch request. All instances that collectively comprise the launch
request have access to this data. User data is never returned through
API responses.public LaunchSpecification withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- Optional data, specific to a user's application, to provide in the
launch request. All instances that collectively comprise the launch
request have access to this data. User data is never returned through
API responses.
public String getAddressingType()
public void setAddressingType(String addressingType)
addressingType
- Deprecated.public LaunchSpecification withAddressingType(String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
- Deprecated.
public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- Specifies the instance type.InstanceType
public LaunchSpecification withInstanceType(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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- Specifies the instance type.
InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- Specifies the instance type.InstanceType
public LaunchSpecification 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, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge
instanceType
- Specifies the instance type.
InstanceType
public SpotPlacement getPlacement()
public void setPlacement(SpotPlacement placement)
placement
- Defines a placement item.public LaunchSpecification withPlacement(SpotPlacement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- Defines a placement item.
public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- Specifies the ID of the kernel to select.public LaunchSpecification withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- Specifies the ID of the kernel to select.
public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- Specifies the ID of the RAM disk to select. Some kernels require
additional drivers at launch. Check the kernel requirements for
information on whether or not you need to specify a RAM disk and
search for the kernel ID.public LaunchSpecification withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- Specifies the ID of the RAM disk to select. Some kernels require
additional drivers at launch. Check the kernel requirements for
information on whether or not you need to specify a RAM disk and
search for the kernel ID.
public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.public LaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.
public LaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance. Each mapping
is made up of a virtualName and a deviceName.
public Boolean isMonitoringEnabled()
public void setMonitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled
- Enables monitoring for the instance.public LaunchSpecification withMonitoringEnabled(Boolean monitoringEnabled)
Returns a reference to this object so that method calls can be chained together.
monitoringEnabled
- Enables monitoring for the instance.
public Boolean getMonitoringEnabled()
public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- Specifies the Amazon VPC subnet ID within which to launch the
instance(s) for Amazon Virtual Private Cloud.public LaunchSpecification withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- Specifies the Amazon VPC subnet ID within which to launch the
instance(s) for Amazon Virtual Private Cloud.
public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
networkInterfaces
- The new value for the NetworkInterfaces property for this object.public LaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- The new value for the NetworkInterfaces property for this object.
public LaunchSpecification withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- The new value for the NetworkInterfaces property for this object.
public IamInstanceProfileSpecification getIamInstanceProfile()
public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
iamInstanceProfile
- The new value for the IamInstanceProfile property for this object.public LaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- The new value for the IamInstanceProfile property for this object.
public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized
- The new value for the EbsOptimized property for this object.public LaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized
- The new value for the EbsOptimized property for this object.
public Boolean getEbsOptimized()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |