io.sphere.sdk.zones.commands.ZoneCreateCommand Maven / Gradle / Ivy
package io.sphere.sdk.zones.commands;
import io.sphere.sdk.commands.CreateCommandImpl;
import io.sphere.sdk.zones.Zone;
import io.sphere.sdk.zones.ZoneDraft;
/**
* Creates a zone in SPHERE.IO.
*
* {@include.example io.sphere.sdk.zones.commands.ZoneCreateCommandTest#execution()}
*/
public class ZoneCreateCommand extends CreateCommandImpl {
private ZoneCreateCommand(final ZoneDraft draft) {
super(draft, ZonesEndpoint.ENDPOINT);
}
public static ZoneCreateCommand of(final ZoneDraft draft) {
return new ZoneCreateCommand(draft);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy