Class ChannelRemoveRolesActionBuilder
- All Implemented Interfaces:
Builder<ChannelRemoveRolesAction>
Example to create an instance using the builder pattern
ChannelRemoveRolesAction channelRemoveRolesAction = ChannelRemoveRolesAction.builder()
.plusRoles(rolesBuilder -> rolesBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChannelRemoveRolesAction with checking for non-null required valuesbuilds ChannelRemoveRolesAction without checking for non-null required valuesgetRoles()Value to remove from the array.of()factory method for an instance of ChannelRemoveRolesActionBuilderof(ChannelRemoveRolesAction template) create builder for ChannelRemoveRolesAction instanceplusRoles(ChannelRoleEnum... roles) Value to remove from the array.roles(ChannelRoleEnum... roles) Value to remove from the array.roles(List<ChannelRoleEnum> roles) Value to remove from the array.
-
Constructor Details
-
ChannelRemoveRolesActionBuilder
public ChannelRemoveRolesActionBuilder()
-
-
Method Details
-
roles
Value to remove from the array.
If none of the specified roles are already present, an InvalidOperation error is returned.
If all roles from the Channel are removed, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
roles
Value to remove from the array.
If none of the specified roles are already present, an InvalidOperation error is returned.
If all roles from the Channel are removed, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
plusRoles
Value to remove from the array.
If none of the specified roles are already present, an InvalidOperation error is returned.
If all roles from the Channel are removed, an InvalidOperation error is returned.
- Parameters:
roles- value to be set- Returns:
- Builder
-
getRoles
Value to remove from the array.
If none of the specified roles are already present, an InvalidOperation error is returned.
If all roles from the Channel are removed, an InvalidOperation error is returned.
- Returns:
- roles
-
build
builds ChannelRemoveRolesAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChannelRemoveRolesAction>- Returns:
- ChannelRemoveRolesAction
-
buildUnchecked
builds ChannelRemoveRolesAction without checking for non-null required values- Returns:
- ChannelRemoveRolesAction
-
of
factory method for an instance of ChannelRemoveRolesActionBuilder- Returns:
- builder
-
of
create builder for ChannelRemoveRolesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-