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

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

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.zones.commands.updateactions;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.zones.Zone;

import java.util.Optional;

/**
 * Updates the description of a zone.
 *
 * {@include.example io.sphere.sdk.zones.commands.ZoneUpdateCommandTest#setDescription()}
 */
public class SetDescription extends UpdateAction {
    private final Optional description;

    private SetDescription(final Optional description) {
        super("setDescription");
        this.description = description;
    }

    public Optional getDescription() {
        return description;
    }

    public static SetDescription of(final String description) {
        return new SetDescription(Optional.of(description));
    }

    public static SetDescription of(final Optional description) {
        return new SetDescription(description);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy