public static class EmbeddedRepresentationSubEntity.Builder extends java.lang.Object implements Builder<EmbeddedRepresentationSubEntity>
EmbeddedRepresentationSubEntity.Builder.| Constructor and Description |
|---|
Builder()
Constructs an instance of
EmbeddedRepresentationSubEntity.Builder. |
| Modifier and Type | Method and Description |
|---|---|
EmbeddedRepresentationSubEntity.Builder |
action(Action action)
Adds the action provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
actions(Action... actions)
Adds the actions provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity |
build()
Constructs an instance with the
current state of the builder.
|
void |
clear()
Clears the state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
klass(java.lang.String klass)
Adds the class provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
klasses(java.lang.String... klasses)
Adds the classes provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
link(Link link)
Adds the link provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
links(Link... links)
Adds the links provided to the current state of the builder.
|
<T> EmbeddedRepresentationSubEntity.Builder |
property(java.lang.String propertyKey,
T propertyValue)
Adds the property provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rel(Relation rel)
Adds the relation provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rel(java.lang.String rel)
Adds the relation provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rel(java.net.URI rel)
Adds the relation provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rels(Relation... rels)
Adds the relations provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rels(java.lang.String... rels)
Adds the relations provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
rels(java.net.URI... rels)
Adds the relations provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
subEntities(EntityBase... subEntities)
Adds the sub-entities provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
subEntity(EntityBase subEntity)
Adds the sub-entity provided to the current state of the builder.
|
EmbeddedRepresentationSubEntity.Builder |
title(java.lang.String title)
Adds the title provided to the current state of the builder.
|
public Builder()
EmbeddedRepresentationSubEntity.Builder.public EmbeddedRepresentationSubEntity.Builder klass(java.lang.String klass)
klass - Describes the nature of an entity's content based on the current representation.
Possible values are implementation-dependent and should be documented.public EmbeddedRepresentationSubEntity.Builder klasses(java.lang.String... klasses)
klasses - Descriptions of the nature of an entity's content based on the current representation.
Possible values are implementation-dependent and should be documented.public <T> EmbeddedRepresentationSubEntity.Builder property(java.lang.String propertyKey, T propertyValue)
T - The type of the value portion of a key-value pair that describes the state of an entity.propertyKey - The key portion of a key-value pair that describes the state of an entity.propertyValue - The value portion of a key-value pair that describes the state of an entity.public EmbeddedRepresentationSubEntity.Builder action(Action action)
action - An action showing an available behavior an entity exposes.public EmbeddedRepresentationSubEntity.Builder actions(Action... actions)
actions - Actions showing an available behavior an entity exposes.public EmbeddedRepresentationSubEntity.Builder link(Link link)
link - A navigational link, distinct from an entity relationship.
Link items should contain a `rel` attribute to describe the relationship
and an `href` attribute to point to the target URI.
Entities should include a link `rel` to `self`.public EmbeddedRepresentationSubEntity.Builder links(Link... links)
links - Navigational links, distinct from an entity relationship.
Link items should contain a `rel` attribute to describe the relationship
and an `href` attribute to point to the target URI.
Entities should include a link `rel` to `self`.public EmbeddedRepresentationSubEntity.Builder subEntity(EntityBase subEntity)
subEntity - A sub-entity represented as an embedded link or an embedded entity representation.public EmbeddedRepresentationSubEntity.Builder subEntities(EntityBase... subEntities)
subEntities - Sub-entities represented individually as an embedded link or
an embedded entity representation.public EmbeddedRepresentationSubEntity.Builder title(java.lang.String title)
title - Descriptive text about the entity.public EmbeddedRepresentationSubEntity.Builder rel(java.lang.String rel) throws java.net.URISyntaxException
rel - The relationship of the sub-entity to its parent, per Web Linking (RFC5899).java.net.URISyntaxException - Thrown if the textual representation of the relation
is not a registered relation, and is not a valid URI. All extension relations must
be in the form of a URI.public EmbeddedRepresentationSubEntity.Builder rel(java.net.URI rel)
rel - The relationship of the sub-entity to its parent, per Web Linking (RFC5899).public EmbeddedRepresentationSubEntity.Builder rel(Relation rel)
rel - The relationship of the sub-entity to its parent, per Web Linking (RFC5899).public EmbeddedRepresentationSubEntity.Builder rels(java.lang.String... rels) throws java.net.URISyntaxException
rels - The relationships of the sub-entity to its parent, per Web Linking (RFC5899).java.net.URISyntaxException - Thrown if the textual representation of the relation
is not a registered relation, and is not a valid URI. All extension relations must
be in the form of a URI.public EmbeddedRepresentationSubEntity.Builder rels(java.net.URI... rels)
rels - The relationships of the sub-entity to its parent, per Web Linking (RFC5899).public EmbeddedRepresentationSubEntity.Builder rels(Relation... rels)
rels - The relationships of the sub-entity to its parent, per Web Linking (RFC5899).public void clear()
clear in interface Builder<EmbeddedRepresentationSubEntity>public EmbeddedRepresentationSubEntity build()
build in interface Builder<EmbeddedRepresentationSubEntity>Copyright © 2017. All Rights Reserved.