org.jclouds.ec2.compute.domain
Class EC2HardwareBuilder

java.lang.Object
  extended by org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
      extended by org.jclouds.compute.domain.ComputeMetadataBuilder
          extended by org.jclouds.compute.domain.HardwareBuilder
              extended by org.jclouds.ec2.compute.domain.EC2HardwareBuilder

public class EC2HardwareBuilder
extends HardwareBuilder

Author:
Adrian Cole
See Also:

Nested Class Summary
static class EC2HardwareBuilder.IsWindows
           
static class EC2HardwareBuilder.RequiresRootDeviceType
          evaluates true if the Image has the following rootDeviceType
static class EC2HardwareBuilder.RequiresVirtualizationType
          evaluates true if the Image requires the following virtualizationType
 
Field Summary
 
Fields inherited from class org.jclouds.compute.domain.HardwareBuilder
processors, ram, supportsImage, volumes
 
Fields inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
id, tags, type
 
Fields inherited from class org.jclouds.domain.ResourceMetadataBuilder
location, name, providerId, uri, userMetadata
 
Constructor Summary
EC2HardwareBuilder()
           
EC2HardwareBuilder(String instanceType)
           
 
Method Summary
 Hardware build()
           
static EC2HardwareBuilder c1_medium()
           
static EC2HardwareBuilder c1_xlarge()
           
static EC2HardwareBuilder cc1_4xlarge()
           
 EC2HardwareBuilder id(String id)
           
 EC2HardwareBuilder ids(String id)
          set id and providerId to the same value;
 EC2HardwareBuilder is64Bit(boolean is64Bit)
           
 EC2HardwareBuilder location(Location location)
           
static EC2HardwareBuilder m1_large()
           
static EC2HardwareBuilder m1_small()
           
static EC2HardwareBuilder m1_small32()
           
static EC2HardwareBuilder m1_xlarge()
           
static EC2HardwareBuilder m2_2xlarge()
           
static EC2HardwareBuilder m2_4xlarge()
           
static EC2HardwareBuilder m2_xlarge()
           
 EC2HardwareBuilder name(String name)
           
 EC2HardwareBuilder processors(List<Processor> processors)
           
 EC2HardwareBuilder providerId(String providerId)
           
 EC2HardwareBuilder ram(int ram)
           
 EC2HardwareBuilder rootDeviceType(RootDeviceType rootDeviceType)
           
 EC2HardwareBuilder supportsImage(com.google.common.base.Predicate<Image> supportsImage)
           
 EC2HardwareBuilder supportsImageIds(Iterable<String> ids)
           
static EC2HardwareBuilder t1_micro()
           
 EC2HardwareBuilder uri(URI uri)
           
 EC2HardwareBuilder userMetadata(Map<String,String> userMetadata)
           
 EC2HardwareBuilder virtualizationType(VirtualizationType virtualizationType)
           
 EC2HardwareBuilder volumes(List<Volume> volumes)
           
 
Methods inherited from class org.jclouds.compute.domain.HardwareBuilder
fromHardware, processor, processors, tags, volume, volumes
 
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EC2HardwareBuilder

public EC2HardwareBuilder()

EC2HardwareBuilder

public EC2HardwareBuilder(String instanceType)
Method Detail

virtualizationType

public EC2HardwareBuilder virtualizationType(VirtualizationType virtualizationType)

rootDeviceType

public EC2HardwareBuilder rootDeviceType(RootDeviceType rootDeviceType)

supportsImageIds

public EC2HardwareBuilder supportsImageIds(Iterable<String> ids)

ids

public EC2HardwareBuilder ids(String id)
Description copied from class: ComputeMetadataBuilder
set id and providerId to the same value;

Overrides:
ids in class HardwareBuilder

ram

public EC2HardwareBuilder ram(int ram)
Overrides:
ram in class HardwareBuilder

processors

public EC2HardwareBuilder processors(List<Processor> processors)

volumes

public EC2HardwareBuilder volumes(List<Volume> volumes)

supportsImage

public EC2HardwareBuilder supportsImage(com.google.common.base.Predicate<Image> supportsImage)
Overrides:
supportsImage in class HardwareBuilder

is64Bit

public EC2HardwareBuilder is64Bit(boolean is64Bit)
Overrides:
is64Bit in class HardwareBuilder

id

public EC2HardwareBuilder id(String id)
Overrides:
id in class HardwareBuilder

providerId

public EC2HardwareBuilder providerId(String providerId)
Overrides:
providerId in class HardwareBuilder

name

public EC2HardwareBuilder name(String name)
Overrides:
name in class HardwareBuilder

location

public EC2HardwareBuilder location(Location location)
Overrides:
location in class HardwareBuilder

uri

public EC2HardwareBuilder uri(URI uri)
Overrides:
uri in class HardwareBuilder

userMetadata

public EC2HardwareBuilder userMetadata(Map<String,String> userMetadata)
Overrides:
userMetadata in class HardwareBuilder

m1_small32

public static EC2HardwareBuilder m1_small32()
See Also:
InstanceType.M1_SMALL

m1_small

public static EC2HardwareBuilder m1_small()
See Also:
InstanceType.M1_SMALL

t1_micro

public static EC2HardwareBuilder t1_micro()
See Also:
InstanceType.T1_MICRO

m1_large

public static EC2HardwareBuilder m1_large()
See Also:
InstanceType.M1_LARGE

m1_xlarge

public static EC2HardwareBuilder m1_xlarge()
See Also:
InstanceType.M1_XLARGE

m2_xlarge

public static EC2HardwareBuilder m2_xlarge()
See Also:
InstanceType.M2_XLARGE

m2_2xlarge

public static EC2HardwareBuilder m2_2xlarge()
See Also:
InstanceType.M2_2XLARGE

m2_4xlarge

public static EC2HardwareBuilder m2_4xlarge()
See Also:
InstanceType.M2_4XLARGE

c1_medium

public static EC2HardwareBuilder c1_medium()
See Also:
InstanceType.C1_MEDIUM

c1_xlarge

public static EC2HardwareBuilder c1_xlarge()
See Also:
InstanceType.C1_XLARGE

cc1_4xlarge

public static EC2HardwareBuilder cc1_4xlarge()

build

public Hardware build()
Overrides:
build in class HardwareBuilder


Copyright © 2009-2011 jclouds. All Rights Reserved.