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