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

io.sphere.sdk.channels.commands.updateactions.ChangeDescription Maven / Gradle / Ivy

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

import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.LocalizedString;

/**
 * Changes the description of a channel.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.channels.commands.ChannelUpdateCommandTest#changeDescription()}
 */
public class ChangeDescription extends UpdateActionImpl {
    private final LocalizedString description;

    private ChangeDescription(final LocalizedString description) {
        super("changeDescription");
        this.description = description;
    }

    public LocalizedString getDescription() {
        return description;
    }

    public static ChangeDescription of(final LocalizedString description) {
        return new ChangeDescription(description);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy