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