io.sphere.sdk.channels.commands.ChannelCreateCommand Maven / Gradle / Ivy
package io.sphere.sdk.channels.commands;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.channels.ChannelDraft;
import io.sphere.sdk.commands.CreateCommandImpl;
/** Creates a channel.
Example:
{@include.example io.sphere.sdk.channels.ChannelIntegrationTest#createChannel()}
@see io.sphere.sdk.channels.ChannelDraftBuilder
*/
public class ChannelCreateCommand extends CreateCommandImpl {
private ChannelCreateCommand(final ChannelDraft body) {
super(body, ChannelsEndpoint.ENDPOINT);
}
public static ChannelCreateCommand of(final ChannelDraft draft) {
return new ChannelCreateCommand(draft);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy