Class Instance.Builder
- java.lang.Object
-
- org.jclouds.openstack.trove.v1.domain.Instance.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<Link> links)
Instance.Builder
name(String name)
Instance.Builder
size(int size)
Instance.Builder
status(Instance.Status status)
-
-
-
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<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)
-
-