org.jclouds.compute.domain
Class ImageBuilder

java.lang.Object
  extended by org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
      extended by org.jclouds.compute.domain.ComputeMetadataBuilder
          extended by org.jclouds.compute.domain.ImageBuilder

public class ImageBuilder
extends ComputeMetadataBuilder

Author:
Adrian Cole

Field Summary
 
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
ImageBuilder()
           
 
Method Summary
 ImageBuilder adminPassword(String adminPassword)
           
 Image build()
           
 ImageBuilder defaultCredentials(Credentials defaultCredentials)
           
 ImageBuilder description(String description)
           
static ImageBuilder fromImage(Image image)
           
 ImageBuilder id(String id)
           
 ImageBuilder ids(String id)
          set id and providerId to the same value;
 ImageBuilder location(Location location)
           
 ImageBuilder name(String name)
           
 ImageBuilder operatingSystem(OperatingSystem operatingSystem)
           
 ImageBuilder providerId(String providerId)
           
 ImageBuilder tags(Iterable<String> tags)
           
 ImageBuilder uri(URI uri)
           
 ImageBuilder userMetadata(Map<String,String> userMetadata)
           
 ImageBuilder version(String version)
           
 
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBuilder

public ImageBuilder()
Method Detail

operatingSystem

public ImageBuilder operatingSystem(OperatingSystem operatingSystem)

version

public ImageBuilder version(@Nullable
                            String version)

description

public ImageBuilder description(String description)

adminPassword

public ImageBuilder adminPassword(@Nullable
                                  String adminPassword)

defaultCredentials

public ImageBuilder defaultCredentials(@Nullable
                                       Credentials defaultCredentials)

id

public ImageBuilder id(String id)
Overrides:
id in class ComputeMetadataBuilder

tags

public ImageBuilder tags(Iterable<String> tags)
Overrides:
tags in class ComputeMetadataBuilder

ids

public ImageBuilder ids(String id)
Description copied from class: ComputeMetadataBuilder
set id and providerId to the same value;

Overrides:
ids in class ComputeMetadataBuilder

providerId

public ImageBuilder providerId(String providerId)
Overrides:
providerId in class ComputeMetadataBuilder

name

public ImageBuilder name(String name)
Overrides:
name in class ComputeMetadataBuilder

location

public ImageBuilder location(Location location)
Overrides:
location in class ComputeMetadataBuilder

uri

public ImageBuilder uri(URI uri)
Overrides:
uri in class ComputeMetadataBuilder

userMetadata

public ImageBuilder userMetadata(Map<String,String> userMetadata)
Overrides:
userMetadata in class ComputeMetadataBuilder

build

public Image build()
Overrides:
build in class ComputeMetadataBuilder

fromImage

public static ImageBuilder fromImage(Image image)


Copyright © 2009-2011 jclouds. All Rights Reserved.