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

io.sphere.sdk.channels.commands.updateactions.AddRoles 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;

/**
 *  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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy