io.sphere.sdk.customergroups.commands.CustomerGroupUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.customergroups.commands;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDslImpl;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.models.Versioned;
import java.util.List;
import static io.sphere.sdk.customergroups.commands.CustomerGroupEndpoint.ENDPOINT;
import static java.util.Arrays.asList;
/**
{@doc.gen list actions}
*/
public class CustomerGroupUpdateCommand extends UpdateCommandDslImpl {
private CustomerGroupUpdateCommand(final Versioned versioned, final List extends UpdateAction> updateActions) {
super(versioned, updateActions, ENDPOINT);
}
public static CustomerGroupUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new CustomerGroupUpdateCommand(versioned, updateActions);
}
public static CustomerGroupUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return new CustomerGroupUpdateCommand(versioned, asList(updateAction));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy