io.sphere.sdk.channels.commands.updateactions.RemoveRoles Maven / Gradle / Ivy
package io.sphere.sdk.channels.commands.updateactions;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.channels.ChannelRole;
import io.sphere.sdk.commands.UpdateActionImpl;
import java.util.Set;
/**
* Removes a role from a channel.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.channels.commands.ChannelUpdateCommandTest#removeRoles()}
*/
public class RemoveRoles extends UpdateActionImpl {
private final Set roles;
private RemoveRoles(final Set roles) {
super("removeRoles");
this.roles = roles;
}
public Set getRoles() {
return roles;
}
public static RemoveRoles of(final Set roles) {
return new RemoveRoles(roles);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy