org.jclouds.aws.ec2.domain
Class LaunchSpecification

java.lang.Object
  extended by org.jclouds.aws.ec2.domain.LaunchSpecification

public class LaunchSpecification
extends Object

Author:
Adrian Cole
See Also:

Nested Class Summary
static class LaunchSpecification.Builder
           
 
Field Summary
protected  String availabilityZone
           
protected  Set<? extends BlockDeviceMapping> blockDeviceMappings
           
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  byte[] userData
           
 
Constructor Summary
LaunchSpecification(String instanceType, String imageId, String kernelId, String ramdiskId, String availabilityZone, String keyName, Map<String,String> securityGroupIdToNames, Iterable<? extends BlockDeviceMapping> blockDeviceMappings, Boolean monitoringEnabled, Set<String> securityGroupIds, Set<String> securityGroupNames, byte[] userData)
           
 
Method Summary
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.
 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.
 byte[] getUserData()
          User Data
 int hashCode()
           
 Boolean isMonitoringEnabled()
          CloudWatch support
 LaunchSpecification.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

instanceType

protected final String instanceType

imageId

protected final String imageId

kernelId

protected final String kernelId

ramdiskId

protected final String ramdiskId

availabilityZone

protected final String availabilityZone

keyName

protected final String keyName

securityGroupIdToNames

protected final Map<String,String> securityGroupIdToNames

blockDeviceMappings

protected final Set<? extends BlockDeviceMapping> blockDeviceMappings

securityGroupIds

protected final Set<String> securityGroupIds

securityGroupNames

protected final Set<String> securityGroupNames

monitoringEnabled

protected final Boolean monitoringEnabled

userData

protected final byte[] userData
Constructor Detail

LaunchSpecification

public LaunchSpecification(String instanceType,
                           String imageId,
                           String kernelId,
                           String ramdiskId,
                           String availabilityZone,
                           String keyName,
                           Map<String,String> securityGroupIdToNames,
                           Iterable<? extends BlockDeviceMapping> blockDeviceMappings,
                           Boolean monitoringEnabled,
                           Set<String> securityGroupIds,
                           Set<String> securityGroupNames,
                           byte[] userData)
Method Detail

builder

public static LaunchSpecification.Builder builder()

getSecurityGroupIdToNames

public Map<String,String> getSecurityGroupIdToNames()

getImageId

public String getImageId()
Image ID of the AMI used to launch the instance.


isMonitoringEnabled

public Boolean isMonitoringEnabled()
CloudWatch support


getInstanceType

public String getInstanceType()
The instance type.


getKernelId

public String getKernelId()
Optional. Kernel associated with this instance.


getKeyName

public String getKeyName()
If this instance was launched with an associated key pair, this displays the key pair name.


getAvailabilityZone

public String getAvailabilityZone()
The location where the instance launched.


getRamdiskId

public String getRamdiskId()
Optional. RAM disk associated with this instance.


getBlockDeviceMappings

public Set<? extends BlockDeviceMapping> getBlockDeviceMappings()
volumes mappings associated with the instance.


getSecurityGroupNames

public Set<String> getSecurityGroupNames()
Names of the security groups.


getSecurityGroupIds

public Set<String> getSecurityGroupIds()
Ids of the security groups.


getUserData

public byte[] getUserData()
User Data


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toBuilder

public LaunchSpecification.Builder toBuilder()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.