Class SetTransactionCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetTransactionCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetTransactionCustomFieldChange>
public class SetTransactionCustomFieldChangeBuilder
extends Object
implements Builder<SetTransactionCustomFieldChange>
SetTransactionCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetTransactionCustomFieldChange setTransactionCustomFieldChange = SetTransactionCustomFieldChange.builder()
.change("{change}")
.transaction(transactionBuilder -> transactionBuilder)
.name("{name}")
.customTypeId("{customTypeId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetTransactionCustomFieldChange with checking for non-null required valuesbuilds SetTransactionCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId(String customTypeId) idof the referenced Type.value of change}idof the referenced Type.getName()Name of the Custom Field.Value after the change.Value before the change.Holds information about the updated Transaction.Name of the Custom Field.Value after the change.of()factory method for an instance of SetTransactionCustomFieldChangeBuilderof(SetTransactionCustomFieldChange template) create builder for SetTransactionCustomFieldChange instancepreviousValue(Object previousValue) Value before the change.transaction(TransactionChangeValue transaction) Holds information about the updated Transaction.Holds information about the updated Transaction.Holds information about the updated Transaction.
-
Constructor Details
-
SetTransactionCustomFieldChangeBuilder
public SetTransactionCustomFieldChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
transaction
public SetTransactionCustomFieldChangeBuilder transaction(Function<TransactionChangeValueBuilder, TransactionChangeValueBuilder> builder) Holds information about the updated Transaction.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
withTransaction
public SetTransactionCustomFieldChangeBuilder withTransaction(Function<TransactionChangeValueBuilder, TransactionChangeValue> builder) Holds information about the updated Transaction.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
transaction
Holds information about the updated Transaction.
- Parameters:
transaction- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
customTypeId
idof the referenced Type.- Parameters:
customTypeId- 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
-
getChange
value of change}- Returns:
- change
-
getTransaction
Holds information about the updated Transaction.
- Returns:
- transaction
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
idof the referenced Type.- Returns:
- customTypeId
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetTransactionCustomFieldChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetTransactionCustomFieldChange>- Returns:
- SetTransactionCustomFieldChange
-
buildUnchecked
builds SetTransactionCustomFieldChange without checking for non-null required values- Returns:
- SetTransactionCustomFieldChange
-
of
factory method for an instance of SetTransactionCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetTransactionCustomFieldChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-