org.jclouds.openstack.trove.v1.domain
Class Instance.Builder

java.lang.Object
  extended by org.jclouds.openstack.trove.v1.domain.Instance.Builder
Enclosing class:
Instance

public static class Instance.Builder
extends Object


Field Summary
protected  Flavor flavor
           
protected  String hostname
           
protected  String id
           
protected  com.google.common.collect.ImmutableList<org.jclouds.openstack.v2_0.domain.Link> links
           
protected  String name
           
protected  int size
           
protected  Instance.Status status
           
 
Constructor Summary
Instance.Builder()
           
 
Method Summary
 Instance build()
           
 Instance.Builder flavor(Flavor flavor)
           
 Instance.Builder fromInstance(Instance in)
           
 Instance.Builder hostname(String hostname)
           
 Instance.Builder id(String id)
           
 Instance.Builder links(com.google.common.collect.ImmutableList<org.jclouds.openstack.v2_0.domain.Link> links)
           
 Instance.Builder name(String name)
           
 Instance.Builder size(int size)
           
 Instance.Builder status(Instance.Status status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

size

protected int size

flavor

protected Flavor flavor

status

protected Instance.Status status

links

protected com.google.common.collect.ImmutableList<org.jclouds.openstack.v2_0.domain.Link> links

hostname

protected String hostname
Constructor Detail

Instance.Builder

public Instance.Builder()
Method Detail

id

public Instance.Builder id(String id)
Parameters:
id - The id of this instance.
Returns:
The builder object.
See Also:
Instance.getId()

name

public Instance.Builder name(String name)
Parameters:
name - The name of this instance.
Returns:
The builder object.
See Also:
Instance.getName()

size

public Instance.Builder size(int size)
Parameters:
size - Specifies the volume size in gigabytes (GB).
Returns:
The builder object.
See Also:
Instance.getSize()

flavor

public Instance.Builder flavor(Flavor flavor)
Parameters:
flavor - The Flavor of this instance as specified in the response from the List Flavors API call.
Returns:
The builder object.
See Also:
Instance.getFlavor()

status

public Instance.Builder status(Instance.Status status)
Parameters:
status - The status of this instance.
Returns:
The builder object.
See Also:
Instance.getStatus()

links

public Instance.Builder links(com.google.common.collect.ImmutableList<org.jclouds.openstack.v2_0.domain.Link> links)
Parameters:
links - The links to this instance.
Returns:
The builder object.
See Also:
Instance.getLinks()

hostname

public Instance.Builder hostname(String hostname)
Parameters:
name - The hostname of this instance.
Returns:
The builder object.
See Also:
Instance.getHostname()

build

public Instance build()
Returns:
A new Instance object.

fromInstance

public Instance.Builder fromInstance(Instance in)


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