Class CategoryImportBuilder
- All Implemented Interfaces:
Builder<CategoryImport>
Example to create an instance using the builder pattern
CategoryImport categoryImport = CategoryImport.builder()
.key("{key}")
.name(nameBuilder -> nameBuilder)
.slug(slugBuilder -> slugBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssets(Function<AssetBuilder, Asset> builder) Maps toCategory.assets.Maps toCategory.assets.Maps toCategory.assets.build()builds CategoryImport with checking for non-null required valuesbuilds CategoryImport without checking for non-null required valuesMaps toCategory.custom.custom(Function<CustomBuilder, CustomBuilder> builder) Maps toCategory.custom.description(LocalizedString description) Maps toCategory.description.Maps toCategory.description.externalId(String externalId) Maps toCategory.externalId.Maps toCategory.assets.Maps toCategory.custom.Maps toCategory.description.Maps toCategory.externalId.getKey()User-defined unique identifier.Maps toCategory.metaDescription.Maps toCategory.metaKeywords.Maps toCategory.metaTitle.getName()Maps toCategory.name.Maps toCategory.orderHint.Maps toCategory.parent.getSlug()Maps toCategory.slug.User-defined unique identifier.metaDescription(LocalizedString metaDescription) Maps toCategory.metaDescription.Maps toCategory.metaDescription.metaKeywords(LocalizedString metaKeywords) Maps toCategory.metaKeywords.Maps toCategory.metaKeywords.metaTitle(LocalizedString metaTitle) Maps toCategory.metaTitle.Maps toCategory.metaTitle.name(LocalizedString name) Maps toCategory.name.Maps toCategory.name.static CategoryImportBuilderof()factory method for an instance of CategoryImportBuilderstatic CategoryImportBuilderof(CategoryImport template) create builder for CategoryImport instanceMaps toCategory.orderHint.parent(CategoryKeyReference parent) Maps toCategory.parent.Maps toCategory.parent.plusAssets(Asset... assets) Maps toCategory.assets.plusAssets(Function<AssetBuilder, AssetBuilder> builder) Maps toCategory.assets.setAssets(Function<AssetBuilder, Asset> builder) Maps toCategory.assets.slug(LocalizedString slug) Maps toCategory.slug.Maps toCategory.slug.withAssets(Function<AssetBuilder, AssetBuilder> builder) Maps toCategory.assets.withCustom(Function<CustomBuilder, Custom> builder) Maps toCategory.custom.Maps toCategory.description.Maps toCategory.metaDescription.Maps toCategory.metaKeywords.Maps toCategory.metaTitle.Maps toCategory.name.Maps toCategory.parent.Maps toCategory.slug.
-
Constructor Details
-
CategoryImportBuilder
public CategoryImportBuilder()
-
-
Method Details
-
key
User-defined unique identifier. If a Category with this
keyexists, it is updated with the imported data.- Parameters:
key- value to be set- Returns:
- Builder
-
name
Maps to
Category.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
Maps to
Category.name.- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
Maps to
Category.name.- Parameters:
name- value to be set- Returns:
- Builder
-
slug
Maps to
Category.slug. Must match the pattern^[A-Za-z0-9_-]{2,256}+$.- Parameters:
builder- function to build the slug value- Returns:
- Builder
-
withSlug
Maps to
Category.slug. Must match the pattern^[A-Za-z0-9_-]{2,256}+$.- Parameters:
builder- function to build the slug value- Returns:
- Builder
-
slug
Maps to
Category.slug. Must match the pattern^[A-Za-z0-9_-]{2,256}+$.- Parameters:
slug- value to be set- Returns:
- Builder
-
description
public CategoryImportBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
Category.description.- Parameters:
builder- function to build the description value- Returns:
- Builder
-
withDescription
public CategoryImportBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
Category.description.- Parameters:
builder- function to build the description value- Returns:
- Builder
-
description
Maps to
Category.description.- Parameters:
description- value to be set- Returns:
- Builder
-
parent
public CategoryImportBuilder parent(Function<CategoryKeyReferenceBuilder, CategoryKeyReferenceBuilder> builder) Maps to
Category.parent. If the referenced Category does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Category is created.- Parameters:
builder- function to build the parent value- Returns:
- Builder
-
withParent
public CategoryImportBuilder withParent(Function<CategoryKeyReferenceBuilder, CategoryKeyReference> builder) Maps to
Category.parent. If the referenced Category does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Category is created.- Parameters:
builder- function to build the parent value- Returns:
- Builder
-
parent
Maps to
Category.parent. If the referenced Category does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Category is created.- Parameters:
parent- value to be set- Returns:
- Builder
-
orderHint
Maps to
Category.orderHint.- Parameters:
orderHint- value to be set- Returns:
- Builder
-
externalId
Maps to
Category.externalId.- Parameters:
externalId- value to be set- Returns:
- Builder
-
metaTitle
public CategoryImportBuilder metaTitle(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
Category.metaTitle.- Parameters:
builder- function to build the metaTitle value- Returns:
- Builder
-
withMetaTitle
public CategoryImportBuilder withMetaTitle(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
Category.metaTitle.- Parameters:
builder- function to build the metaTitle value- Returns:
- Builder
-
metaTitle
Maps to
Category.metaTitle.- Parameters:
metaTitle- value to be set- Returns:
- Builder
-
metaDescription
public CategoryImportBuilder metaDescription(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
Category.metaDescription.- Parameters:
builder- function to build the metaDescription value- Returns:
- Builder
-
withMetaDescription
public CategoryImportBuilder withMetaDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
Category.metaDescription.- Parameters:
builder- function to build the metaDescription value- Returns:
- Builder
-
metaDescription
Maps to
Category.metaDescription.- Parameters:
metaDescription- value to be set- Returns:
- Builder
-
metaKeywords
public CategoryImportBuilder metaKeywords(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Maps to
Category.metaKeywords.- Parameters:
builder- function to build the metaKeywords value- Returns:
- Builder
-
withMetaKeywords
public CategoryImportBuilder withMetaKeywords(Function<LocalizedStringBuilder, LocalizedString> builder) Maps to
Category.metaKeywords.- Parameters:
builder- function to build the metaKeywords value- Returns:
- Builder
-
metaKeywords
Maps to
Category.metaKeywords.- Parameters:
metaKeywords- value to be set- Returns:
- Builder
-
assets
Maps to
Category.assets.- Parameters:
assets- value to be set- Returns:
- Builder
-
assets
Maps to
Category.assets.- Parameters:
assets- value to be set- Returns:
- Builder
-
plusAssets
Maps to
Category.assets.- Parameters:
assets- value to be set- Returns:
- Builder
-
plusAssets
Maps to
Category.assets.- Parameters:
builder- function to build the assets value- Returns:
- Builder
-
withAssets
Maps to
Category.assets.- Parameters:
builder- function to build the assets value- Returns:
- Builder
-
addAssets
Maps to
Category.assets.- Parameters:
builder- function to build the assets value- Returns:
- Builder
-
setAssets
Maps to
Category.assets.- Parameters:
builder- function to build the assets value- Returns:
- Builder
-
custom
Maps to
Category.custom.- Parameters:
builder- function to build the custom value- Returns:
- Builder
-
withCustom
Maps to
Category.custom.- Parameters:
builder- function to build the custom value- Returns:
- Builder
-
custom
Maps to
Category.custom.- Parameters:
custom- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier. If a Category with this
keyexists, it is updated with the imported data.- Returns:
- key
-
getName
Maps to
Category.name.- Returns:
- name
-
getSlug
Maps to
Category.slug. Must match the pattern^[A-Za-z0-9_-]{2,256}+$.- Returns:
- slug
-
getDescription
Maps to
Category.description.- Returns:
- description
-
getParent
Maps to
Category.parent. If the referenced Category does not exist, thestateof the ImportOperation will be set tounresolveduntil the referenced Category is created.- Returns:
- parent
-
getOrderHint
Maps to
Category.orderHint.- Returns:
- orderHint
-
getExternalId
Maps to
Category.externalId.- Returns:
- externalId
-
getMetaTitle
Maps to
Category.metaTitle.- Returns:
- metaTitle
-
getMetaDescription
Maps to
Category.metaDescription.- Returns:
- metaDescription
-
getMetaKeywords
Maps to
Category.metaKeywords.- Returns:
- metaKeywords
-
getAssets
Maps to
Category.assets.- Returns:
- assets
-
getCustom
Maps to
Category.custom.- Returns:
- custom
-
build
builds CategoryImport with checking for non-null required values- Specified by:
buildin interfaceBuilder<CategoryImport>- Returns:
- CategoryImport
-
buildUnchecked
builds CategoryImport without checking for non-null required values- Returns:
- CategoryImport
-
of
factory method for an instance of CategoryImportBuilder- Returns:
- builder
-
of
create builder for CategoryImport instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-