Modifier and Type | Field and Description |
---|---|
protected Flavor |
flavor |
protected String |
hostname |
protected String |
id |
protected com.google.common.collect.ImmutableList<Link> |
links |
protected String |
name |
protected int |
size |
protected Instance.Status |
status |
Constructor and Description |
---|
Instance.Builder() |
Modifier and Type | Method and 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) |
protected String id
protected String name
protected int size
protected Flavor flavor
protected Instance.Status status
protected com.google.common.collect.ImmutableList<Link> links
protected String hostname
public Instance.Builder id(String id)
id
- The id of this instance.Instance.getId()
public Instance.Builder name(String name)
name
- The name of this instance.Instance.getName()
public Instance.Builder size(int size)
size
- Specifies the volume size in gigabytes (GB).Instance.getSize()
public Instance.Builder flavor(Flavor flavor)
flavor
- The Flavor of this instance as specified in the response from the List Flavors API call.Instance.getFlavor()
public Instance.Builder status(Instance.Status status)
status
- The status of this instance.Instance.getStatus()
public Instance.Builder links(com.google.common.collect.ImmutableList<Link> links)
links
- The links to this instance.Instance.getLinks()
public Instance.Builder hostname(String hostname)
name
- The hostname of this instance.Instance.getHostname()
public Instance build()
public Instance.Builder fromInstance(Instance in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.