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 RecurrencePolicyBuilderbuilder()builder factory method for RecurrencePolicystatic RecurrencePolicyBuilderbuilder(RecurrencePolicy template) create builder for RecurrencePolicy instancecopyDeep()static RecurrencePolicydeepCopy(RecurrencePolicy template) factory method to create a deep copy of RecurrencePolicy@NotNull ZonedDateTimeDate and time (UTC) the RecurrencePolicy was initially created.@Valid CreatedByIDs and references that created the RecurrencePolicy.@Valid LocalizedStringDescription of the RecurrencePolicy.@NotNull StringgetId()Unique identifier of the RecurrencePolicy.@NotNull StringgetKey()User-defined unique identifier of the RecurrencePolicy.@NotNull ZonedDateTimeDate and time (UTC) the RecurrencePolicy was last updated.@Valid LastModifiedByIDs and references that last modified the RecurrencePolicy.@Valid LocalizedStringgetName()Name of the RecurrencePolicy.@NotNull @Valid RecurrencePolicyScheduleSchedule of the RecurrencePolicy.@NotNull LongCurrent version of the RecurrencePolicy.static RecurrencePolicyof()factory methodstatic RecurrencePolicyof(RecurrencePolicy template) factory method to create a shallow copy RecurrencePolicyvoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the RecurrencePolicy was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the RecurrencePolicy.voidsetDescription(LocalizedString description) Description of the RecurrencePolicy.voidUnique identifier of the RecurrencePolicy.voidUser-defined unique identifier of the RecurrencePolicy.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the RecurrencePolicy was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the RecurrencePolicy.voidsetName(LocalizedString name) Name of the RecurrencePolicy.voidsetSchedule(RecurrencePolicySchedule schedule) Schedule of the RecurrencePolicy.voidsetVersion(Long version) Current version of the RecurrencePolicy.static com.fasterxml.jackson.core.type.TypeReference<RecurrencePolicy>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithRecurrencePolicy(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:
getIdin interfaceBaseResource- Returns:
- id
-
getVersion
Current version of the RecurrencePolicy.
- Specified by:
getVersionin 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:
getCreatedAtin 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:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the RecurrencePolicy.
- Returns:
- lastModifiedBy
-
setId
Unique identifier of the RecurrencePolicy.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the RecurrencePolicy.
- Specified by:
setVersionin 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:
setCreatedAtin 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:
setLastModifiedAtin 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:
copyDeepin 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
-