Class StateChangeTypeActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateChangeTypeActionBuilder
- All Implemented Interfaces:
Builder<StateChangeTypeAction>
StateChangeTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateChangeTypeAction stateChangeTypeAction = StateChangeTypeAction.builder()
.type(StateTypeEnum.ORDER_STATE)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StateChangeTypeAction with checking for non-null required valuesbuilds StateChangeTypeAction without checking for non-null required valuesgetType()Resource or object types the State shall be assigned to.static StateChangeTypeActionBuilderof()factory method for an instance of StateChangeTypeActionBuilderstatic StateChangeTypeActionBuilderof(StateChangeTypeAction template) create builder for StateChangeTypeAction instancetype(StateTypeEnum type) Resource or object types the State shall be assigned to.
-
Constructor Details
-
StateChangeTypeActionBuilder
public StateChangeTypeActionBuilder()
-
-
Method Details
-
type
Resource or object types the State shall be assigned to. Must not be empty.
- Parameters:
type- value to be set- Returns:
- Builder
-
getType
Resource or object types the State shall be assigned to. Must not be empty.
- Returns:
- type
-
build
builds StateChangeTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StateChangeTypeAction>- Returns:
- StateChangeTypeAction
-
buildUnchecked
builds StateChangeTypeAction without checking for non-null required values- Returns:
- StateChangeTypeAction
-
of
factory method for an instance of StateChangeTypeActionBuilder- Returns:
- builder
-
of
create builder for StateChangeTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-