io.sphere.sdk.channels.ChannelDraft Maven / Gradle / Ivy
package io.sphere.sdk.channels;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.WithKey;
import javax.annotation.Nullable;
import java.util.Set;
/**
* Template to create a new Channel.
*
* {@include.example io.sphere.sdk.channels.commands.ChannelCreateCommandIntegrationTest#execution()}
*
* @see ChannelDraftBuilder
* @see ChannelDraftDsl
*/
@JsonDeserialize(as = ChannelDraftDsl.class)
public interface ChannelDraft extends WithKey {
String getKey();
@Nullable
Set getRoles();
@Nullable
LocalizedString getName();
@Nullable
LocalizedString getDescription();
static ChannelDraftDsl of(final String key) {
return ChannelDraftDsl.of(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy