Class AssociateRoleSetPermissionsActionBuilder
java.lang.Object
com.commercetools.api.models.associate_role.AssociateRoleSetPermissionsActionBuilder
- All Implemented Interfaces:
Builder<AssociateRoleSetPermissionsAction>
public class AssociateRoleSetPermissionsActionBuilder
extends Object
implements Builder<AssociateRoleSetPermissionsAction>
AssociateRoleSetPermissionsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleSetPermissionsAction associateRoleSetPermissionsAction = AssociateRoleSetPermissionsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AssociateRoleSetPermissionsAction with checking for non-null required valuesbuilds AssociateRoleSetPermissionsAction without checking for non-null required valuesOverrides the current list of Permissions for the AssociateRole.of()
factory method for an instance of AssociateRoleSetPermissionsActionBuilderof
(AssociateRoleSetPermissionsAction template) create builder for AssociateRoleSetPermissionsAction instancepermissions
(Permission... permissions) Overrides the current list of Permissions for the AssociateRole.permissions
(List<Permission> permissions) Overrides the current list of Permissions for the AssociateRole.plusPermissions
(Permission... permissions) Overrides the current list of Permissions for the AssociateRole.
-
Constructor Details
-
AssociateRoleSetPermissionsActionBuilder
public AssociateRoleSetPermissionsActionBuilder()
-
-
Method Details
-
permissions
Overrides the current list of Permissions for the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
permissions
Overrides the current list of Permissions for the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
plusPermissions
public AssociateRoleSetPermissionsActionBuilder plusPermissions(@Nullable Permission... permissions) Overrides the current list of Permissions for the AssociateRole.
- Parameters:
permissions
- value to be set- Returns:
- Builder
-
getPermissions
Overrides the current list of Permissions for the AssociateRole.
- Returns:
- permissions
-
build
builds AssociateRoleSetPermissionsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<AssociateRoleSetPermissionsAction>
- Returns:
- AssociateRoleSetPermissionsAction
-
buildUnchecked
builds AssociateRoleSetPermissionsAction without checking for non-null required values- Returns:
- AssociateRoleSetPermissionsAction
-
of
factory method for an instance of AssociateRoleSetPermissionsActionBuilder- Returns:
- builder
-
of
public static AssociateRoleSetPermissionsActionBuilder of(AssociateRoleSetPermissionsAction template) create builder for AssociateRoleSetPermissionsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-