public class UrlBuilder extends Object
Constructor and Description |
---|
UrlBuilder(Url model) |
Modifier and Type | Method and Description |
---|---|
Url |
build()
Build Url instance.
|
UrlBuilder |
category(EnumWithCustomOfUrlCategory category)
Set Url.category and return builder.
|
UrlBuilder |
href(String href)
Set Url.href and return builder.
|
UrlBuilder |
preferred(Boolean preferred)
Set Url.preferred and return builder.
|
public UrlBuilder(Url model)
public Url build()
public UrlBuilder category(EnumWithCustomOfUrlCategory category)
category
- Url category.public UrlBuilder preferred(Boolean preferred)
preferred
- Defines whether url is preferred.public UrlBuilder href(String href)
href
- URL.Copyright © 2020. All rights reserved.