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.A plain language description of the cause of an error.The version specified in the failed request.A plain language description of the cause of an error.of()
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
A plain language description of the cause of an error.
- 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
A plain language description of the cause of an error.
- 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
-