Class RequestQuoteRenegotiationChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RequestQuoteRenegotiationChangeBuilder
- All Implemented Interfaces:
Builder<RequestQuoteRenegotiationChange>
public class RequestQuoteRenegotiationChangeBuilder
extends Object
implements Builder<RequestQuoteRenegotiationChange>
RequestQuoteRenegotiationChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RequestQuoteRenegotiationChange requestQuoteRenegotiationChange = RequestQuoteRenegotiationChange.builder()
.change("{change}")
.previousValue(QuoteState.PENDING)
.nextValue(QuoteState.PENDING)
.buyerComment("{buyerComment}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RequestQuoteRenegotiationChange with checking for non-null required valuesbuilds RequestQuoteRenegotiationChange without checking for non-null required valuesbuyerComment
(String buyerComment) Message from the Buyer regarding the Quote renegotiation request.set the value to the changeMessage from the Buyer regarding the Quote renegotiation request.value of change}Value after the change.Value before the change.nextValue
(QuoteState nextValue) Value after the change.of()
factory method for an instance of RequestQuoteRenegotiationChangeBuilderof
(RequestQuoteRenegotiationChange template) create builder for RequestQuoteRenegotiationChange instancepreviousValue
(QuoteState previousValue) Value before the change.
-
Constructor Details
-
RequestQuoteRenegotiationChangeBuilder
public RequestQuoteRenegotiationChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
buyerComment
Message from the Buyer regarding the Quote renegotiation request.
- Parameters:
buyerComment
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getBuyerComment
Message from the Buyer regarding the Quote renegotiation request.
- Returns:
- buyerComment
-
build
builds RequestQuoteRenegotiationChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RequestQuoteRenegotiationChange>
- Returns:
- RequestQuoteRenegotiationChange
-
buildUnchecked
builds RequestQuoteRenegotiationChange without checking for non-null required values- Returns:
- RequestQuoteRenegotiationChange
-
of
factory method for an instance of RequestQuoteRenegotiationChangeBuilder- Returns:
- builder
-
of
create builder for RequestQuoteRenegotiationChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-