Class StateChangeKeyActionBuilder
java.lang.Object
com.commercetools.api.models.state.StateChangeKeyActionBuilder
- All Implemented Interfaces:
Builder<StateChangeKeyAction>
StateChangeKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateChangeKeyAction stateChangeKeyAction = StateChangeKeyAction.builder()
.key("{key}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StateChangeKeyAction with checking for non-null required valuesbuilds StateChangeKeyAction without checking for non-null required valuesgetKey()New value to set.New value to set.static StateChangeKeyActionBuilderof()factory method for an instance of StateChangeKeyActionBuilderstatic StateChangeKeyActionBuilderof(StateChangeKeyAction template) create builder for StateChangeKeyAction instance
-
Constructor Details
-
StateChangeKeyActionBuilder
public StateChangeKeyActionBuilder()
-
-
Method Details
-
key
New value to set. Must not be empty.
- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
New value to set. Must not be empty.
- Returns:
- key
-
build
builds StateChangeKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StateChangeKeyAction>- Returns:
- StateChangeKeyAction
-
buildUnchecked
builds StateChangeKeyAction without checking for non-null required values- Returns:
- StateChangeKeyAction
-
of
factory method for an instance of StateChangeKeyActionBuilder- Returns:
- builder
-
of
create builder for StateChangeKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-