All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.channels.commands.updateactions.RemoveRoles Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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