Class StandalonePriceChangeActiveActionBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceChangeActiveActionBuilder
- All Implemented Interfaces:
Builder<StandalonePriceChangeActiveAction>
public class StandalonePriceChangeActiveActionBuilder
extends Object
implements Builder<StandalonePriceChangeActiveAction>
StandalonePriceChangeActiveActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceChangeActiveAction standalonePriceChangeActiveAction = StandalonePriceChangeActiveAction.builder()
.active(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNew value to set for theactive
field of the StandalonePrice.build()
builds StandalonePriceChangeActiveAction with checking for non-null required valuesbuilds StandalonePriceChangeActiveAction without checking for non-null required valuesNew value to set for theactive
field of the StandalonePrice.of()
factory method for an instance of StandalonePriceChangeActiveActionBuilderof
(StandalonePriceChangeActiveAction template) create builder for StandalonePriceChangeActiveAction instance
-
Constructor Details
-
StandalonePriceChangeActiveActionBuilder
public StandalonePriceChangeActiveActionBuilder()
-
-
Method Details
-
active
New value to set for the
active
field of the StandalonePrice.- Parameters:
active
- value to be set- Returns:
- Builder
-
getActive
New value to set for the
active
field of the StandalonePrice.- Returns:
- active
-
build
builds StandalonePriceChangeActiveAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceChangeActiveAction>
- Returns:
- StandalonePriceChangeActiveAction
-
buildUnchecked
builds StandalonePriceChangeActiveAction without checking for non-null required values- Returns:
- StandalonePriceChangeActiveAction
-
of
factory method for an instance of StandalonePriceChangeActiveActionBuilder- Returns:
- builder
-
of
public static StandalonePriceChangeActiveActionBuilder of(StandalonePriceChangeActiveAction template) create builder for StandalonePriceChangeActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-