public final class CategoryDraftBuilder extends Base
| Modifier | Constructor and Description |
|---|---|
protected |
CategoryDraftBuilder(List<AssetDraft> assets,
CustomFieldsDraft custom,
LocalizedString description,
String externalId,
String key,
LocalizedString metaDescription,
LocalizedString metaKeywords,
LocalizedString metaTitle,
LocalizedString name,
String orderHint,
ResourceIdentifier<Category> parent,
LocalizedString slug) |
| Modifier and Type | Method and Description |
|---|---|
T |
assets(List<AssetDraft> assets)
Sets the
assets property of this builder. |
CategoryDraftDsl |
build()
Creates a new instance of
CategoryDraftDsl with the values of this builder. |
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
T |
description(LocalizedString description)
Sets the
description property of this builder. |
T |
externalId(String externalId)
Sets the
externalId property of this builder. |
List<AssetDraft> |
getAssets() |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
String |
getExternalId() |
String |
getKey() |
LocalizedString |
getMetaDescription() |
LocalizedString |
getMetaKeywords() |
LocalizedString |
getMetaTitle() |
LocalizedString |
getName() |
String |
getOrderHint() |
ResourceIdentifier<Category> |
getParent() |
LocalizedString |
getSlug() |
T |
key(String key)
Sets the
key property of this builder. |
T |
metaDescription(LocalizedString metaDescription)
Sets the
metaDescription property of this builder. |
T |
metaKeywords(LocalizedString metaKeywords)
Sets the
metaKeywords property of this builder. |
T |
metaTitle(LocalizedString metaTitle)
Sets the
metaTitle property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static CategoryDraftBuilder |
of(Category template)
Creates a new object initialized with the fields of the template parameter.
|
static CategoryDraftBuilder |
of(CategoryDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static CategoryDraftBuilder |
of(LocalizedString name,
LocalizedString slug)
Creates a new object initialized with the given values.
|
T |
orderHint(String orderHint)
Sets the
orderHint property of this builder. |
CategoryDraftBuilder |
parent(Referenceable<Category> parent)
Deprecated.
use
CategoryDraftBuilderBase.parent(ResourceIdentifier) instead |
T |
parent(ResourceIdentifier<Category> parent)
Sets the
parent property of this builder. |
T |
plusAssets(AssetDraft assets)
Adds
assets parameter to the assets list property of this builder. |
T |
plusAssets(List<AssetDraft> assets)
Concatenate
assets parameter to the assets list property of this builder. |
T |
slug(LocalizedString slug)
Sets the
slug property of this builder. |
protected CategoryDraftBuilder(@Nullable List<AssetDraft> assets, @Nullable CustomFieldsDraft custom, @Nullable LocalizedString description, @Nullable String externalId, @Nullable String key, @Nullable LocalizedString metaDescription, @Nullable LocalizedString metaKeywords, @Nullable LocalizedString metaTitle, LocalizedString name, @Nullable String orderHint, @Nullable ResourceIdentifier<Category> parent, LocalizedString slug)
@Deprecated public CategoryDraftBuilder parent(@Nullable Referenceable<Category> parent)
CategoryDraftBuilderBase.parent(ResourceIdentifier) insteadpublic T assets(@Nullable List<AssetDraft> assets)
assets property of this builder.assets - the value for CategoryDraft.getAssets()public T custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for CategoryDraft.getCustom()public T description(@Nullable LocalizedString description)
description property of this builder.description - the value for CategoryDraft.getDescription()public T externalId(@Nullable String externalId)
externalId property of this builder.externalId - the value for CategoryDraft.getExternalId()public T key(@Nullable String key)
key property of this builder.key - the value for CategoryDraft.getKey()public T metaDescription(@Nullable LocalizedString metaDescription)
metaDescription property of this builder.metaDescription - the value for CategoryDraft.getMetaDescription()public T metaKeywords(@Nullable LocalizedString metaKeywords)
metaKeywords property of this builder.metaKeywords - the value for CategoryDraft.getMetaKeywords()public T metaTitle(@Nullable LocalizedString metaTitle)
metaTitle property of this builder.metaTitle - the value for CategoryDraft.getMetaTitle()public T name(LocalizedString name)
name property of this builder.name - the value for CategoryDraft.getName()public T orderHint(@Nullable String orderHint)
orderHint property of this builder.orderHint - the value for CategoryDraft.getOrderHint()public T parent(@Nullable ResourceIdentifier<Category> parent)
parent property of this builder.parent - the value for CategoryDraft.getParent()public T slug(LocalizedString slug)
slug property of this builder.slug - the value for CategoryDraft.getSlug()@Nullable public List<AssetDraft> getAssets()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public LocalizedString getDescription()
@Nullable public LocalizedString getMetaDescription()
@Nullable public LocalizedString getMetaKeywords()
@Nullable public LocalizedString getMetaTitle()
public LocalizedString getName()
@Nullable public ResourceIdentifier<Category> getParent()
public LocalizedString getSlug()
public T plusAssets(List<AssetDraft> assets)
assets parameter to the assets list property of this builder.assets - the value for CategoryDraft.getAssets()public T plusAssets(AssetDraft assets)
assets parameter to the assets list property of this builder.assets - the value of the element to add to CategoryDraft.getAssets()public CategoryDraftDsl build()
CategoryDraftDsl with the values of this builder.build in interface Builder<CategoryDraftDsl>public static CategoryDraftBuilder of(LocalizedString name, LocalizedString slug)
name - initial value for the CategoryDraft.getName() propertyslug - initial value for the CategoryDraft.getSlug() propertypublic static CategoryDraftBuilder of(CategoryDraft template)
template - the templatepublic static CategoryDraftBuilder of(Category template)
template - the template