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