Class StateKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.StateKeyReferenceBuilder
- All Implemented Interfaces:
Builder<StateKeyReference>
StateKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StateKeyReference stateKeyReference = StateKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StateKeyReference with checking for non-null required valuesbuilds StateKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keystatic StateKeyReferenceBuilder
of()
factory method for an instance of StateKeyReferenceBuilderstatic StateKeyReferenceBuilder
of
(StateKeyReference template) create builder for StateKeyReference instance
-
Constructor Details
-
StateKeyReferenceBuilder
public StateKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds StateKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<StateKeyReference>
- Returns:
- StateKeyReference
-
buildUnchecked
builds StateKeyReference without checking for non-null required values- Returns:
- StateKeyReference
-
of
factory method for an instance of StateKeyReferenceBuilder- Returns:
- builder
-
of
create builder for StateKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-