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

io.sphere.sdk.zones.commands.ZoneUpdateCommand Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
/*
This class has been generated by class io.sphere.sdk.annotations.processors.UpdateCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasUpdateCommand.
in the source class io.sphere.sdk.zones.Zone.
To render this class the handlebars template 'commands/updateCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.zones.commands;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.zones.Zone;
import io.sphere.sdk.zones.expansion.ZoneExpansionModel;

import java.util.Collections;
import java.util.List;

import static io.sphere.sdk.client.SphereRequestUtils.urlEncode;

/**
    Command object to update a {@link Zone}.

    {@doc.gen list actions}

    
    @see Zone
*/
public interface ZoneUpdateCommand extends UpdateCommandDsl, MetaModelReferenceExpansionDsl> {

    /**
        Creates a command to update a Zone selected by its ID using several update actions.

        @param versioned the object to update (so directly a {@link Zone}) or just the version/ID information of it
        @param updateActions the updates
        @return the update command for Zone
     */
    static ZoneUpdateCommand of(final Versioned versioned, final List> updateActions) {
        return new ZoneUpdateCommandImpl(versioned, updateActions);
    }

    /**
        Creates a command to update a Zone selected by its ID using one update action.

        @param versioned the object to update (so directly a {@link Zone}) or just the version/ID information of it
        @param updateAction the update to perform
        @return the update command for Zone
    */
    static ZoneUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
        return new ZoneUpdateCommandImpl(versioned, Collections.singletonList(updateAction));
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy