io.sphere.sdk.channels.commands.ChannelUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.channels.commands;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.channels.expansion.ChannelExpansionModel;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import java.util.Collections;
import java.util.List;
/**
* Updates a channel.
*
{@doc.gen list actions}
*/
public interface ChannelUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static ChannelUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new ChannelUpdateCommandImpl(versioned, updateActions);
}
static ChannelUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy