Class UserProvidedIdentifiersBuilder
- All Implemented Interfaces:
Builder<UserProvidedIdentifiers>
Example to create an instance using the builder pattern
UserProvidedIdentifiers userProvidedIdentifiers = UserProvidedIdentifiers.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds UserProvidedIdentifiers with checking for non-null required valuesbuilds UserProvidedIdentifiers without checking for non-null required valuescontainerAndKey
(ContainerAndKey containerAndKey) Unique identifier of a Custom Object.Unique identifier of a Custom Object.customerNumber
(String customerNumber) User-provided unique identifier of a Customer.externalId
(String externalId) User-provided unique identifier of the resource.Unique identifier of a Custom Object.User-provided unique identifier of a Customer.User-provided unique identifier of the resource.getKey()
User-provided unique identifier of the resource.User-provided unique identifier of an Order.getSku()
Unique SKU of a Product Variant.getSlug()
Unique identifier usually used in deep-link URLs for a Product.User-provided unique identifier of the resource.of()
factory method for an instance of UserProvidedIdentifiersBuilderof
(UserProvidedIdentifiers template) create builder for UserProvidedIdentifiers instanceorderNumber
(String orderNumber) User-provided unique identifier of an Order.Unique SKU of a Product Variant.slug
(LocalizedString slug) Unique identifier usually used in deep-link URLs for a Product.Unique identifier usually used in deep-link URLs for a Product.Unique identifier of a Custom Object.Unique identifier usually used in deep-link URLs for a Product.
-
Constructor Details
-
UserProvidedIdentifiersBuilder
public UserProvidedIdentifiersBuilder()
-
-
Method Details
-
key
User-provided unique identifier of the resource.
- Parameters:
key
- value to be set- Returns:
- Builder
-
externalId
User-provided unique identifier of the resource.
- Parameters:
externalId
- value to be set- Returns:
- Builder
-
orderNumber
User-provided unique identifier of an Order.
- Parameters:
orderNumber
- value to be set- Returns:
- Builder
-
customerNumber
User-provided unique identifier of a Customer.
- Parameters:
customerNumber
- value to be set- Returns:
- Builder
-
sku
Unique SKU of a Product Variant.
- Parameters:
sku
- value to be set- Returns:
- Builder
-
slug
public UserProvidedIdentifiersBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the
current
Product Projection.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public UserProvidedIdentifiersBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the
current
Product Projection.- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the
current
Product Projection.- Parameters:
slug
- value to be set- Returns:
- Builder
-
containerAndKey
public UserProvidedIdentifiersBuilder containerAndKey(Function<ContainerAndKeyBuilder, ContainerAndKeyBuilder> builder) Unique identifier of a Custom Object.
- Parameters:
builder
- function to build the containerAndKey value- Returns:
- Builder
-
withContainerAndKey
public UserProvidedIdentifiersBuilder withContainerAndKey(Function<ContainerAndKeyBuilder, ContainerAndKey> builder) Unique identifier of a Custom Object.
- Parameters:
builder
- function to build the containerAndKey value- Returns:
- Builder
-
containerAndKey
Unique identifier of a Custom Object.
- Parameters:
containerAndKey
- value to be set- Returns:
- Builder
-
getKey
User-provided unique identifier of the resource.
- Returns:
- key
-
getExternalId
User-provided unique identifier of the resource.
- Returns:
- externalId
-
getOrderNumber
User-provided unique identifier of an Order.
- Returns:
- orderNumber
-
getCustomerNumber
User-provided unique identifier of a Customer.
- Returns:
- customerNumber
-
getSku
Unique SKU of a Product Variant.
- Returns:
- sku
-
getSlug
Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the
current
Product Projection.- Returns:
- slug
-
getContainerAndKey
Unique identifier of a Custom Object.
- Returns:
- containerAndKey
-
build
builds UserProvidedIdentifiers with checking for non-null required values- Specified by:
build
in interfaceBuilder<UserProvidedIdentifiers>
- Returns:
- UserProvidedIdentifiers
-
buildUnchecked
builds UserProvidedIdentifiers without checking for non-null required values- Returns:
- UserProvidedIdentifiers
-
of
factory method for an instance of UserProvidedIdentifiersBuilder- Returns:
- builder
-
of
create builder for UserProvidedIdentifiers instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-