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