Class RecurringOrderStartsAtSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.RecurringOrderStartsAtSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<RecurringOrderStartsAtSetMessagePayload>
public class RecurringOrderStartsAtSetMessagePayloadBuilder
extends Object
implements Builder<RecurringOrderStartsAtSetMessagePayload>
RecurringOrderStartsAtSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RecurringOrderStartsAtSetMessagePayload recurringOrderStartsAtSetMessagePayload = RecurringOrderStartsAtSetMessagePayload.builder()
.startsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.oldStartsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RecurringOrderStartsAtSetMessagePayload with checking for non-null required valuesbuilds RecurringOrderStartsAtSetMessagePayload without checking for non-null required valuesStart date and time of the Recurring Order before the Set Starts At update action.Start date and time of the Recurring Order after the Set Starts At update action.of()
factory method for an instance of RecurringOrderStartsAtSetMessagePayloadBuilderof
(RecurringOrderStartsAtSetMessagePayload template) create builder for RecurringOrderStartsAtSetMessagePayload instanceoldStartsAt
(ZonedDateTime oldStartsAt) Start date and time of the Recurring Order before the Set Starts At update action.startsAt
(ZonedDateTime startsAt) Start date and time of the Recurring Order after the Set Starts At update action.
-
Constructor Details
-
RecurringOrderStartsAtSetMessagePayloadBuilder
public RecurringOrderStartsAtSetMessagePayloadBuilder()
-
-
Method Details
-
startsAt
Start date and time of the Recurring Order after the Set Starts At update action.
- Parameters:
startsAt
- value to be set- Returns:
- Builder
-
oldStartsAt
Start date and time of the Recurring Order before the Set Starts At update action.
- Parameters:
oldStartsAt
- value to be set- Returns:
- Builder
-
getStartsAt
Start date and time of the Recurring Order after the Set Starts At update action.
- Returns:
- startsAt
-
getOldStartsAt
Start date and time of the Recurring Order before the Set Starts At update action.
- Returns:
- oldStartsAt
-
build
builds RecurringOrderStartsAtSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<RecurringOrderStartsAtSetMessagePayload>
- Returns:
- RecurringOrderStartsAtSetMessagePayload
-
buildUnchecked
builds RecurringOrderStartsAtSetMessagePayload without checking for non-null required values- Returns:
- RecurringOrderStartsAtSetMessagePayload
-
of
factory method for an instance of RecurringOrderStartsAtSetMessagePayloadBuilder- Returns:
- builder
-
of
public static RecurringOrderStartsAtSetMessagePayloadBuilder of(RecurringOrderStartsAtSetMessagePayload template) create builder for RecurringOrderStartsAtSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-