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

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

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

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.shippingmethods.ShippingMethod;

import java.util.Optional;

/**
 *
 * {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodUpdateCommandTest#setDescription()}
 */
public class SetDescription extends UpdateAction {
    private final Optional description;

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

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

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

    public Optional getDescription() {
        return description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy