public abstract static class ProductPackage.Builder<T extends ProductPackage.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected int |
id |
protected Set<ProductItem> |
items |
protected Set<Datacenter> |
locations |
protected String |
name |
Constructor and Description |
---|
ProductPackage.Builder() |
Modifier and Type | Method and Description |
---|---|
ProductPackage |
build() |
T |
datacenters(Datacenter... in) |
T |
datacenters(Set<Datacenter> locations) |
T |
description(String description) |
T |
fromProductPackage(ProductPackage in) |
T |
id(int id) |
T |
items(ProductItem... in) |
T |
items(Set<ProductItem> items) |
T |
name(String name) |
protected abstract T |
self() |
protected int id
protected String name
protected String description
protected Set<ProductItem> items
protected Set<Datacenter> locations
protected abstract T self()
public T id(int id)
ProductPackage.getId()
public T name(String name)
ProductPackage.getName()
public T description(String description)
ProductPackage.getDescription()
public T items(Set<ProductItem> items)
ProductPackage.getItems()
public T items(ProductItem... in)
public T datacenters(Set<Datacenter> locations)
ProductPackage.getDatacenters()
public T datacenters(Datacenter... in)
public ProductPackage build()
public T fromProductPackage(ProductPackage in)
Copyright © 2009-2013 jclouds. All Rights Reserved.