Class StandalonePriceKeySetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceKeySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceKeySetMessagePayload>
public class StandalonePriceKeySetMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceKeySetMessagePayload>
StandalonePriceKeySetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceKeySetMessagePayload standalonePriceKeySetMessagePayload = StandalonePriceKeySetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceKeySetMessagePayload with checking for non-null required valuesbuilds StandalonePriceKeySetMessagePayload without checking for non-null required valuesgetKey()
key
value of the StandalonePrice after the Set Key update action.key
value of the StandalonePrice before the Set Key update action.key
value of the StandalonePrice after the Set Key update action.of()
factory method for an instance of StandalonePriceKeySetMessagePayloadBuilderof
(StandalonePriceKeySetMessagePayload template) create builder for StandalonePriceKeySetMessagePayload instancekey
value of the StandalonePrice before the Set Key update action.
-
Constructor Details
-
StandalonePriceKeySetMessagePayloadBuilder
public StandalonePriceKeySetMessagePayloadBuilder()
-
-
Method Details
-
key
key
value of the StandalonePrice after the Set Key update action.- Parameters:
key
- value to be set- Returns:
- Builder
-
oldKey
key
value of the StandalonePrice before the Set Key update action.- Parameters:
oldKey
- value to be set- Returns:
- Builder
-
getKey
key
value of the StandalonePrice after the Set Key update action.- Returns:
- key
-
getOldKey
key
value of the StandalonePrice before the Set Key update action.- Returns:
- oldKey
-
build
builds StandalonePriceKeySetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceKeySetMessagePayload>
- Returns:
- StandalonePriceKeySetMessagePayload
-
buildUnchecked
builds StandalonePriceKeySetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceKeySetMessagePayload
-
of
factory method for an instance of StandalonePriceKeySetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceKeySetMessagePayloadBuilder of(StandalonePriceKeySetMessagePayload template) create builder for StandalonePriceKeySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-