Interface RecurringOrderSetStartsAtAction
- All Superinterfaces:
RecurringOrderUpdateAction
To set the start date and time, the Recurring Order must not have been started yet. Setting the start date and time generates the RecurringOrderStartsAtSet Message.
Example to create an instance using the builder pattern
RecurringOrderSetStartsAtAction recurringOrderSetStartsAtAction = RecurringOrderSetStartsAtAction.builder()
.startsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for RecurringOrderSetStartsAtAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for RecurringOrderSetStartsAtActionbuilder
(RecurringOrderSetStartsAtAction template) create builder for RecurringOrderSetStartsAtAction instancecopyDeep()
deepCopy
(RecurringOrderSetStartsAtAction template) factory method to create a deep copy of RecurringOrderSetStartsAtAction@NotNull ZonedDateTime
Date and time (UTC) the Recurring Order should be started.of()
factory methodof
(RecurringOrderSetStartsAtAction template) factory method to create a shallow copy RecurringOrderSetStartsAtActionvoid
setStartsAt
(ZonedDateTime startsAt) Date and time (UTC) the Recurring Order should be started.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderSetStartsAtAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.recurring_order.RecurringOrderUpdateAction
getAction, withRecurringOrderUpdateAction
-
Field Details
-
SET_STARTS_AT
discriminator value for RecurringOrderSetStartsAtAction- See Also:
-
-
Method Details
-
getStartsAt
Date and time (UTC) the Recurring Order should be started. The date and time must be in the future.
- Returns:
- startsAt
-
setStartsAt
Date and time (UTC) the Recurring Order should be started. The date and time must be in the future.
- Parameters:
startsAt
- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderSetStartsAtAction
-
of
factory method to create a shallow copy RecurringOrderSetStartsAtAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderSetStartsAtAction copyDeep()- Specified by:
copyDeep
in interfaceRecurringOrderUpdateAction
-
deepCopy
@Nullable static RecurringOrderSetStartsAtAction deepCopy(@Nullable RecurringOrderSetStartsAtAction template) factory method to create a deep copy of RecurringOrderSetStartsAtAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderSetStartsAtAction- Returns:
- builder
-
builder
create builder for RecurringOrderSetStartsAtAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderSetStartsAtAction
default <T> T withRecurringOrderSetStartsAtAction(Function<RecurringOrderSetStartsAtAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderSetStartsAtAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-