/** * Creates a new object initialized with the given values. * * @param name initial value for the {@link CategoryDraft#getName()} property * @param slug initial value for the {@link CategoryDraft#getSlug()} property * @return new object initialized with the given values */ public static CategoryDraftDsl of(final LocalizedString name, final LocalizedString slug) { return new CategoryDraftDsl(null, null, null, null, null, null, null, null, name, null, null, slug); }
public CategoryDraftDsl withOrderHint(@Nullable final String orderHint) { return newBuilder().orderHint(orderHint).build(); }
public CategoryDraftDsl withCustom(@Nullable final CustomFieldsDraft custom) { return newBuilder().custom(custom).build(); }
public CategoryDraftDsl withMetaDescription(@Nullable final LocalizedString metaDescription) { return newBuilder().metaDescription(metaDescription).build(); }
/** * Creates a new instance of {@code CategoryDraftDsl} with the values of this builder. * * @return the instance */ public CategoryDraftDsl build() { return new CategoryDraftDsl(assets, custom, description, externalId, key, metaDescription, metaKeywords, metaTitle, name, orderHint, parent, slug); }
public CategoryDraftDsl withParent(@Nullable final ResourceIdentifier<Category> parent) { return newBuilder().parent(parent).build(); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static CategoryDraftDsl of(final CategoryDraft template) { return new CategoryDraftDsl(template.getAssets(), template.getCustom(), template.getDescription(), template.getExternalId(), template.getKey(), template.getMetaDescription(), template.getMetaKeywords(), template.getMetaTitle(), template.getName(), template.getOrderHint(), template.getParent(), template.getSlug()); } }
public CategoryDraftDsl withKey(@Nullable final String key) { return newBuilder().key(key).build(); }
public CategoryDraftDsl withMetaKeywords(@Nullable final LocalizedString metaKeywords) { return newBuilder().metaKeywords(metaKeywords).build(); }
public CategoryDraftDsl withMetaTitle(@Nullable final LocalizedString metaTitle) { return newBuilder().metaTitle(metaTitle).build(); }
public CategoryDraftDsl withAssets(@Nullable final List<AssetDraft> assets) { return newBuilder().assets(assets).build(); }
public CategoryDraftDsl withDescription(@Nullable final LocalizedString description) { return newBuilder().description(description).build(); }
public CategoryDraftDsl withExternalId(@Nullable final String externalId) { return newBuilder().externalId(externalId).build(); }
public CategoryDraftDsl withName(final LocalizedString name) { return newBuilder().name(name).build(); }
public CategoryDraftDsl withSlug(final LocalizedString slug) { return newBuilder().slug(slug).build(); }