org.jclouds.openstack.trove.v1.domain
Class Instance.Builder
java.lang.Object
org.jclouds.openstack.trove.v1.domain.Instance.Builder
- Enclosing class:
- Instance
public static class Instance.Builder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Instance.Builder
public Instance.Builder()
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.