Class StandalonePriceSetValidFromAndUntilActionBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceSetValidFromAndUntilActionBuilder
- All Implemented Interfaces:
Builder<StandalonePriceSetValidFromAndUntilAction>
public class StandalonePriceSetValidFromAndUntilActionBuilder
extends Object
implements Builder<StandalonePriceSetValidFromAndUntilAction>
StandalonePriceSetValidFromAndUntilActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceSetValidFromAndUntilAction standalonePriceSetValidFromAndUntilAction = StandalonePriceSetValidFromAndUntilAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceSetValidFromAndUntilAction with checking for non-null required valuesbuilds StandalonePriceSetValidFromAndUntilAction without checking for non-null required valuesValue to set.Value to set.of()
factory method for an instance of StandalonePriceSetValidFromAndUntilActionBuilderof
(StandalonePriceSetValidFromAndUntilAction template) create builder for StandalonePriceSetValidFromAndUntilAction instancevalidFrom
(ZonedDateTime validFrom) Value to set.validUntil
(ZonedDateTime validUntil) Value to set.
-
Constructor Details
-
StandalonePriceSetValidFromAndUntilActionBuilder
public StandalonePriceSetValidFromAndUntilActionBuilder()
-
-
Method Details
-
validFrom
public StandalonePriceSetValidFromAndUntilActionBuilder validFrom(@Nullable ZonedDateTime validFrom) Value to set. If empty, any existing value is removed.
- Parameters:
validFrom
- value to be set- Returns:
- Builder
-
validUntil
public StandalonePriceSetValidFromAndUntilActionBuilder validUntil(@Nullable ZonedDateTime validUntil) Value to set. If empty, any existing value is removed.
- Parameters:
validUntil
- value to be set- Returns:
- Builder
-
getValidFrom
Value to set. If empty, any existing value is removed.
- Returns:
- validFrom
-
getValidUntil
Value to set. If empty, any existing value is removed.
- Returns:
- validUntil
-
build
builds StandalonePriceSetValidFromAndUntilAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceSetValidFromAndUntilAction>
- Returns:
- StandalonePriceSetValidFromAndUntilAction
-
buildUnchecked
builds StandalonePriceSetValidFromAndUntilAction without checking for non-null required values- Returns:
- StandalonePriceSetValidFromAndUntilAction
-
of
factory method for an instance of StandalonePriceSetValidFromAndUntilActionBuilder- Returns:
- builder
-
of
public static StandalonePriceSetValidFromAndUntilActionBuilder of(StandalonePriceSetValidFromAndUntilAction template) create builder for StandalonePriceSetValidFromAndUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-