public static class PersistentEntityResource.Builder extends Object
PersistentEntityResource
instances.Modifier and Type | Method and Description |
---|---|
PersistentEntityResource |
build()
Finally creates the
PersistentEntityResource instance. |
PersistentEntityResource.Builder |
renderAllAssociationLinks()
Configures the builder to render all association links independently of the embedded resources added.
|
PersistentEntityResource.Builder |
withEmbedded(Iterable<org.springframework.hateoas.core.EmbeddedWrapper> resources)
Configures the builder to embedd the given E
|
PersistentEntityResource.Builder |
withLink(org.springframework.hateoas.Link link)
Adds the given
Link to the PersistentEntityResource . |
public PersistentEntityResource.Builder withEmbedded(Iterable<org.springframework.hateoas.core.EmbeddedWrapper> resources)
resources
- can be null.public PersistentEntityResource.Builder renderAllAssociationLinks()
public PersistentEntityResource.Builder withLink(org.springframework.hateoas.Link link)
Link
to the PersistentEntityResource
.link
- must not be null.public PersistentEntityResource build()
PersistentEntityResource
instance.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.