Package 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
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
deprecated
protected String
hypervisor
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
Constructors Constructor Description HardwareBuilder()
-
Method Summary
-
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
-
-
-
-
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)
-
hypervisor
public HardwareBuilder hypervisor(String hypervisor)
-
deprecated
public HardwareBuilder deprecated(boolean deprecated)
-
deprecated
public HardwareBuilder deprecated()
-
is64Bit
public HardwareBuilder is64Bit(boolean is64Bit)
-
id
public HardwareBuilder id(String id)
- Overrides:
id
in classComputeMetadataBuilder
-
tags
public HardwareBuilder tags(Iterable<String> tags)
- Overrides:
tags
in classComputeMetadataBuilder
-
ids
public HardwareBuilder ids(String id)
Description copied from class:ComputeMetadataBuilder
set id and providerId to the same value;- Overrides:
ids
in classComputeMetadataBuilder
-
providerId
public HardwareBuilder providerId(String providerId)
- Overrides:
providerId
in classComputeMetadataBuilder
-
name
public HardwareBuilder name(String name)
- Overrides:
name
in classComputeMetadataBuilder
-
location
public HardwareBuilder location(Location location)
- Overrides:
location
in classComputeMetadataBuilder
-
uri
public HardwareBuilder uri(URI uri)
- Overrides:
uri
in classComputeMetadataBuilder
-
userMetadata
public HardwareBuilder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classComputeMetadataBuilder
-
build
public Hardware build()
- Overrides:
build
in classComputeMetadataBuilder
-
fromHardware
public static HardwareBuilder fromHardware(Hardware in)
-
-