Package 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
,SecurityGroupBuilder
public class ComputeMetadataBuilder extends ResourceMetadataBuilder<ComputeType>
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description ComputeMetadataBuilder(ComputeType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
id
protected String id
-
type
protected ComputeType type
-
-
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 classResourceMetadataBuilder<ComputeType>
-
name
public ComputeMetadataBuilder name(String name)
- Overrides:
name
in classResourceMetadataBuilder<ComputeType>
-
location
public ComputeMetadataBuilder location(Location location)
- Overrides:
location
in classResourceMetadataBuilder<ComputeType>
-
uri
public ComputeMetadataBuilder uri(URI uri)
- Overrides:
uri
in classResourceMetadataBuilder<ComputeType>
-
userMetadata
public ComputeMetadataBuilder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classResourceMetadataBuilder<ComputeType>
-
build
public ComputeMetadata build()
-
fromComputeMetadata
public static ComputeMetadataBuilder fromComputeMetadata(ComputeMetadata in)
-
-