public static interface Link.Builder
Link
instances.Modifier and Type | Method and Description |
---|---|
Link |
build()
Build the link.
|
Link.Builder |
deprecation(java.lang.String deprecationURI) |
Link.Builder |
deprecation(java.net.URI deprecation) |
Link.Builder |
hreflang(java.lang.String hreflang) |
Link.Builder |
name(java.lang.String name) |
Link.Builder |
profile(java.lang.String profileURI) |
Link.Builder |
profile(java.net.URI profile) |
Link.Builder |
templated(boolean templated) |
Link.Builder |
title(java.lang.String title) |
Link.Builder |
type(MediaType mediaType) |
Link.Builder templated(boolean templated)
templated
- Whether the URI is templatedLink.isTemplated()
Link.Builder profile(@Nullable java.net.URI profile)
profile
- The profile URILink.getProfile()
Link.Builder profile(@Nullable java.lang.String profileURI)
profileURI
- The profile URILink.getProfile()
Link.Builder deprecation(@Nullable java.net.URI deprecation)
deprecation
- The deprecation URILink.getDeprecation()
Link.Builder deprecation(@Nullable java.lang.String deprecationURI)
deprecationURI
- The deprecation URILink.getDeprecation()
Link.Builder title(@Nullable java.lang.String title)
title
- The title of the linkLink.getTitle()
Link.Builder name(@Nullable java.lang.String name)
name
- The name of the linkLink.getName()
Link.Builder hreflang(@Nullable java.lang.String hreflang)
hreflang
- The language of the linkLink.getHreflang()
Link.Builder type(@Nullable MediaType mediaType)
mediaType
- The type of the URILink.getType()