io.sphere.sdk.categories.commands.CategoryUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.categories.commands;
import io.sphere.sdk.categories.Category;
import io.sphere.sdk.categories.expansion.CategoryExpansionModel;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
/**
* Updates a category.
*
{@doc.gen list actions}
*/
public interface CategoryUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static CategoryUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
static CategoryUpdateCommand of(final Versioned versioned, final List> updateActions) {
return new CategoryUpdateCommandImpl(versioned, updateActions);
}
@Override
CategoryUpdateCommand plusExpansionPaths(final Function, ExpansionPath> m);
@Override
CategoryUpdateCommand withExpansionPaths(final Function, ExpansionPath> m);
@Override
CategoryUpdateCommand withExpansionPaths(final List> expansionPaths);
@Override
CategoryUpdateCommand withExpansionPaths(final ExpansionPath expansionPath);
@Override
CategoryUpdateCommand plusExpansionPaths(final List> expansionPaths);
@Override
CategoryUpdateCommand plusExpansionPaths(final ExpansionPath expansionPath);
@Override
CategoryUpdateCommand withVersion(final Versioned versioned);
}