Class StandalonePriceValidFromSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceValidFromSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceValidFromSetMessagePayload>
public class StandalonePriceValidFromSetMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceValidFromSetMessagePayload>
StandalonePriceValidFromSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceValidFromSetMessagePayload standalonePriceValidFromSetMessagePayload = StandalonePriceValidFromSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceValidFromSetMessagePayload with checking for non-null required valuesbuilds StandalonePriceValidFromSetMessagePayload without checking for non-null required valuesof()
factory method for an instance of StandalonePriceValidFromSetMessagePayloadBuilderof
(StandalonePriceValidFromSetMessagePayload template) create builder for StandalonePriceValidFromSetMessagePayload instancepreviousValidFrom
(ZonedDateTime previousValidFrom) validFrom
(ZonedDateTime validFrom)
-
Constructor Details
-
StandalonePriceValidFromSetMessagePayloadBuilder
public StandalonePriceValidFromSetMessagePayloadBuilder()
-
-
Method Details
-
validFrom
public StandalonePriceValidFromSetMessagePayloadBuilder validFrom(@Nullable ZonedDateTime validFrom) Value of StandalonePrice
validFrom
after the Set Valid From update action.- Parameters:
validFrom
- value to be set- Returns:
- Builder
-
previousValidFrom
public StandalonePriceValidFromSetMessagePayloadBuilder previousValidFrom(@Nullable ZonedDateTime previousValidFrom) Value of StandalonePrice
validFrom
before the Set Valid From update action.- Parameters:
previousValidFrom
- value to be set- Returns:
- Builder
-
getValidFrom
Value of StandalonePrice
validFrom
after the Set Valid From update action.- Returns:
- validFrom
-
getPreviousValidFrom
Value of StandalonePrice
validFrom
before the Set Valid From update action.- Returns:
- previousValidFrom
-
build
builds StandalonePriceValidFromSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceValidFromSetMessagePayload>
- Returns:
- StandalonePriceValidFromSetMessagePayload
-
buildUnchecked
builds StandalonePriceValidFromSetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceValidFromSetMessagePayload
-
of
factory method for an instance of StandalonePriceValidFromSetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceValidFromSetMessagePayloadBuilder of(StandalonePriceValidFromSetMessagePayload template) create builder for StandalonePriceValidFromSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-