Class SetAssetSourcesChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetAssetSourcesChangeBuilder
- All Implemented Interfaces:
Builder<SetAssetSourcesChange>
SetAssetSourcesChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetAssetSourcesChange setAssetSourcesChange = SetAssetSourcesChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.asset(assetBuilder -> assetBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNextValue
(Function<AssetSourceBuilder, AssetSource> builder) Value after the change.Value before the change.asset
(AssetChangeValue asset) Information about the updated Asset.Information about the updated Asset.build()
builds SetAssetSourcesChange with checking for non-null required valuesbuilds SetAssetSourcesChange without checking for non-null required valuesset the value to the changegetAsset()
Information about the updated Asset.value of change}Value after the change.Value before the change.nextValue
(AssetSource... nextValue) Value after the change.nextValue
(List<AssetSource> nextValue) Value after the change.static SetAssetSourcesChangeBuilder
of()
factory method for an instance of SetAssetSourcesChangeBuilderstatic SetAssetSourcesChangeBuilder
of
(SetAssetSourcesChange template) create builder for SetAssetSourcesChange instanceplusNextValue
(AssetSource... nextValue) Value after the change.Value after the change.plusPreviousValue
(AssetSource... previousValue) Value before the change.Value before the change.previousValue
(AssetSource... previousValue) Value before the change.previousValue
(List<AssetSource> previousValue) Value before the change.setNextValue
(Function<AssetSourceBuilder, AssetSource> builder) Value after the change.Value before the change.Information about the updated Asset.Value after the change.Value before the change.
-
Constructor Details
-
SetAssetSourcesChangeBuilder
public SetAssetSourcesChangeBuilder()
-
-
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
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public SetAssetSourcesChangeBuilder plusPreviousValue(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetAssetSourcesChangeBuilder withPreviousValue(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public SetAssetSourcesChangeBuilder addPreviousValue(Function<AssetSourceBuilder, AssetSource> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public SetAssetSourcesChangeBuilder setPreviousValue(Function<AssetSourceBuilder, AssetSource> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public SetAssetSourcesChangeBuilder plusNextValue(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetAssetSourcesChangeBuilder withNextValue(Function<AssetSourceBuilder, AssetSourceBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
asset
public SetAssetSourcesChangeBuilder asset(Function<AssetChangeValueBuilder, AssetChangeValueBuilder> builder) Information about the updated Asset.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
withAsset
public SetAssetSourcesChangeBuilder withAsset(Function<AssetChangeValueBuilder, AssetChangeValue> builder) Information about the updated Asset.
- Parameters:
builder
- function to build the asset value- Returns:
- Builder
-
asset
Information about the updated Asset.
- Parameters:
asset
- 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
-
getAsset
Information about the updated Asset.
- Returns:
- asset
-
build
builds SetAssetSourcesChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetAssetSourcesChange>
- Returns:
- SetAssetSourcesChange
-
buildUnchecked
builds SetAssetSourcesChange without checking for non-null required values- Returns:
- SetAssetSourcesChange
-
of
factory method for an instance of SetAssetSourcesChangeBuilder- Returns:
- builder
-
of
create builder for SetAssetSourcesChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-