Interface InvalidStateTransitionError
- All Superinterfaces:
ErrorObject
- All Known Implementing Classes:
InvalidStateTransitionErrorImpl
InvalidStateTransitionError
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidStateTransitionError invalidStateTransitionError = InvalidStateTransitionError.builder()
.message("{message}")
.currentState(ProcessingState.PROCESSING)
.newState(ProcessingState.PROCESSING)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for InvalidStateTransitionError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InvalidStateTransitionErrorbuilder
(InvalidStateTransitionError template) create builder for InvalidStateTransitionError instancestatic InvalidStateTransitionError
deepCopy
(InvalidStateTransitionError template) factory method to create a deep copy of InvalidStateTransitionError@NotNull ProcessingState
Every Import Operation is assigned with one of the following states.@NotNull ProcessingState
Every Import Operation is assigned with one of the following states.static InvalidStateTransitionError
of()
factory methodstatic InvalidStateTransitionError
of
(InvalidStateTransitionError template) factory method to create a shallow copy InvalidStateTransitionErrorvoid
setCurrentState
(ProcessingState currentState) Every Import Operation is assigned with one of the following states.void
setNewState
(ProcessingState newState) Every Import Operation is assigned with one of the following states.static com.fasterxml.jackson.core.type.TypeReference<InvalidStateTransitionError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
INVALID_TRANSITION
discriminator value for InvalidStateTransitionError- See Also:
-
-
Method Details
-
getCurrentState
Every Import Operation is assigned with one of the following states.
- Returns:
- currentState
-
getNewState
Every Import Operation is assigned with one of the following states.
- Returns:
- newState
-
setCurrentState
Every Import Operation is assigned with one of the following states.
- Parameters:
currentState
- value to be set
-
setNewState
Every Import Operation is assigned with one of the following states.
- Parameters:
newState
- value to be set
-
of
factory method- Returns:
- instance of InvalidStateTransitionError
-
of
factory method to create a shallow copy InvalidStateTransitionError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InvalidStateTransitionError deepCopy(@Nullable InvalidStateTransitionError template) factory method to create a deep copy of InvalidStateTransitionError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidStateTransitionError- Returns:
- builder
-
builder
create builder for InvalidStateTransitionError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidStateTransitionError
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
-