io.sphere.sdk.zones.commands.updateactions.AddLocation 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;
/**
* Adds a location to a zone.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.zones.commands.ZoneUpdateCommandTest#addLocationAndRemoveLocation()}
*/
public class AddLocation extends UpdateActionImpl {
private final Location location;
private AddLocation(final Location location) {
super("addLocation");
this.location = location;
}
public static AddLocation of(final Location location) {
return new AddLocation(location);
}
public Location getLocation() {
return location;
}
}