public abstract static class ProductItem.Builder<T extends ProductItem.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected Float |
capacity |
protected Set<ProductItemCategory> |
categories |
protected String |
description |
protected int |
id |
protected Set<ProductItemPrice> |
prices |
protected String |
units |
Constructor and Description |
---|
ProductItem.Builder() |
Modifier and Type | Method and Description |
---|---|
ProductItem |
build() |
T |
capacity(Float capacity) |
T |
categories(ProductItemCategory... in) |
T |
categories(Set<ProductItemCategory> categories) |
T |
description(String description) |
T |
fromProductItem(ProductItem in) |
T |
id(int id) |
T |
prices(ProductItemPrice... in) |
T |
prices(Set<ProductItemPrice> prices) |
protected abstract T |
self() |
T |
units(String units) |
protected int id
protected String description
protected String units
protected Float capacity
protected Set<ProductItemPrice> prices
protected Set<ProductItemCategory> categories
protected abstract T self()
public T id(int id)
ProductItem.getId()
public T description(String description)
ProductItem.getDescription()
public T units(String units)
ProductItem.getUnits()
public T capacity(Float capacity)
ProductItem.getCapacity()
public T prices(Set<ProductItemPrice> prices)
ProductItem.getPrices()
public T prices(ProductItemPrice... in)
public T categories(Set<ProductItemCategory> categories)
ProductItem.getCategories()
public T categories(ProductItemCategory... in)
public ProductItem build()
public T fromProductItem(ProductItem in)
Copyright © 2009-2013 jclouds. All Rights Reserved.