org.jclouds.compute.domain
Class ComputeMetadataBuilder

java.lang.Object
  extended by org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
      extended by org.jclouds.compute.domain.ComputeMetadataBuilder
Direct Known Subclasses:
HardwareBuilder, ImageBuilder, NodeMetadataBuilder

public class ComputeMetadataBuilder
extends ResourceMetadataBuilder<ComputeType>

Author:
Adrian Cole

Field Summary
protected  String id
           
protected  Set<String> tags
           
protected  ComputeType type
           
 
Fields inherited from class org.jclouds.domain.ResourceMetadataBuilder
location, name, providerId, uri, userMetadata
 
Constructor Summary
ComputeMetadataBuilder(ComputeType type)
           
 
Method Summary
 ComputeMetadata build()
           
static ComputeMetadataBuilder fromComputeMetadata(ComputeMetadata in)
           
 ComputeMetadataBuilder id(String id)
           
 ComputeMetadataBuilder ids(String id)
          set id and providerId to the same value;
 ComputeMetadataBuilder location(Location location)
           
 ComputeMetadataBuilder name(String name)
           
 ComputeMetadataBuilder providerId(String providerId)
           
 ComputeMetadataBuilder tags(Iterable<String> tags)
           
 ComputeMetadataBuilder uri(URI uri)
           
 ComputeMetadataBuilder userMetadata(Map<String,String> userMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

type

protected ComputeType type

tags

protected Set<String> tags
Constructor Detail

ComputeMetadataBuilder

public ComputeMetadataBuilder(ComputeType type)
Method Detail

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-2012 jclouds. All Rights Reserved.