Class InheritedAssociateRoleAssignmentBuilder
java.lang.Object
com.commercetools.history.models.common.InheritedAssociateRoleAssignmentBuilder
- All Implemented Interfaces:
Builder<InheritedAssociateRoleAssignment>
public class InheritedAssociateRoleAssignmentBuilder
extends Object
implements Builder<InheritedAssociateRoleAssignment>
InheritedAssociateRoleAssignmentBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InheritedAssociateRoleAssignment inheritedAssociateRoleAssignment = InheritedAssociateRoleAssignment.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.source(sourceBuilder -> sourceBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociateRole(KeyReference associateRole) set the value to the associateRoleset the value to the associateRole using the builder functionbuild()builds InheritedAssociateRoleAssignment with checking for non-null required valuesbuilds InheritedAssociateRoleAssignment without checking for non-null required valuesvalue of associateRole}value of source}of()factory method for an instance of InheritedAssociateRoleAssignmentBuilderof(InheritedAssociateRoleAssignment template) create builder for InheritedAssociateRoleAssignment instancesource(KeyReference source) set the value to the sourcesource(Function<KeyReferenceBuilder, KeyReferenceBuilder> builder) set the value to the source using the builder functionset the value to the associateRole using the builder functionwithSource(Function<KeyReferenceBuilder, KeyReference> builder) set the value to the source using the builder function
-
Constructor Details
-
InheritedAssociateRoleAssignmentBuilder
public InheritedAssociateRoleAssignmentBuilder()
-
-
Method Details
-
associateRole
public InheritedAssociateRoleAssignmentBuilder associateRole(Function<KeyReferenceBuilder, KeyReferenceBuilder> builder) set the value to the associateRole using the builder function- Parameters:
builder- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public InheritedAssociateRoleAssignmentBuilder withAssociateRole(Function<KeyReferenceBuilder, KeyReference> builder) set the value to the associateRole using the builder function- Parameters:
builder- function to build the associateRole value- Returns:
- Builder
-
associateRole
set the value to the associateRole- Parameters:
associateRole- value to be set- Returns:
- Builder
-
source
public InheritedAssociateRoleAssignmentBuilder source(Function<KeyReferenceBuilder, KeyReferenceBuilder> builder) set the value to the source using the builder function- Parameters:
builder- function to build the source value- Returns:
- Builder
-
withSource
public InheritedAssociateRoleAssignmentBuilder withSource(Function<KeyReferenceBuilder, KeyReference> builder) set the value to the source using the builder function- Parameters:
builder- function to build the source value- Returns:
- Builder
-
source
set the value to the source- Parameters:
source- value to be set- Returns:
- Builder
-
getAssociateRole
value of associateRole}- Returns:
- associateRole
-
getSource
value of source}- Returns:
- source
-
build
builds InheritedAssociateRoleAssignment with checking for non-null required values- Specified by:
buildin interfaceBuilder<InheritedAssociateRoleAssignment>- Returns:
- InheritedAssociateRoleAssignment
-
buildUnchecked
builds InheritedAssociateRoleAssignment without checking for non-null required values- Returns:
- InheritedAssociateRoleAssignment
-
of
factory method for an instance of InheritedAssociateRoleAssignmentBuilder- Returns:
- builder
-
of
create builder for InheritedAssociateRoleAssignment instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-