public static class PersistentEntityResource.Builder extends Object
PersistentEntityResource instances.| Modifier and Type | Method and Description |
|---|---|
PersistentEntityResource |
build()
Finally creates the
PersistentEntityResource instance. |
PersistentEntityResource |
buildNested() |
PersistentEntityResource |
forCreation()
Finally creates the
PersistentEntityResource instance to symbolize the contained entity is about to be
created. |
PersistentEntityResource.Builder |
withEmbedded(Iterable<org.springframework.hateoas.server.core.EmbeddedWrapper> resources)
Configures the builder to embed the given
EmbeddedWrapper instances. |
PersistentEntityResource.Builder |
withLink(org.springframework.hateoas.Link link)
Adds the given
Link to the PersistentEntityResource. |
PersistentEntityResource.Builder |
withLinks(List<org.springframework.hateoas.Link> links) |
public PersistentEntityResource.Builder withEmbedded(Iterable<org.springframework.hateoas.server.core.EmbeddedWrapper> resources)
EmbeddedWrapper instances. Creates a Resources instance
to make sure the EmbeddedWrapper handling gets applied to the serialization output ignoring the links.resources - can be null.public PersistentEntityResource.Builder withLink(org.springframework.hateoas.Link link)
Link to the PersistentEntityResource.link - must not be null.public PersistentEntityResource.Builder withLinks(List<org.springframework.hateoas.Link> links)
public PersistentEntityResource build()
PersistentEntityResource instance.public PersistentEntityResource forCreation()
PersistentEntityResource instance to symbolize the contained entity is about to be
created.public PersistentEntityResource buildNested()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.