Class AssociateRolePermissionAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.AssociateRolePermissionAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<AssociateRolePermissionAddedMessagePayload>
public class AssociateRolePermissionAddedMessagePayloadBuilder
extends Object
implements Builder<AssociateRolePermissionAddedMessagePayload>
AssociateRolePermissionAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRolePermissionAddedMessagePayload associateRolePermissionAddedMessagePayload = AssociateRolePermissionAddedMessagePayload.builder()
.permission(Permission.ADD_CHILD_UNITS)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssociateRolePermissionAddedMessagePayload with checking for non-null required valuesbuilds AssociateRolePermissionAddedMessagePayload without checking for non-null required valuesThe Permission that was added to the AssociateRole.of()
factory method for an instance of AssociateRolePermissionAddedMessagePayloadBuilderof
(AssociateRolePermissionAddedMessagePayload template) create builder for AssociateRolePermissionAddedMessagePayload instancepermission
(Permission permission) The Permission that was added to the AssociateRole.
-
Constructor Details
-
AssociateRolePermissionAddedMessagePayloadBuilder
public AssociateRolePermissionAddedMessagePayloadBuilder()
-
-
Method Details
-
permission
The Permission that was added to the AssociateRole.
- Parameters:
permission
- value to be set- Returns:
- Builder
-
getPermission
The Permission that was added to the AssociateRole.
- Returns:
- permission
-
build
builds AssociateRolePermissionAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRolePermissionAddedMessagePayload>
- Returns:
- AssociateRolePermissionAddedMessagePayload
-
buildUnchecked
builds AssociateRolePermissionAddedMessagePayload without checking for non-null required values- Returns:
- AssociateRolePermissionAddedMessagePayload
-
of
factory method for an instance of AssociateRolePermissionAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static AssociateRolePermissionAddedMessagePayloadBuilder of(AssociateRolePermissionAddedMessagePayload template) create builder for AssociateRolePermissionAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-