public abstract static class ApiMetadata.Builder<T extends ApiMetadata.Builder<T>> extends Resource.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected Set<MediaType> |
mediaTypes |
protected String |
status |
protected Date |
updated |
id, links, name
Constructor and Description |
---|
ApiMetadata.Builder() |
Modifier and Type | Method and Description |
---|---|
ApiMetadata |
build() |
T |
fromApiMetadata(ApiMetadata in) |
T |
mediaTypes(MediaType... in) |
T |
mediaTypes(Set<MediaType> mediaTypes) |
T |
status(String status) |
T |
updated(Date updated) |
fromResource, id, links, links, name, self
public T status(String status)
ApiMetadata.getStatus()
public T updated(Date updated)
ApiMetadata.getUpdated()
public T mediaTypes(Set<MediaType> mediaTypes)
ApiMetadata.getMediaTypes()
public ApiMetadata build()
build
in class Resource.Builder<T extends ApiMetadata.Builder<T>>
public T fromApiMetadata(ApiMetadata in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.