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
-
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 StateChangeKeyActionBuilder
of()
factory method for an instance of StateChangeKeyActionBuilderstatic StateChangeKeyActionBuilder
of
(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:
build
in 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
-