Package org.jclouds.aws.ec2.domain
Class LaunchSpecification
- java.lang.Object
-
- org.jclouds.aws.ec2.domain.LaunchSpecification
-
public class LaunchSpecification extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LaunchSpecification.Builder
static class
LaunchSpecification.IAMInstanceProfileRequest
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 Dataint
hashCode()
Boolean
isMonitoringEnabled()
CloudWatch supportLaunchSpecification.Builder
toBuilder()
String
toString()
-
-
-
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
-
subnetId
protected final String subnetId
-
keyName
protected final String keyName
-
blockDeviceMappings
protected final Set<? extends BlockDeviceMapping> blockDeviceMappings
-
monitoringEnabled
protected final Boolean monitoringEnabled
-
userData
protected final byte[] userData
-
iamInstanceProfile
protected final com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> iamInstanceProfile
-
-
Constructor Detail
-
LaunchSpecification
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)
-
-
Method Detail
-
builder
public static LaunchSpecification.Builder builder()
-
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.
-
getSubnetId
@Nullable public String getSubnetId()
The ID of the subnet in which to launch the Spot Instance.
-
getRamdiskId
public String getRamdiskId()
Optional. RAM disk associated with this instance.
-
getBlockDeviceMappings
public Set<? extends BlockDeviceMapping> getBlockDeviceMappings()
volumes mappings associated with the instance.
-
getUserData
public byte[] getUserData()
User Data
-
getIAMInstanceProfile
public com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest> getIAMInstanceProfile()
The IAM Instance Profile (IIP) associated with the instance.
-
toBuilder
public LaunchSpecification.Builder toBuilder()
-
-