Class GraphQLConcurrentModificationErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLConcurrentModificationErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLConcurrentModificationError>
public class GraphQLConcurrentModificationErrorBuilder
extends Object
implements Builder<GraphQLConcurrentModificationError>
GraphQLConcurrentModificationErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLConcurrentModificationError graphQLConcurrentModificationError = GraphQLConcurrentModificationError.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLConcurrentModificationError with checking for non-null required valuesbuilds GraphQLConcurrentModificationError without checking for non-null required valuescurrentVersion
(Long currentVersion) Current version of the resource.Current version of the resource.Error-specific additional fields.of()
factory method for an instance of GraphQLConcurrentModificationErrorBuilderof
(GraphQLConcurrentModificationError template) create builder for GraphQLConcurrentModificationError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLConcurrentModificationErrorBuilder
public GraphQLConcurrentModificationErrorBuilder()
-
-
Method Details
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
currentVersion
Current version of the resource.
- Parameters:
currentVersion
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getCurrentVersion
Current version of the resource.
- Returns:
- currentVersion
-
build
builds GraphQLConcurrentModificationError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLConcurrentModificationError>
- Returns:
- GraphQLConcurrentModificationError
-
buildUnchecked
builds GraphQLConcurrentModificationError without checking for non-null required values- Returns:
- GraphQLConcurrentModificationError
-
of
factory method for an instance of GraphQLConcurrentModificationErrorBuilder- Returns:
- builder
-
of
public static GraphQLConcurrentModificationErrorBuilder of(GraphQLConcurrentModificationError template) create builder for GraphQLConcurrentModificationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-