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 RecurrencePolicyDraftBuilderbuilder()builder factory method for RecurrencePolicyDraftstatic RecurrencePolicyDraftBuilderbuilder(RecurrencePolicyDraft template) create builder for RecurrencePolicyDraft instancecopyDeep()static RecurrencePolicyDraftdeepCopy(RecurrencePolicyDraft template) factory method to create a deep copy of RecurrencePolicyDraft@Valid LocalizedStringDescription of the RecurrencePolicy.@NotNull StringgetKey()User-defined unique identifier for the RecurrencePolicy.@Valid LocalizedStringgetName()Name of the RecurrencePolicy.@NotNull @Valid RecurrencePolicyScheduleDraftSchedule where the recurrence is defined.static RecurrencePolicyDraftof()factory methodstatic RecurrencePolicyDraftof(RecurrencePolicyDraft template) factory method to create a shallow copy RecurrencePolicyDraftvoidsetDescription(LocalizedString description) Description of the RecurrencePolicy.voidUser-defined unique identifier for the RecurrencePolicy.voidsetName(LocalizedString name) Name of the RecurrencePolicy.voidsetSchedule(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> Taccessor 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
-