All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.zones.commands.updateactions.AddLocation Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy