io.sphere.sdk.zones.commands.updateactions.RemoveLocation Maven / Gradle / Ivy
package io.sphere.sdk.zones.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.zones.Location;
import io.sphere.sdk.zones.Zone;
/**
* Removes a location from a zone.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.zones.commands.ZoneUpdateCommandTest#addLocationAndRemoveLocation()}
*/
public class RemoveLocation extends UpdateActionImpl {
private final Location location;
private RemoveLocation(final Location location) {
super("removeLocation");
this.location = location;
}
public static RemoveLocation of(final Location location) {
return new RemoveLocation(location);
}
public Location getLocation() {
return location;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy