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

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

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

import io.sphere.sdk.types.CustomFieldsDraft;

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

final class AssetDraftImpl implements AssetDraft {
    private final List sources;
    private final LocalizedString name;
    @Nullable
    private final LocalizedString description;
    @Nullable
    private final Set tags;
    @Nullable
    private final CustomFieldsDraft custom;

    AssetDraftImpl(final List sources, final LocalizedString name, final LocalizedString description, final Set tags, final CustomFieldsDraft custom) {
        this.sources = sources;
        this.name = name;
        this.description = description;
        this.tags = tags;
        this.custom = custom;
    }

    @Override
    public List getSources() {
        return sources;
    }

    @Override
    public LocalizedString getName() {
        return name;
    }

    @Override
    @Nullable
    public LocalizedString getDescription() {
        return description;
    }

    @Override
    @Nullable
    public Set getTags() {
        return tags;
    }

    @Override
    @Nullable
    public CustomFieldsDraft getCustom() {
        return custom;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy