Class RecurringOrderExpiresAtSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<RecurringOrderExpiresAtSetMessagePayload>
public class RecurringOrderExpiresAtSetMessagePayloadBuilder
extends Object
implements Builder<RecurringOrderExpiresAtSetMessagePayload>
RecurringOrderExpiresAtSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RecurringOrderExpiresAtSetMessagePayload recurringOrderExpiresAtSetMessagePayload = RecurringOrderExpiresAtSetMessagePayload.builder()
.newExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.oldExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RecurringOrderExpiresAtSetMessagePayload with checking for non-null required valuesbuilds RecurringOrderExpiresAtSetMessagePayload without checking for non-null required valuesExpiration date and time of the Recurring Order after the Set Expires At update action.Expiration date and time of the Recurring Order before the Set Expires At update action.newExpiresAt
(ZonedDateTime newExpiresAt) Expiration date and time of the Recurring Order after the Set Expires At update action.of()
factory method for an instance of RecurringOrderExpiresAtSetMessagePayloadBuilderof
(RecurringOrderExpiresAtSetMessagePayload template) create builder for RecurringOrderExpiresAtSetMessagePayload instanceoldExpiresAt
(ZonedDateTime oldExpiresAt) Expiration date and time of the Recurring Order before the Set Expires At update action.
-
Constructor Details
-
RecurringOrderExpiresAtSetMessagePayloadBuilder
public RecurringOrderExpiresAtSetMessagePayloadBuilder()
-
-
Method Details
-
newExpiresAt
Expiration date and time of the Recurring Order after the Set Expires At update action.
- Parameters:
newExpiresAt
- value to be set- Returns:
- Builder
-
oldExpiresAt
Expiration date and time of the Recurring Order before the Set Expires At update action.
- Parameters:
oldExpiresAt
- value to be set- Returns:
- Builder
-
getNewExpiresAt
Expiration date and time of the Recurring Order after the Set Expires At update action.
- Returns:
- newExpiresAt
-
getOldExpiresAt
Expiration date and time of the Recurring Order before the Set Expires At update action.
- Returns:
- oldExpiresAt
-
build
builds RecurringOrderExpiresAtSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<RecurringOrderExpiresAtSetMessagePayload>
- Returns:
- RecurringOrderExpiresAtSetMessagePayload
-
buildUnchecked
builds RecurringOrderExpiresAtSetMessagePayload without checking for non-null required values- Returns:
- RecurringOrderExpiresAtSetMessagePayload
-
of
factory method for an instance of RecurringOrderExpiresAtSetMessagePayloadBuilder- Returns:
- builder
-
of
public static RecurringOrderExpiresAtSetMessagePayloadBuilder of(RecurringOrderExpiresAtSetMessagePayload template) create builder for RecurringOrderExpiresAtSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-