Class StandalonePriceActiveChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceActiveChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceActiveChangedMessagePayload>
public class StandalonePriceActiveChangedMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceActiveChangedMessagePayload>
StandalonePriceActiveChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceActiveChangedMessagePayload standalonePriceActiveChangedMessagePayload = StandalonePriceActiveChangedMessagePayload.builder()
.active(true)
.oldActive(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue of theactive
field of the StandalonePrice after the Change Active update action.build()
builds StandalonePriceActiveChangedMessagePayload with checking for non-null required valuesbuilds StandalonePriceActiveChangedMessagePayload without checking for non-null required valuesValue of theactive
field of the StandalonePrice after the Change Active update action.Value of theactive
field of the StandalonePrice before the Change Active update action.of()
factory method for an instance of StandalonePriceActiveChangedMessagePayloadBuilderof
(StandalonePriceActiveChangedMessagePayload template) create builder for StandalonePriceActiveChangedMessagePayload instanceValue of theactive
field of the StandalonePrice before the Change Active update action.
-
Constructor Details
-
StandalonePriceActiveChangedMessagePayloadBuilder
public StandalonePriceActiveChangedMessagePayloadBuilder()
-
-
Method Details
-
active
Value of the
active
field of the StandalonePrice after the Change Active update action.- Parameters:
active
- value to be set- Returns:
- Builder
-
oldActive
Value of the
active
field of the StandalonePrice before the Change Active update action.- Parameters:
oldActive
- value to be set- Returns:
- Builder
-
getActive
Value of the
active
field of the StandalonePrice after the Change Active update action.- Returns:
- active
-
getOldActive
Value of the
active
field of the StandalonePrice before the Change Active update action.- Returns:
- oldActive
-
build
builds StandalonePriceActiveChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceActiveChangedMessagePayload>
- Returns:
- StandalonePriceActiveChangedMessagePayload
-
buildUnchecked
builds StandalonePriceActiveChangedMessagePayload without checking for non-null required values- Returns:
- StandalonePriceActiveChangedMessagePayload
-
of
factory method for an instance of StandalonePriceActiveChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceActiveChangedMessagePayloadBuilder of(StandalonePriceActiveChangedMessagePayload template) create builder for StandalonePriceActiveChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-