Class StandalonePriceValidUntilSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceValidUntilSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceValidUntilSetMessagePayload>
public class StandalonePriceValidUntilSetMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceValidUntilSetMessagePayload>
StandalonePriceValidUntilSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceValidUntilSetMessagePayload standalonePriceValidUntilSetMessagePayload = StandalonePriceValidUntilSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceValidUntilSetMessagePayload with checking for non-null required valuesbuilds StandalonePriceValidUntilSetMessagePayload without checking for non-null required valuesValue of StandalonePricevalidUntil
before the Set Valid Until update action.Value of StandalonePricevalidUntil
after the Set Valid Until update action.of()
factory method for an instance of StandalonePriceValidUntilSetMessagePayloadBuilderof
(StandalonePriceValidUntilSetMessagePayload template) create builder for StandalonePriceValidUntilSetMessagePayload instancepreviousValidUntil
(ZonedDateTime previousValidUntil) Value of StandalonePricevalidUntil
before the Set Valid Until update action.validUntil
(ZonedDateTime validUntil) Value of StandalonePricevalidUntil
after the Set Valid Until update action.
-
Constructor Details
-
StandalonePriceValidUntilSetMessagePayloadBuilder
public StandalonePriceValidUntilSetMessagePayloadBuilder()
-
-
Method Details
-
validUntil
public StandalonePriceValidUntilSetMessagePayloadBuilder validUntil(@Nullable ZonedDateTime validUntil) Value of StandalonePrice
validUntil
after the Set Valid Until update action.- Parameters:
validUntil
- value to be set- Returns:
- Builder
-
previousValidUntil
public StandalonePriceValidUntilSetMessagePayloadBuilder previousValidUntil(@Nullable ZonedDateTime previousValidUntil) Value of StandalonePrice
validUntil
before the Set Valid Until update action.- Parameters:
previousValidUntil
- value to be set- Returns:
- Builder
-
getValidUntil
Value of StandalonePrice
validUntil
after the Set Valid Until update action.- Returns:
- validUntil
-
getPreviousValidUntil
Value of StandalonePrice
validUntil
before the Set Valid Until update action.- Returns:
- previousValidUntil
-
build
builds StandalonePriceValidUntilSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceValidUntilSetMessagePayload>
- Returns:
- StandalonePriceValidUntilSetMessagePayload
-
buildUnchecked
builds StandalonePriceValidUntilSetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceValidUntilSetMessagePayload
-
of
factory method for an instance of StandalonePriceValidUntilSetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceValidUntilSetMessagePayloadBuilder of(StandalonePriceValidUntilSetMessagePayload template) create builder for StandalonePriceValidUntilSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-