Interface RecurrencePolicy
- All Superinterfaces:
BaseResource
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()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecurrencePolicyBuilder
builder()
builder factory method for RecurrencePolicystatic RecurrencePolicyBuilder
builder
(RecurrencePolicy template) create builder for RecurrencePolicy instancecopyDeep()
static RecurrencePolicy
deepCopy
(RecurrencePolicy template) factory method to create a deep copy of RecurrencePolicy@NotNull ZonedDateTime
Date and time (UTC) the RecurrencePolicy was initially created.@Valid CreatedBy
IDs and references that created the RecurrencePolicy.@Valid LocalizedString
Description of the RecurrencePolicy.@NotNull String
getId()
Unique identifier of the RecurrencePolicy.@NotNull String
getKey()
User-defined unique identifier of the RecurrencePolicy.@NotNull ZonedDateTime
Date and time (UTC) the RecurrencePolicy was last updated.@Valid LastModifiedBy
IDs and references that last modified the RecurrencePolicy.@Valid LocalizedString
getName()
Name of the RecurrencePolicy.@NotNull @Valid RecurrencePolicySchedule
Schedule of the RecurrencePolicy.@NotNull Long
Current version of the RecurrencePolicy.static RecurrencePolicy
of()
factory methodstatic RecurrencePolicy
of
(RecurrencePolicy template) factory method to create a shallow copy RecurrencePolicyvoid
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the RecurrencePolicy was initially created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the RecurrencePolicy.void
setDescription
(LocalizedString description) Description of the RecurrencePolicy.void
Unique identifier of the RecurrencePolicy.void
User-defined unique identifier of the RecurrencePolicy.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the RecurrencePolicy was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the RecurrencePolicy.void
setName
(LocalizedString name) Name of the RecurrencePolicy.void
setSchedule
(RecurrencePolicySchedule schedule) Schedule of the RecurrencePolicy.void
setVersion
(Long version) Current version of the RecurrencePolicy.static com.fasterxml.jackson.core.type.TypeReference<RecurrencePolicy>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRecurrencePolicy
(Function<RecurrencePolicy, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
-
Method Details
-
getId
Unique identifier of the RecurrencePolicy.
- Specified by:
getId
in interfaceBaseResource
- Returns:
- id
-
getVersion
Current version of the RecurrencePolicy.
- Specified by:
getVersion
in interfaceBaseResource
- Returns:
- version
-
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
-
getCreatedAt
Date and time (UTC) the RecurrencePolicy was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getCreatedBy
IDs and references that created the RecurrencePolicy.
- Returns:
- createdBy
-
getLastModifiedAt
Date and time (UTC) the RecurrencePolicy was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the RecurrencePolicy.
- Returns:
- lastModifiedBy
-
setId
Unique identifier of the RecurrencePolicy.
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the RecurrencePolicy.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setKey
User-defined unique identifier of 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 of the RecurrencePolicy.
- Parameters:
schedule
- value to be set
-
setCreatedAt
Date and time (UTC) the RecurrencePolicy was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setCreatedBy
IDs and references that created the RecurrencePolicy.
- Parameters:
createdBy
- value to be set
-
setLastModifiedAt
Date and time (UTC) the RecurrencePolicy was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
IDs and references that last modified the RecurrencePolicy.
- Parameters:
lastModifiedBy
- value to be set
-
of
factory method- Returns:
- instance of RecurrencePolicy
-
of
factory method to create a shallow copy RecurrencePolicy- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurrencePolicy copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
-
deepCopy
factory method to create a deep copy of RecurrencePolicy- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurrencePolicy- Returns:
- builder
-
builder
create builder for RecurrencePolicy instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurrencePolicy
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
-