Class AssociateRolePermissionsSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.AssociateRolePermissionsSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<AssociateRolePermissionsSetMessagePayload>
public class AssociateRolePermissionsSetMessagePayloadBuilder
extends Object
implements Builder<AssociateRolePermissionsSetMessagePayload>
AssociateRolePermissionsSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRolePermissionsSetMessagePayload associateRolePermissionsSetMessagePayload = AssociateRolePermissionsSetMessagePayload.builder()
.plusPermissions(permissionsBuilder -> permissionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssociateRolePermissionsSetMessagePayload with checking for non-null required valuesbuilds AssociateRolePermissionsSetMessagePayload without checking for non-null required valuesPermission assigned to the AssociateRole.of()
factory method for an instance of AssociateRolePermissionsSetMessagePayloadBuilderof
(AssociateRolePermissionsSetMessagePayload template) create builder for AssociateRolePermissionsSetMessagePayload instancepermissions
(Permission... permissions) Permission assigned to the AssociateRole.permissions
(List<Permission> permissions) Permission assigned to the AssociateRole.plusPermissions
(Permission... permissions) Permission assigned to the AssociateRole.
-
Constructor Details
-
AssociateRolePermissionsSetMessagePayloadBuilder
public AssociateRolePermissionsSetMessagePayloadBuilder()
-
-
Method Details
-
permissions
Permission assigned to the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
permissions
Permission assigned to the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
plusPermissions
Permission assigned to the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
getPermissions
Permission assigned to the AssociateRole.
- Returns:
- permissions
-
build
builds AssociateRolePermissionsSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRolePermissionsSetMessagePayload>
- Returns:
- AssociateRolePermissionsSetMessagePayload
-
buildUnchecked
builds AssociateRolePermissionsSetMessagePayload without checking for non-null required values- Returns:
- AssociateRolePermissionsSetMessagePayload
-
of
factory method for an instance of AssociateRolePermissionsSetMessagePayloadBuilder- Returns:
- builder
-
of
public static AssociateRolePermissionsSetMessagePayloadBuilder of(AssociateRolePermissionsSetMessagePayload template) create builder for AssociateRolePermissionsSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-