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 classLaunchSpecification.Builderstatic classLaunchSpecification.IAMInstanceProfileRequest
-
Field Summary
Fields Modifier and Type Field Description protected StringavailabilityZoneprotected Set<? extends BlockDeviceMapping>blockDeviceMappingsprotected com.google.common.base.Optional<LaunchSpecification.IAMInstanceProfileRequest>iamInstanceProfileprotected StringimageIdprotected StringinstanceTypeprotected StringkernelIdprotected StringkeyNameprotected BooleanmonitoringEnabledprotected StringramdiskIdprotected Set<String>securityGroupIdsprotected Map<String,String>securityGroupIdToNamesprotected Set<String>securityGroupNamesprotected StringsubnetIdprotected 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.Builderbuilder()booleanequals(Object obj)StringgetAvailabilityZone()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.StringgetImageId()Image ID of the AMI used to launch the instance.StringgetInstanceType()The instance type.StringgetKernelId()Optional.StringgetKeyName()If this instance was launched with an associated key pair, this displays the key pair name.StringgetRamdiskId()Optional.Set<String>getSecurityGroupIds()Ids of the security groups.Map<String,String>getSecurityGroupIdToNames()Set<String>getSecurityGroupNames()Names of the security groups.StringgetSubnetId()The ID of the subnet in which to launch the Spot Instance.byte[]getUserData()User DatainthashCode()BooleanisMonitoringEnabled()CloudWatch supportLaunchSpecification.BuildertoBuilder()StringtoString()
-
-
-
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()
-
-