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 ZoneDraftBuilder
builder()
builder factory method for ZoneDraftstatic ZoneDraftBuilder
create builder for ZoneDraft instancestatic ZoneDraft
factory 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 String
getName()
Name of the Zone.static ZoneDraft
of()
factory methodstatic ZoneDraft
factory method to create a shallow copy ZoneDraftvoid
setDescription
(String description) Description of the Zone.void
User-defined unique identifier for the Zone.void
setLocations
(Location... locations) List of locations that belong to the Zone.void
setLocations
(List<Location> locations) List of locations that belong to the Zone.void
Name of the Zone.static com.fasterxml.jackson.core.type.TypeReference<ZoneDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withZoneDraft
(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
-
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
-