@Introspected public class DefaultLink extends Object implements Link, Link.Builder
Link
.Link.Builder
Modifier | Constructor and Description |
---|---|
protected |
DefaultLink(URI uri) |
Modifier and Type | Method and Description |
---|---|
Link |
build()
Build the link.
|
Link.Builder |
deprecation(URI deprecation) |
Optional<URI> |
getDeprecation() |
URI |
getHref() |
Optional<String> |
getHreflang() |
Optional<String> |
getName() |
Optional<URI> |
getProfile() |
Optional<String> |
getTitle() |
Optional<MediaType> |
getType() |
Link.Builder |
hreflang(String hreflang) |
boolean |
isTemplated() |
Link.Builder |
name(String name) |
Link.Builder |
profile(URI profile) |
Link.Builder |
templated(boolean templated) |
Link.Builder |
title(String title) |
Link.Builder |
type(MediaType mediaType) |
protected DefaultLink(URI uri)
uri
- The URIpublic URI getHref()
public Link.Builder templated(boolean templated)
templated
in interface Link.Builder
templated
- Whether the URI is templatedLink.isTemplated()
public Link.Builder profile(URI profile)
profile
in interface Link.Builder
profile
- The profile URILink.getProfile()
public Link.Builder deprecation(URI deprecation)
deprecation
in interface Link.Builder
deprecation
- The deprecation URILink.getDeprecation()
public Link.Builder title(String title)
title
in interface Link.Builder
title
- The title of the linkLink.getTitle()
public Link.Builder name(String name)
name
in interface Link.Builder
name
- The name of the linkLink.getName()
public Link.Builder hreflang(String hreflang)
hreflang
in interface Link.Builder
hreflang
- The language of the linkLink.getHreflang()
public Link.Builder type(MediaType mediaType)
type
in interface Link.Builder
mediaType
- The type of the URILink.getType()
public boolean isTemplated()
isTemplated
in interface Link
public Optional<URI> getDeprecation()
getDeprecation
in interface Link
public Optional<URI> getProfile()
getProfile
in interface Link
public Optional<String> getHreflang()
getHreflang
in interface Link
public Link build()
Link.Builder
build
in interface Link.Builder
Link