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

io.sphere.sdk.extensions.ExtensionDraft Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.extensions;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.FactoryMethod;
import io.sphere.sdk.annotations.ResourceDraftValue;
import io.sphere.sdk.models.WithKey;

import javax.annotation.Nullable;
import java.util.List;

@JsonDeserialize(as = ExtensionDraftDsl.class)
@ResourceDraftValue(
        factoryMethods = {
                @FactoryMethod(parameterNames = {"key", "destination", "triggers", "timeoutInMs"}),
                @FactoryMethod(parameterNames = {"key", "destination", "triggers"}),
                @FactoryMethod(parameterNames = {"destination", "triggers"})})
public interface ExtensionDraft extends WithKey{

    @Override
    @Nullable
    String getKey();

    Destination getDestination();

    List getTriggers();

    @Nullable
    Long getTimeoutInMs();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy