public class HardwareBuilder extends ComputeMetadataBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
hypervisor |
protected List<Processor> |
processors |
protected int |
ram |
protected com.google.common.base.Predicate<Image> |
supportsImage |
protected List<Volume> |
volumes |
id, tags, type
location, name, providerId, uri, userMetadata
Constructor and Description |
---|
HardwareBuilder() |
Modifier and Type | Method and Description |
---|---|
Hardware |
build() |
static HardwareBuilder |
fromHardware(Hardware in) |
HardwareBuilder |
hypervisor(String hypervisor) |
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) |
fromComputeMetadata
protected int ram
protected com.google.common.base.Predicate<Image> supportsImage
protected String hypervisor
public HardwareBuilder processor(Processor processor)
public HardwareBuilder processors(Iterable<Processor> processors)
public HardwareBuilder ram(int ram)
public HardwareBuilder volume(Volume volume)
public HardwareBuilder volumes(Iterable<Volume> volumes)
public HardwareBuilder supportsImage(com.google.common.base.Predicate<Image> supportsImage)
public HardwareBuilder hypervisor(String hypervisor)
public HardwareBuilder is64Bit(boolean is64Bit)
public HardwareBuilder id(String id)
id
in class ComputeMetadataBuilder
public HardwareBuilder tags(Iterable<String> tags)
tags
in class ComputeMetadataBuilder
public HardwareBuilder ids(String id)
ComputeMetadataBuilder
ids
in class ComputeMetadataBuilder
public HardwareBuilder providerId(String providerId)
providerId
in class ComputeMetadataBuilder
public HardwareBuilder name(String name)
name
in class ComputeMetadataBuilder
public HardwareBuilder location(Location location)
location
in class ComputeMetadataBuilder
public HardwareBuilder uri(URI uri)
uri
in class ComputeMetadataBuilder
public HardwareBuilder userMetadata(Map<String,String> userMetadata)
userMetadata
in class ComputeMetadataBuilder
public Hardware build()
build
in class ComputeMetadataBuilder
public static HardwareBuilder fromHardware(Hardware in)
Copyright © 2009-2013 jclouds. All Rights Reserved.