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