Class StandalonePriceReferenceBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceReferenceBuilder
- All Implemented Interfaces:
Builder<StandalonePriceReference>
public class StandalonePriceReferenceBuilder
extends Object
implements Builder<StandalonePriceReference>
StandalonePriceReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceReference standalonePriceReference = StandalonePriceReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceReference with checking for non-null required valuesbuilds StandalonePriceReference without checking for non-null required valuesgetId()
Unique ID of the referenced resource.getObj()
Contains the representation of the expanded StandalonePrice.Unique ID of the referenced resource.obj
(StandalonePrice obj) Contains the representation of the expanded StandalonePrice.Contains the representation of the expanded StandalonePrice.of()
factory method for an instance of StandalonePriceReferenceBuilderof
(StandalonePriceReference template) create builder for StandalonePriceReference instancewithObj
(Function<StandalonePriceBuilder, StandalonePrice> builder) Contains the representation of the expanded StandalonePrice.
-
Constructor Details
-
StandalonePriceReferenceBuilder
public StandalonePriceReferenceBuilder()
-
-
Method Details
-
id
Unique ID of the referenced resource.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
public StandalonePriceReferenceBuilder obj(Function<StandalonePriceBuilder, StandalonePriceBuilder> builder) Contains the representation of the expanded StandalonePrice. Only present in responses to requests with Reference Expansion for StandalonePrice.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
public StandalonePriceReferenceBuilder withObj(Function<StandalonePriceBuilder, StandalonePrice> builder) Contains the representation of the expanded StandalonePrice. Only present in responses to requests with Reference Expansion for StandalonePrice.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded StandalonePrice. Only present in responses to requests with Reference Expansion for StandalonePrice.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique ID of the referenced resource.
- Returns:
- id
-
getObj
Contains the representation of the expanded StandalonePrice. Only present in responses to requests with Reference Expansion for StandalonePrice.
- Returns:
- obj
-
build
builds StandalonePriceReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceReference>
- Returns:
- StandalonePriceReference
-
buildUnchecked
builds StandalonePriceReference without checking for non-null required values- Returns:
- StandalonePriceReference
-
of
factory method for an instance of StandalonePriceReferenceBuilder- Returns:
- builder
-
of
create builder for StandalonePriceReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-