org.jclouds.compute.domain
Class HardwareBuilder

java.lang.Object
  extended by org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
      extended by org.jclouds.compute.domain.ComputeMetadataBuilder
          extended by org.jclouds.compute.domain.HardwareBuilder
Direct Known Subclasses:
EC2HardwareBuilder

public class HardwareBuilder
extends ComputeMetadataBuilder

Author:
Adrian Cole

Field Summary
protected  List<Processor> processors
           
protected  int ram
           
protected  com.google.common.base.Predicate<Image> supportsImage
           
protected  List<Volume> 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
HardwareBuilder()
           
 
Method Summary
 Hardware build()
           
static HardwareBuilder fromHardware(Hardware in)
           
 HardwareBuilder id(String id)
           
 HardwareBuilder ids(String id)
          set id and providerId to the same value;
 HardwareBuilder is64Bit(boolean is64Bit)
           
 HardwareBuilder location(Location location)
           
 HardwareBuilder name(String name)
           
 HardwareBuilder processor(Processor processor)
           
 HardwareBuilder processors(Iterable<Processor> processors)
           
 HardwareBuilder providerId(String providerId)
           
 HardwareBuilder ram(int ram)
           
 HardwareBuilder supportsImage(com.google.common.base.Predicate<Image> supportsImage)
           
 HardwareBuilder tags(Iterable<String> tags)
           
 HardwareBuilder uri(URI uri)
           
 HardwareBuilder userMetadata(Map<String,String> userMetadata)
           
 HardwareBuilder volume(Volume volume)
           
 HardwareBuilder volumes(Iterable<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
 

Field Detail

processors

protected List<Processor> processors

ram

protected int ram

volumes

protected List<Volume> volumes

supportsImage

protected com.google.common.base.Predicate<Image> supportsImage
Constructor Detail

HardwareBuilder

public HardwareBuilder()
Method Detail

processor

public HardwareBuilder processor(Processor processor)

processors

public HardwareBuilder processors(Iterable<Processor> processors)

ram

public HardwareBuilder ram(int ram)

volume

public HardwareBuilder volume(Volume volume)

volumes

public HardwareBuilder volumes(Iterable<Volume> volumes)

supportsImage

public HardwareBuilder supportsImage(com.google.common.base.Predicate<Image> supportsImage)

is64Bit

public HardwareBuilder is64Bit(boolean is64Bit)

id

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

tags

public HardwareBuilder tags(Iterable<String> tags)
Overrides:
tags in class ComputeMetadataBuilder

ids

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

Overrides:
ids in class ComputeMetadataBuilder

providerId

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

name

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

location

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

uri

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

userMetadata

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

build

public Hardware build()
Overrides:
build in class ComputeMetadataBuilder

fromHardware

public static HardwareBuilder fromHardware(Hardware in)


Copyright © 2009-2011 jclouds. All Rights Reserved.