io.sphere.sdk.products.ProductDataImpl Maven / Gradle / Ivy
package io.sphere.sdk.products;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Optional;
import io.sphere.sdk.categories.Category;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedStrings;
import io.sphere.sdk.models.Reference;
import java.util.List;
class ProductDataImpl extends Base implements ProductData {
private final LocalizedStrings name;
private final List> categories;
private final Optional description;
private final LocalizedStrings slug;
private final Optional metaTitle;
private final Optional metaDescription;
private final Optional metaKeywords;
private final ProductVariant masterVariant;
private final List variants;
@JsonCreator
ProductDataImpl(final LocalizedStrings name, final List> categories,
final Optional description, final LocalizedStrings slug,
final Optional metaTitle, final Optional metaDescription,
final Optional metaKeywords, final ProductVariant masterVariant,
final List variants) {
this.name = name;
this.categories = categories;
this.description = description;
this.slug = slug;
this.metaTitle = metaTitle;
this.metaDescription = metaDescription;
this.metaKeywords = metaKeywords;
this.masterVariant = masterVariant;
this.variants = variants;
}
public LocalizedStrings getName() {
return name;
}
public List> getCategories() {
return categories;
}
public Optional getDescription() {
return description;
}
public LocalizedStrings getSlug() {
return slug;
}
public Optional getMetaTitle() {
return metaTitle;
}
public Optional getMetaDescription() {
return metaDescription;
}
public Optional getMetaKeywords() {
return metaKeywords;
}
public ProductVariant getMasterVariant() {
return masterVariant;
}
public List getVariants() {
return variants;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy