public abstract static class Resource.Builder<T extends Resource.Builder<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Date |
creationTimestamp |
protected String |
description |
protected String |
id |
protected Resource.Kind |
kind |
protected String |
name |
protected URI |
selfLink |
| Constructor and Description |
|---|
Resource.Builder() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
build() |
T |
creationTimestamp(Date creationTimestamp) |
T |
description(String description) |
T |
fromResource(Resource in) |
T |
id(String id) |
protected T |
kind(Resource.Kind kind) |
T |
name(String name) |
protected abstract T |
self() |
T |
selfLink(URI selfLink) |
protected Resource.Kind kind
protected String id
protected Date creationTimestamp
protected URI selfLink
protected String name
protected String description
protected abstract T self()
protected T kind(Resource.Kind kind)
Resource.getKind()public T id(String id)
Resource.getId()public T creationTimestamp(Date creationTimestamp)
Resource.getCreationTimestamp()public T selfLink(URI selfLink)
Resource.getSelfLink()public T name(String name)
Resource.getName()public T description(String description)
Resource.getDescription()public Resource build()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.