Interface RecurrencePolicyDraft
- All Superinterfaces:
Draft<RecurrencePolicyDraft>
RecurrencePolicyDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RecurrencePolicyDraft recurrencePolicyDraft = RecurrencePolicyDraft.builder()
.key("{key}")
.schedule(scheduleBuilder -> scheduleBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecurrencePolicyDraftBuilder
builder()
builder factory method for RecurrencePolicyDraftstatic RecurrencePolicyDraftBuilder
builder
(RecurrencePolicyDraft template) create builder for RecurrencePolicyDraft instancecopyDeep()
static RecurrencePolicyDraft
deepCopy
(RecurrencePolicyDraft template) factory method to create a deep copy of RecurrencePolicyDraft@Valid LocalizedString
Description of the RecurrencePolicy.@NotNull String
getKey()
User-defined unique identifier for the RecurrencePolicy.@Valid LocalizedString
getName()
Name of the RecurrencePolicy.@NotNull @Valid RecurrencePolicyScheduleDraft
Schedule where the recurrence is defined.static RecurrencePolicyDraft
of()
factory methodstatic RecurrencePolicyDraft
of
(RecurrencePolicyDraft template) factory method to create a shallow copy RecurrencePolicyDraftvoid
setDescription
(LocalizedString description) Description of the RecurrencePolicy.void
User-defined unique identifier for the RecurrencePolicy.void
setName
(LocalizedString name) Name of the RecurrencePolicy.void
setSchedule
(RecurrencePolicyScheduleDraft schedule) Schedule where the recurrence is defined.static com.fasterxml.jackson.core.type.TypeReference<RecurrencePolicyDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getKey
User-defined unique identifier for the RecurrencePolicy.
- Returns:
- key
-
getName
Name of the RecurrencePolicy.
- Returns:
- name
-
getDescription
Description of the RecurrencePolicy.
- Returns:
- description
-
getSchedule
Schedule where the recurrence is defined.
- Returns:
- schedule
-
setKey
User-defined unique identifier for the RecurrencePolicy.
- Parameters:
key
- value to be set
-
setName
Name of the RecurrencePolicy.
- Parameters:
name
- value to be set
-
setDescription
Description of the RecurrencePolicy.
- Parameters:
description
- value to be set
-
setSchedule
Schedule where the recurrence is defined.
- Parameters:
schedule
- value to be set
-
of
factory method- Returns:
- instance of RecurrencePolicyDraft
-
of
factory method to create a shallow copy RecurrencePolicyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurrencePolicyDraft copyDeep() -
deepCopy
factory method to create a deep copy of RecurrencePolicyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurrencePolicyDraft- Returns:
- builder
-
builder
create builder for RecurrencePolicyDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurrencePolicyDraft
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
-