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