org.jclouds.compute.domain
Class ComputeMetadataBuilder
java.lang.Object
org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
org.jclouds.compute.domain.ComputeMetadataBuilder
- Direct Known Subclasses:
- HardwareBuilder, ImageBuilder, NodeMetadataBuilder
public class ComputeMetadataBuilder
- extends ResourceMetadataBuilder<ComputeType>
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
type
protected ComputeType type
tags
protected Set<String> tags
ComputeMetadataBuilder
public ComputeMetadataBuilder(ComputeType type)
id
public ComputeMetadataBuilder id(String id)
tags
public ComputeMetadataBuilder tags(Iterable<String> tags)
ids
public ComputeMetadataBuilder ids(String id)
- set id and providerId to the same value;
providerId
public ComputeMetadataBuilder providerId(String providerId)
- Overrides:
providerId
in class ResourceMetadataBuilder<ComputeType>
name
public ComputeMetadataBuilder name(String name)
- Overrides:
name
in class ResourceMetadataBuilder<ComputeType>
location
public ComputeMetadataBuilder location(Location location)
- Overrides:
location
in class ResourceMetadataBuilder<ComputeType>
uri
public ComputeMetadataBuilder uri(URI uri)
- Overrides:
uri
in class ResourceMetadataBuilder<ComputeType>
userMetadata
public ComputeMetadataBuilder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in class ResourceMetadataBuilder<ComputeType>
build
public ComputeMetadata build()
fromComputeMetadata
public static ComputeMetadataBuilder fromComputeMetadata(ComputeMetadata in)
Copyright © 2009-2011 jclouds. All Rights Reserved.