public class HardwareBuilder extends ComputeMetadataBuilder
| Modifier and Type | Field and 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 |
id, tags, typelocation, name, providerId, uri, userMetadata| Constructor and Description |
|---|
HardwareBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Hardware |
build() |
HardwareBuilder |
deprecated() |
HardwareBuilder |
deprecated(boolean deprecated) |
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) |
fromComputeMetadataprotected int ram
protected com.google.common.base.Predicate<Image> supportsImage
protected String hypervisor
protected boolean deprecated
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 deprecated(boolean deprecated)
public HardwareBuilder deprecated()
public HardwareBuilder is64Bit(boolean is64Bit)
public HardwareBuilder id(String id)
id in class ComputeMetadataBuilderpublic HardwareBuilder tags(Iterable<String> tags)
tags in class ComputeMetadataBuilderpublic HardwareBuilder ids(String id)
ComputeMetadataBuilderids in class ComputeMetadataBuilderpublic HardwareBuilder providerId(String providerId)
providerId in class ComputeMetadataBuilderpublic HardwareBuilder name(String name)
name in class ComputeMetadataBuilderpublic HardwareBuilder location(Location location)
location in class ComputeMetadataBuilderpublic HardwareBuilder uri(URI uri)
uri in class ComputeMetadataBuilderpublic HardwareBuilder userMetadata(Map<String,String> userMetadata)
userMetadata in class ComputeMetadataBuilderpublic Hardware build()
build in class ComputeMetadataBuilderpublic static HardwareBuilder fromHardware(Hardware in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.