Package io.micronaut.http.hateoas
Interface Link.Builder
- All Known Implementing Classes:
DefaultLink
- Enclosing interface:
- Link
public static interface Link.Builder
Build for creating
Link
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the link.deprecation
(@Nullable String deprecationURI) deprecation
(@Nullable URI deprecation) templated
(boolean templated)
-
Method Details
-
templated
- Parameters:
templated
- Whether the URI is templated- Returns:
- The builder
- See Also:
-
profile
- Parameters:
profile
- The profile URI- Returns:
- The builder
- See Also:
-
profile
- Parameters:
profileURI
- The profile URI- Returns:
- The builder
- See Also:
-
deprecation
- Parameters:
deprecation
- The deprecation URI- Returns:
- The builder
- See Also:
-
deprecation
- Parameters:
deprecationURI
- The deprecation URI- Returns:
- The builder
- See Also:
-
title
- Parameters:
title
- The title of the link- Returns:
- The builder
- See Also:
-
name
- Parameters:
name
- The name of the link- Returns:
- The builder
- See Also:
-
hreflang
- Parameters:
hreflang
- The language of the link- Returns:
- The builder
- See Also:
-
type
- Parameters:
mediaType
- The type of the URI- Returns:
- The builder
- See Also:
-
build
Link build()Build the link.- Returns:
- The
Link
-