Class ConcurrentModificationErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.ConcurrentModificationErrorBuilder
- All Implemented Interfaces:
Builder<ConcurrentModificationError>
public class ConcurrentModificationErrorBuilder
extends Object
implements Builder<ConcurrentModificationError>
ConcurrentModificationErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ConcurrentModificationError concurrentModificationError = ConcurrentModificationError.builder()
.message("{message}")
.currentVersion(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ConcurrentModificationError with checking for non-null required valuesbuilds ConcurrentModificationError without checking for non-null required valuesconflictedResource
(Object conflictedResource) The resource in conflict.currentVersion
(Long currentVersion) The current version of the resource.The resource in conflict.The current version of the resource.value of message}The version specified in the failed request.set the value to the messageof()
factory method for an instance of ConcurrentModificationErrorBuilderof
(ConcurrentModificationError template) create builder for ConcurrentModificationError instancespecifiedVersion
(Long specifiedVersion) The version specified in the failed request.
-
Constructor Details
-
ConcurrentModificationErrorBuilder
public ConcurrentModificationErrorBuilder()
-
-
Method Details
-
message
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
specifiedVersion
The version specified in the failed request.
- Parameters:
specifiedVersion
- value to be set- Returns:
- Builder
-
currentVersion
The current version of the resource.
- Parameters:
currentVersion
- value to be set- Returns:
- Builder
-
conflictedResource
The resource in conflict.
- Parameters:
conflictedResource
- value to be set- Returns:
- Builder
-
getMessage
value of message}- Returns:
- message
-
getSpecifiedVersion
The version specified in the failed request.
- Returns:
- specifiedVersion
-
getCurrentVersion
The current version of the resource.
- Returns:
- currentVersion
-
getConflictedResource
The resource in conflict.
- Returns:
- conflictedResource
-
build
builds ConcurrentModificationError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ConcurrentModificationError>
- Returns:
- ConcurrentModificationError
-
buildUnchecked
builds ConcurrentModificationError without checking for non-null required values- Returns:
- ConcurrentModificationError
-
of
factory method for an instance of ConcurrentModificationErrorBuilder- Returns:
- builder
-
of
create builder for ConcurrentModificationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-