org.jclouds.compute.domain
Class HardwareBuilder
java.lang.Object
org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
org.jclouds.compute.domain.ComputeMetadataBuilder
org.jclouds.compute.domain.HardwareBuilder
- Direct Known Subclasses:
- EC2HardwareBuilder
public class HardwareBuilder
- extends ComputeMetadataBuilder
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
processors
protected List<Processor> processors
ram
protected int ram
volumes
protected List<Volume> volumes
supportsImage
protected com.google.common.base.Predicate<Image> supportsImage
HardwareBuilder
public HardwareBuilder()
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.