Interface AnonymousIdAlreadyInUseError
- All Superinterfaces:
ErrorObject
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
AnonymousIdAlreadyInUseError anonymousIdAlreadyInUseError = AnonymousIdAlreadyInUseError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AnonymousIdAlreadyInUseError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AnonymousIdAlreadyInUseErrorbuilder
(AnonymousIdAlreadyInUseError template) create builder for AnonymousIdAlreadyInUseError instancestatic AnonymousIdAlreadyInUseError
deepCopy
(AnonymousIdAlreadyInUseError template) factory method to create a deep copy of AnonymousIdAlreadyInUseError@NotNull String
getCode()
Error identifier.@NotNull String
"The given anonymous ID is already in use."
static AnonymousIdAlreadyInUseError
of()
factory methodstatic AnonymousIdAlreadyInUseError
of
(AnonymousIdAlreadyInUseError template) factory method to create a shallow copy AnonymousIdAlreadyInUseErrorvoid
setMessage
(String message) "The given anonymous ID is already in use."
static com.fasterxml.jackson.core.type.TypeReference<AnonymousIdAlreadyInUseError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
ANONYMOUS_ID_ALREADY_IN_USE
discriminator value for AnonymousIdAlreadyInUseError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The given anonymous ID is already in use."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The given anonymous ID is already in use."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of AnonymousIdAlreadyInUseError
-
of
factory method to create a shallow copy AnonymousIdAlreadyInUseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AnonymousIdAlreadyInUseError deepCopy(@Nullable AnonymousIdAlreadyInUseError template) factory method to create a deep copy of AnonymousIdAlreadyInUseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AnonymousIdAlreadyInUseError- Returns:
- builder
-
builder
create builder for AnonymousIdAlreadyInUseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAnonymousIdAlreadyInUseError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-