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