Class RecurrencePolicyBuilder
- All Implemented Interfaces:
Builder<RecurrencePolicy>
Example to create an instance using the builder pattern
RecurrencePolicy recurrencePolicy = RecurrencePolicy.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.key("{key}")
.schedule(scheduleBuilder -> scheduleBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RecurrencePolicy with checking for non-null required valuesbuilds RecurrencePolicy without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the RecurrencePolicy was initially created.IDs and references that created the RecurrencePolicy.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the RecurrencePolicy.description
(LocalizedString description) Description of the RecurrencePolicy.Description of the RecurrencePolicy.Date and time (UTC) the RecurrencePolicy was initially created.IDs and references that created the RecurrencePolicy.Description of the RecurrencePolicy.getId()
Unique identifier of the RecurrencePolicy.getKey()
User-defined unique identifier of the RecurrencePolicy.Date and time (UTC) the RecurrencePolicy was last updated.IDs and references that last modified the RecurrencePolicy.getName()
Name of the RecurrencePolicy.Schedule of the RecurrencePolicy.Current version of the RecurrencePolicy.Unique identifier of the RecurrencePolicy.User-defined unique identifier of the RecurrencePolicy.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the RecurrencePolicy was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the RecurrencePolicy.IDs and references that last modified the RecurrencePolicy.name
(LocalizedString name) Name of the RecurrencePolicy.Name of the RecurrencePolicy.static RecurrencePolicyBuilder
of()
factory method for an instance of RecurrencePolicyBuilderstatic RecurrencePolicyBuilder
of
(RecurrencePolicy template) create builder for RecurrencePolicy instanceschedule
(RecurrencePolicySchedule schedule) Schedule of the RecurrencePolicy.schedule
(Function<RecurrencePolicyScheduleBuilder, Builder<? extends RecurrencePolicySchedule>> builder) Schedule of the RecurrencePolicy.Current version of the RecurrencePolicy.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the RecurrencePolicy.Description of the RecurrencePolicy.IDs and references that last modified the RecurrencePolicy.Name of the RecurrencePolicy.
-
Constructor Details
-
RecurrencePolicyBuilder
public RecurrencePolicyBuilder()
-
-
Method Details
-
id
Unique identifier of the RecurrencePolicy.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the RecurrencePolicy.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the RecurrencePolicy was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the RecurrencePolicy was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the RecurrencePolicy.
- Parameters:
key
- value to be set- Returns:
- Builder
-
name
public RecurrencePolicyBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the RecurrencePolicy.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
Name of the RecurrencePolicy.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the RecurrencePolicy.
- Parameters:
name
- value to be set- Returns:
- Builder
-
description
public RecurrencePolicyBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Description of the RecurrencePolicy.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public RecurrencePolicyBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Description of the RecurrencePolicy.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Description of the RecurrencePolicy.
- Parameters:
description
- value to be set- Returns:
- Builder
-
schedule
Schedule of the RecurrencePolicy.
- Parameters:
schedule
- value to be set- Returns:
- Builder
-
schedule
public RecurrencePolicyBuilder schedule(Function<RecurrencePolicyScheduleBuilder, Builder<? extends RecurrencePolicySchedule>> builder) Schedule of the RecurrencePolicy.
- Parameters:
builder
- function to build the schedule value- Returns:
- Builder
-
createdBy
IDs and references that created the RecurrencePolicy.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the RecurrencePolicy.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the RecurrencePolicy.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
lastModifiedBy
public RecurrencePolicyBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the RecurrencePolicy.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public RecurrencePolicyBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the RecurrencePolicy.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the RecurrencePolicy.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the RecurrencePolicy.
- Returns:
- id
-
getVersion
Current version of the RecurrencePolicy.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the RecurrencePolicy was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the RecurrencePolicy was last updated.
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the RecurrencePolicy.
- Returns:
- key
-
getName
Name of the RecurrencePolicy.
- Returns:
- name
-
getDescription
Description of the RecurrencePolicy.
- Returns:
- description
-
getSchedule
Schedule of the RecurrencePolicy.
- Returns:
- schedule
-
getCreatedBy
IDs and references that created the RecurrencePolicy.
- Returns:
- createdBy
-
getLastModifiedBy
IDs and references that last modified the RecurrencePolicy.
- Returns:
- lastModifiedBy
-
build
builds RecurrencePolicy with checking for non-null required values- Specified by:
build
in interfaceBuilder<RecurrencePolicy>
- Returns:
- RecurrencePolicy
-
buildUnchecked
builds RecurrencePolicy without checking for non-null required values- Returns:
- RecurrencePolicy
-
of
factory method for an instance of RecurrencePolicyBuilder- Returns:
- builder
-
of
create builder for RecurrencePolicy instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-