io.sphere.sdk.channels.commands.updateactions.SetRoles 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;
/**
* Sets the roles of a channel.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.channels.commands.ChannelUpdateCommandTest#setRoles()}
*/
public class SetRoles extends UpdateActionImpl {
private final Set roles;
private SetRoles(final Set roles) {
super("setRoles");
this.roles = roles;
}
public Set getRoles() {
return roles;
}
public static SetRoles of(final Set roles) {
return new SetRoles(roles);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy