Class StagedQuoteStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StagedQuoteStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StagedQuoteStateChangedMessagePayload>
public class StagedQuoteStateChangedMessagePayloadBuilder
extends Object
implements Builder<StagedQuoteStateChangedMessagePayload>
StagedQuoteStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteStateChangedMessagePayload stagedQuoteStateChangedMessagePayload = StagedQuoteStateChangedMessagePayload.builder()
.stagedQuoteState(StagedQuoteState.IN_PROGRESS)
.oldStagedQuoteState(StagedQuoteState.IN_PROGRESS)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedQuoteStateChangedMessagePayload with checking for non-null required valuesbuilds StagedQuoteStateChangedMessagePayload without checking for non-null required valuesState of the Staged Quote before the Change Staged Quote State update action.State of the Staged Quote after the Change Staged Quote State update action.of()
factory method for an instance of StagedQuoteStateChangedMessagePayloadBuilderof
(StagedQuoteStateChangedMessagePayload template) create builder for StagedQuoteStateChangedMessagePayload instanceoldStagedQuoteState
(StagedQuoteState oldStagedQuoteState) State of the Staged Quote before the Change Staged Quote State update action.stagedQuoteState
(StagedQuoteState stagedQuoteState) State of the Staged Quote after the Change Staged Quote State update action.
-
Constructor Details
-
StagedQuoteStateChangedMessagePayloadBuilder
public StagedQuoteStateChangedMessagePayloadBuilder()
-
-
Method Details
-
stagedQuoteState
public StagedQuoteStateChangedMessagePayloadBuilder stagedQuoteState(StagedQuoteState stagedQuoteState) State of the Staged Quote after the Change Staged Quote State update action.
- Parameters:
stagedQuoteState
- value to be set- Returns:
- Builder
-
oldStagedQuoteState
public StagedQuoteStateChangedMessagePayloadBuilder oldStagedQuoteState(StagedQuoteState oldStagedQuoteState) State of the Staged Quote before the Change Staged Quote State update action.
- Parameters:
oldStagedQuoteState
- value to be set- Returns:
- Builder
-
getStagedQuoteState
State of the Staged Quote after the Change Staged Quote State update action.
- Returns:
- stagedQuoteState
-
getOldStagedQuoteState
State of the Staged Quote before the Change Staged Quote State update action.
- Returns:
- oldStagedQuoteState
-
build
builds StagedQuoteStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedQuoteStateChangedMessagePayload>
- Returns:
- StagedQuoteStateChangedMessagePayload
-
buildUnchecked
builds StagedQuoteStateChangedMessagePayload without checking for non-null required values- Returns:
- StagedQuoteStateChangedMessagePayload
-
of
factory method for an instance of StagedQuoteStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static StagedQuoteStateChangedMessagePayloadBuilder of(StagedQuoteStateChangedMessagePayload template) create builder for StagedQuoteStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-