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

io.sphere.sdk.models.AssetDraft Maven / Gradle / Ivy

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

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.CopyFactoryMethod;
import io.sphere.sdk.annotations.FactoryMethod;
import io.sphere.sdk.annotations.ResourceDraftValue;
import io.sphere.sdk.types.CustomDraft;
import io.sphere.sdk.types.CustomFieldsDraft;

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

/**
 * Draft for an {@link Asset}.
 *
 * @see AssetDraftBuilder
 */
@JsonDeserialize(as = AssetDraftDsl.class)
@ResourceDraftValue(
        abstractBuilderClass = true,
        copyFactoryMethods = @CopyFactoryMethod(Asset.class),
        factoryMethods = @FactoryMethod(parameterNames = { "sources", "name"}))
public interface AssetDraft extends CustomDraft, WithKey{

    @Override
    String getKey();

    List getSources();

    LocalizedString getName();

    @Nullable
    LocalizedString getDescription();

    @Nullable
    Set getTags();

    @Override
    @Nullable
    CustomFieldsDraft getCustom();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy