Interface GraphQLAnonymousIdAlreadyInUseError
- All Superinterfaces:
GraphQLErrorObject
Returned when the anonymous ID is being used by another resource.
The client application should choose another anonymous ID or retrieve an automatically generated one.
Example to create an instance using the builder pattern
GraphQLAnonymousIdAlreadyInUseError graphQLAnonymousIdAlreadyInUseError = GraphQLAnonymousIdAlreadyInUseError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLAnonymousIdAlreadyInUseError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLAnonymousIdAlreadyInUseErrorbuilder
(GraphQLAnonymousIdAlreadyInUseError template) create builder for GraphQLAnonymousIdAlreadyInUseError instancedeepCopy
(GraphQLAnonymousIdAlreadyInUseError template) factory method to create a deep copy of GraphQLAnonymousIdAlreadyInUseError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLAnonymousIdAlreadyInUseError template) factory method to create a shallow copy GraphQLAnonymousIdAlreadyInUseErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLAnonymousIdAlreadyInUseError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ANONYMOUS_ID_ALREADY_IN_USE
discriminator value for GraphQLAnonymousIdAlreadyInUseError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLAnonymousIdAlreadyInUseError
-
of
factory method to create a shallow copy GraphQLAnonymousIdAlreadyInUseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLAnonymousIdAlreadyInUseError deepCopy(@Nullable GraphQLAnonymousIdAlreadyInUseError template) factory method to create a deep copy of GraphQLAnonymousIdAlreadyInUseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAnonymousIdAlreadyInUseError- Returns:
- builder
-
builder
static GraphQLAnonymousIdAlreadyInUseErrorBuilder builder(GraphQLAnonymousIdAlreadyInUseError template) create builder for GraphQLAnonymousIdAlreadyInUseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAnonymousIdAlreadyInUseError
default <T> T withGraphQLAnonymousIdAlreadyInUseError(Function<GraphQLAnonymousIdAlreadyInUseError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLAnonymousIdAlreadyInUseError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-