org.jclouds.googlecomputeengine.domain
Class Image

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Resource
      extended by org.jclouds.googlecomputeengine.domain.Image

@Beta
public final class Image
extends Resource

Represents a disk image to use on an instance.

Author:
David Alves
See Also:

Nested Class Summary
static class Image.Builder
           
static class Image.RawDisk
          A raw disk image, usually the base for an image.
 
Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource
Resource.Kind
 
Field Summary
 
Fields inherited from class org.jclouds.googlecomputeengine.domain.Resource
creationTimestamp, description, id, kind, name, selfLink
 
Constructor Summary
protected Image(String id, Date creationTimestamp, URI selfLink, String name, String description, String sourceType, Image.RawDisk rawDisk, Deprecated deprecated)
           
 
Method Summary
static Image.Builder builder()
           
 com.google.common.base.Optional<Deprecated> getDeprecated()
           
 Image.RawDisk getRawDisk()
           
 String getSourceType()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Image.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class org.jclouds.googlecomputeengine.domain.Resource
equals, getCreationTimestamp, getDescription, getId, getKind, getName, getSelfLink, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

@ConstructorProperties(value={"id","creationTimestamp","selfLink","name","description","sourceType","rawDisk","deprecated"})
protected Image(String id,
                                           Date creationTimestamp,
                                           URI selfLink,
                                           String name,
                                           String description,
                                           String sourceType,
                                           Image.RawDisk rawDisk,
                                           Deprecated deprecated)
Method Detail

getSourceType

public String getSourceType()
Returns:
must be RAW; provided by the client when the disk image is created.

getRawDisk

public Image.RawDisk getRawDisk()
Returns:
the raw disk image parameters.

getDeprecated

public com.google.common.base.Optional<Deprecated> getDeprecated()
Returns:
the deprecation information for this image

string

protected com.google.common.base.Objects.ToStringHelper string()

Overrides:
string in class Resource

toString

public String toString()

Overrides:
toString in class Resource

builder

public static Image.Builder builder()

toBuilder

public Image.Builder toBuilder()
Overrides:
toBuilder in class Resource


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.