Interface ZoneDraft
ZoneDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneDraft zoneDraft = ZoneDraft.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneDraftBuilderbuilder()builder factory method for ZoneDraftstatic ZoneDraftBuildercreate builder for ZoneDraft instancecopyDeep()static ZoneDraftfactory method to create a deep copy of ZoneDraftDescription of the Zone.getKey()User-defined unique identifier for the Zone.List of locations that belong to the Zone.@NotNull StringgetName()Name of the Zone.static ZoneDraftof()factory methodstatic ZoneDraftfactory method to create a shallow copy ZoneDraftvoidsetDescription(String description) Description of the Zone.voidUser-defined unique identifier for the Zone.voidsetLocations(Location... locations) List of locations that belong to the Zone.voidsetLocations(List<Location> locations) List of locations that belong to the Zone.voidName of the Zone.static com.fasterxml.jackson.core.type.TypeReference<ZoneDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithZoneDraft(Function<ZoneDraft, T> helper) accessor map function
-
Method Details
-
getKey
String getKey()User-defined unique identifier for the Zone.
-
getName
Name of the Zone.
- Returns:
- name
-
getDescription
String getDescription()Description of the Zone.
- Returns:
- description
-
getLocations
List of locations that belong to the Zone.
- Returns:
- locations
-
setKey
User-defined unique identifier for the Zone.
- Parameters:
key- value to be set
-
setName
Name of the Zone.
- Parameters:
name- value to be set
-
setDescription
Description of the Zone.
- Parameters:
description- value to be set
-
setLocations
List of locations that belong to the Zone.
- Parameters:
locations- values to be set
-
setLocations
List of locations that belong to the Zone.
- Parameters:
locations- values to be set
-
of
factory method- Returns:
- instance of ZoneDraft
-
of
factory method to create a shallow copy ZoneDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ZoneDraft copyDeep() -
deepCopy
factory method to create a deep copy of ZoneDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ZoneDraft- Returns:
- builder
-
builder
create builder for ZoneDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withZoneDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-