org.jclouds.openstack.cinder.v1.domain
Class Snapshot.Builder<T extends Snapshot.Builder<T>>

java.lang.Object
  extended by org.jclouds.openstack.cinder.v1.domain.Snapshot.Builder<T>
Enclosing class:
Snapshot

public abstract static class Snapshot.Builder<T extends Snapshot.Builder<T>>
extends Object


Field Summary
protected  Date created
           
protected  String description
           
protected  String id
           
protected  String name
           
protected  int size
           
protected  Volume.Status status
           
protected  String volumeId
           
 
Constructor Summary
Snapshot.Builder()
           
 
Method Summary
 Snapshot build()
           
 T created(Date created)
           
 T description(String description)
           
 T fromSnapshot(Snapshot in)
           
 T id(String id)
           
 T name(String name)
           
protected abstract  T self()
           
 T size(int size)
           
 T status(Volume.Status status)
           
 T volumeId(String volumeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

volumeId

protected String volumeId

status

protected Volume.Status status

size

protected int size

created

protected Date created

name

protected String name

description

protected String description
Constructor Detail

Snapshot.Builder

public Snapshot.Builder()
Method Detail

self

protected abstract T self()

id

public T id(String id)
See Also:
Snapshot.getId()

volumeId

public T volumeId(String volumeId)
See Also:
Snapshot.getVolumeId()

status

public T status(Volume.Status status)
See Also:
Snapshot.getStatus()

size

public T size(int size)
See Also:
Snapshot.getSize()

created

public T created(Date created)
See Also:
Snapshot.getCreated()

name

public T name(String name)
See Also:
Snapshot.getName()

description

public T description(String description)
See Also:
Snapshot.getDescription()

build

public Snapshot build()

fromSnapshot

public T fromSnapshot(Snapshot in)


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