org.jclouds.googlecomputeengine.domain
Class Snapshot

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Resource
      extended by org.jclouds.googlecomputeengine.domain.AbstractDisk
          extended by org.jclouds.googlecomputeengine.domain.Snapshot

@Beta
public final class Snapshot
extends AbstractDisk

A Persistent Disk Snapshot resource.

Author:
Andrew Bayer
See Also:

Nested Class Summary
static class Snapshot.Builder
           
 
Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource
Resource.Kind
 
Field Summary
 
Fields inherited from class org.jclouds.googlecomputeengine.domain.AbstractDisk
sizeGb, status
 
Fields inherited from class org.jclouds.googlecomputeengine.domain.Resource
creationTimestamp, description, id, kind, name, selfLink
 
Method Summary
static Snapshot.Builder builder()
           
 com.google.common.base.Optional<URI> getSourceDisk()
           
 String getSourceDiskId()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Snapshot.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class org.jclouds.googlecomputeengine.domain.AbstractDisk
getSizeGb, getStatus
 
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
 

Method Detail

getSourceDisk

public com.google.common.base.Optional<URI> getSourceDisk()
Returns:
The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created (output only).

getSourceDiskId

public String getSourceDiskId()
Returns:
The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.

string

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

Overrides:
string in class AbstractDisk

toString

public String toString()

Overrides:
toString in class AbstractDisk

builder

public static Snapshot.Builder builder()

toBuilder

public Snapshot.Builder toBuilder()
Overrides:
toBuilder in class AbstractDisk


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