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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StandalonePriceKeySetMessagePayload with checking for non-null required valuesbuilds StandalonePriceKeySetMessagePayload without checking for non-null required valuesgetKey()of()factory method for an instance of StandalonePriceKeySetMessagePayloadBuilderof(StandalonePriceKeySetMessagePayload template) create builder for StandalonePriceKeySetMessagePayload instance
-
Constructor Details
-
StandalonePriceKeySetMessagePayloadBuilder
public StandalonePriceKeySetMessagePayloadBuilder()
-
-
Method Details
-
key
keyvalue of the StandalonePrice after the Set Key update action.- Parameters:
key- value to be set- Returns:
- Builder
-
oldKey
keyvalue of the StandalonePrice before the Set Key update action.- Parameters:
oldKey- value to be set- Returns:
- Builder
-
getKey
keyvalue of the StandalonePrice after the Set Key update action.- Returns:
- key
-
getOldKey
keyvalue of the StandalonePrice before the Set Key update action.- Returns:
- oldKey
-
build
builds StandalonePriceKeySetMessagePayload with checking for non-null required values- Specified by:
buildin 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
-