Interface AssociateRoleAddPermissionAction
- All Superinterfaces:
AssociateRoleUpdateAction
,ResourceUpdateAction<AssociateRoleUpdateAction>
Adding a Permission to an AssociateRole generates an AssociateRolePermissionAdded Message.
Example to create an instance using the builder pattern
AssociateRoleAddPermissionAction associateRoleAddPermissionAction = AssociateRoleAddPermissionAction.builder()
.permission(Permission.ADD_CHILD_UNITS)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRoleAddPermissionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleAddPermissionActionbuilder
(AssociateRoleAddPermissionAction template) create builder for AssociateRoleAddPermissionAction instancedeepCopy
(AssociateRoleAddPermissionAction template) factory method to create a deep copy of AssociateRoleAddPermissionAction@NotNull Permission
Permission to be added to the AssociateRole.of()
factory methodof
(AssociateRoleAddPermissionAction template) factory method to create a shallow copy AssociateRoleAddPermissionActionvoid
setPermission
(Permission permission) Permission to be added to the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleAddPermissionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.associate_role.AssociateRoleUpdateAction
getAction, withAssociateRoleUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_PERMISSION
discriminator value for AssociateRoleAddPermissionAction- See Also:
-
-
Method Details
-
getPermission
Permission to be added to the AssociateRole.
- Returns:
- permission
-
setPermission
Permission to be added to the AssociateRole.
- Parameters:
permission
- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleAddPermissionAction
-
of
factory method to create a shallow copy AssociateRoleAddPermissionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static AssociateRoleAddPermissionAction deepCopy(@Nullable AssociateRoleAddPermissionAction template) factory method to create a deep copy of AssociateRoleAddPermissionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleAddPermissionAction- Returns:
- builder
-
builder
create builder for AssociateRoleAddPermissionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleAddPermissionAction
default <T> T withAssociateRoleAddPermissionAction(Function<AssociateRoleAddPermissionAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleAddPermissionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-