Class ProductTransitionStateActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductTransitionStateActionBuilder
- All Implemented Interfaces:
Builder<ProductTransitionStateAction>
public class ProductTransitionStateActionBuilder
extends Object
implements Builder<ProductTransitionStateAction>
ProductTransitionStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTransitionStateAction productTransitionStateAction = ProductTransitionStateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTransitionStateAction with checking for non-null required valuesbuilds ProductTransitionStateAction without checking for non-null required valuesIftrue
, validations are disabled.getForce()
Iftrue
, validations are disabled.getState()
The State to transition to.of()
factory method for an instance of ProductTransitionStateActionBuilderof
(ProductTransitionStateAction template) create builder for ProductTransitionStateAction instancestate
(StateResourceIdentifier state) The State to transition to.The State to transition to.The State to transition to.
-
Constructor Details
-
ProductTransitionStateActionBuilder
public ProductTransitionStateActionBuilder()
-
-
Method Details
-
state
public ProductTransitionStateActionBuilder state(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) The State to transition to. If there is no existing State, this must be an initial State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public ProductTransitionStateActionBuilder withState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) The State to transition to. If there is no existing State, this must be an initial State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
The State to transition to. If there is no existing State, this must be an initial State.
- Parameters:
state
- value to be set- Returns:
- Builder
-
force
If
true
, validations are disabled.- Parameters:
force
- value to be set- Returns:
- Builder
-
getState
The State to transition to. If there is no existing State, this must be an initial State.
- Returns:
- state
-
getForce
If
true
, validations are disabled.- Returns:
- force
-
build
builds ProductTransitionStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTransitionStateAction>
- Returns:
- ProductTransitionStateAction
-
buildUnchecked
builds ProductTransitionStateAction without checking for non-null required values- Returns:
- ProductTransitionStateAction
-
of
factory method for an instance of ProductTransitionStateActionBuilder- Returns:
- builder
-
of
create builder for ProductTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-