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

io.sphere.sdk.channels.commands.updateactions.ChangeKey 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;

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

    private ChangeKey(final String key) {
        super("changeKey");
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public static ChangeKey of(final String key) {
        return new ChangeKey(key);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy