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