Class InvalidStateTransitionErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.InvalidStateTransitionErrorBuilder
- All Implemented Interfaces:
Builder<InvalidStateTransitionError>
public class InvalidStateTransitionErrorBuilder
extends Object
implements Builder<InvalidStateTransitionError>
InvalidStateTransitionErrorBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InvalidStateTransitionError with checking for non-null required valuesbuilds InvalidStateTransitionError without checking for non-null required valuescurrentState
(ProcessingState currentState) Every Import Operation is assigned one of the following states.Every Import Operation is assigned one of the following states.A plain language description of the cause of an error.Every Import Operation is assigned one of the following states.A plain language description of the cause of an error.newState
(ProcessingState newState) Every Import Operation is assigned one of the following states.of()
factory method for an instance of InvalidStateTransitionErrorBuilderof
(InvalidStateTransitionError template) create builder for InvalidStateTransitionError instance
-
Constructor Details
-
InvalidStateTransitionErrorBuilder
public InvalidStateTransitionErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
currentState
Every Import Operation is assigned one of the following states.
- Parameters:
currentState
- value to be set- Returns:
- Builder
-
newState
Every Import Operation is assigned one of the following states.
- Parameters:
newState
- value to be set- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
getCurrentState
Every Import Operation is assigned one of the following states.
- Returns:
- currentState
-
getNewState
Every Import Operation is assigned one of the following states.
- Returns:
- newState
-
build
builds InvalidStateTransitionError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidStateTransitionError>
- Returns:
- InvalidStateTransitionError
-
buildUnchecked
builds InvalidStateTransitionError without checking for non-null required values- Returns:
- InvalidStateTransitionError
-
of
factory method for an instance of InvalidStateTransitionErrorBuilder- Returns:
- builder
-
of
create builder for InvalidStateTransitionError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-