public class LaunchSpecification extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LaunchSpecification.Builder |
static class |
LaunchSpecification.IAMInstanceProfileRequest |
Modifier and Type | Field and Description |
---|---|
protected String |
availabilityZone |
protected Set<? extends BlockDeviceMapping> |
blockDeviceMappings |
protected com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> |
iamInstanceProfile |
protected String |
imageId |
protected String |
instanceType |
protected String |
kernelId |
protected String |
keyName |
protected Boolean |
monitoringEnabled |
protected String |
ramdiskId |
protected Set<String> |
securityGroupIds |
protected Map<String,String> |
securityGroupIdToNames |
protected Set<String> |
securityGroupNames |
protected String |
subnetId |
protected byte[] |
userData |
Constructor and Description |
---|
LaunchSpecification(String instanceType,
String imageId,
String kernelId,
String ramdiskId,
String availabilityZone,
String subnetId,
String keyName,
Map<String,String> securityGroupIdToNames,
Iterable<? extends BlockDeviceMapping> blockDeviceMappings,
Boolean monitoringEnabled,
Set<String> securityGroupIds,
Set<String> securityGroupNames,
byte[] userData,
com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> iamInstanceProfile) |
Modifier and Type | Method and Description |
---|---|
static LaunchSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The location where the instance launched.
|
Set<? extends BlockDeviceMapping> |
getBlockDeviceMappings()
volumes mappings associated with the instance.
|
com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> |
getIAMInstanceProfile()
The IAM Instance Profile (IIP) associated with the instance.
|
String |
getImageId()
Image ID of the AMI used to launch the instance.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
Optional.
|
String |
getKeyName()
If this instance was launched with an associated key pair, this displays
the key pair name.
|
String |
getRamdiskId()
Optional.
|
Set<String> |
getSecurityGroupIds()
Ids of the security groups.
|
Map<String,String> |
getSecurityGroupIdToNames() |
Set<String> |
getSecurityGroupNames()
Names of the security groups.
|
String |
getSubnetId()
The ID of the subnet in which to launch the Spot Instance.
|
byte[] |
getUserData()
User Data
|
int |
hashCode() |
Boolean |
isMonitoringEnabled()
CloudWatch support
|
LaunchSpecification.Builder |
toBuilder() |
String |
toString() |
protected final String instanceType
protected final String imageId
protected final String kernelId
protected final String ramdiskId
protected final String availabilityZone
protected final String subnetId
protected final String keyName
protected final Set<? extends BlockDeviceMapping> blockDeviceMappings
protected final Boolean monitoringEnabled
protected final byte[] userData
protected final com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> iamInstanceProfile
public LaunchSpecification(String instanceType, String imageId, String kernelId, String ramdiskId, String availabilityZone, String subnetId, String keyName, Map<String,String> securityGroupIdToNames, Iterable<? extends BlockDeviceMapping> blockDeviceMappings, Boolean monitoringEnabled, Set<String> securityGroupIds, Set<String> securityGroupNames, byte[] userData, com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> iamInstanceProfile)
public static LaunchSpecification.Builder builder()
public String getImageId()
public Boolean isMonitoringEnabled()
public String getInstanceType()
public String getKernelId()
public String getKeyName()
public String getAvailabilityZone()
@Nullable public String getSubnetId()
public String getRamdiskId()
public Set<? extends BlockDeviceMapping> getBlockDeviceMappings()
public byte[] getUserData()
public com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> getIAMInstanceProfile()
public LaunchSpecification.Builder toBuilder()
Copyright © 2009-2013 jclouds. All Rights Reserved.