Class AssociateRoleCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.AssociateRoleCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<AssociateRoleCreatedMessagePayload>
public class AssociateRoleCreatedMessagePayloadBuilder
extends Object
implements Builder<AssociateRoleCreatedMessagePayload>
AssociateRoleCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleCreatedMessagePayload associateRoleCreatedMessagePayload = AssociateRoleCreatedMessagePayload.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassociateRole
(AssociateRole associateRole) The AssociateRole that was created.The AssociateRole that was created.build()
builds AssociateRoleCreatedMessagePayload with checking for non-null required valuesbuilds AssociateRoleCreatedMessagePayload without checking for non-null required valuesThe AssociateRole that was created.of()
factory method for an instance of AssociateRoleCreatedMessagePayloadBuilderof
(AssociateRoleCreatedMessagePayload template) create builder for AssociateRoleCreatedMessagePayload instanceThe AssociateRole that was created.
-
Constructor Details
-
AssociateRoleCreatedMessagePayloadBuilder
public AssociateRoleCreatedMessagePayloadBuilder()
-
-
Method Details
-
associateRole
public AssociateRoleCreatedMessagePayloadBuilder associateRole(Function<AssociateRoleBuilder, AssociateRoleBuilder> builder) The AssociateRole that was created.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
withAssociateRole
public AssociateRoleCreatedMessagePayloadBuilder withAssociateRole(Function<AssociateRoleBuilder, AssociateRole> builder) The AssociateRole that was created.
- Parameters:
builder
- function to build the associateRole value- Returns:
- Builder
-
associateRole
The AssociateRole that was created.
- Parameters:
associateRole
- value to be set- Returns:
- Builder
-
getAssociateRole
The AssociateRole that was created.
- Returns:
- associateRole
-
build
builds AssociateRoleCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRoleCreatedMessagePayload>
- Returns:
- AssociateRoleCreatedMessagePayload
-
buildUnchecked
builds AssociateRoleCreatedMessagePayload without checking for non-null required values- Returns:
- AssociateRoleCreatedMessagePayload
-
of
factory method for an instance of AssociateRoleCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static AssociateRoleCreatedMessagePayloadBuilder of(AssociateRoleCreatedMessagePayload template) create builder for AssociateRoleCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-