public static class PersistentEntityResource.Builder extends Object
PersistentEntityResource
instances.Modifier and Type | Method and Description |
---|---|
PersistentEntityResource |
build()
Finally creates the
PersistentEntityResource instance. |
PersistentEntityResource |
forCreation()
Finally creates the
PersistentEntityResource instance to symbolize the contained entity is about to be
created. |
PersistentEntityResource.Builder |
withEmbedded(Iterable<org.springframework.hateoas.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 . |
public PersistentEntityResource.Builder withEmbedded(Iterable<org.springframework.hateoas.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 build()
PersistentEntityResource
instance.public PersistentEntityResource forCreation()
PersistentEntityResource
instance to symbolize the contained entity is about to be
created.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.