Class ExtensionReferenceBuilder
java.lang.Object
com.commercetools.api.models.extension.ExtensionReferenceBuilder
- All Implemented Interfaces:
Builder<ExtensionReference>
ExtensionReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionReference extensionReference = ExtensionReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ExtensionReference with checking for non-null required valuesbuilds ExtensionReference without checking for non-null required valuesgetId()Unique identifier of the referenced Extension.getObj()Contains the representation of the expanded Extension.Unique identifier of the referenced Extension.Contains the representation of the expanded Extension.obj(Function<ExtensionBuilder, ExtensionBuilder> builder) Contains the representation of the expanded Extension.static ExtensionReferenceBuilderof()factory method for an instance of ExtensionReferenceBuilderstatic ExtensionReferenceBuilderof(ExtensionReference template) create builder for ExtensionReference instancewithObj(Function<ExtensionBuilder, Extension> builder) Contains the representation of the expanded Extension.
-
Constructor Details
-
ExtensionReferenceBuilder
public ExtensionReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Extension.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Extension. Only present in responses to requests with Reference Expansion for Extensions.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Extension. Only present in responses to requests with Reference Expansion for Extensions.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Extension. Only present in responses to requests with Reference Expansion for Extensions.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Extension.
- Returns:
- id
-
getObj
Contains the representation of the expanded Extension. Only present in responses to requests with Reference Expansion for Extensions.
- Returns:
- obj
-
build
builds ExtensionReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<ExtensionReference>- Returns:
- ExtensionReference
-
buildUnchecked
builds ExtensionReference without checking for non-null required values- Returns:
- ExtensionReference
-
of
factory method for an instance of ExtensionReferenceBuilder- Returns:
- builder
-
of
create builder for ExtensionReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-