io.sphere.sdk.channels.commands.updateactions.AddRoles 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;
/**
* Adds roles to a channel.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.channels.commands.ChannelUpdateCommandTest#addRoles()}
*/
public class AddRoles extends UpdateActionImpl {
private final Set roles;
private AddRoles(final Set roles) {
super("addRoles");
this.roles = roles;
}
public Set getRoles() {
return roles;
}
public static AddRoles of(final Set roles) {
return new AddRoles(roles);
}
}