Class ProductTailoringBuilder
- All Implemented Interfaces:
Builder<ProductTailoring>
Example to create an instance using the builder pattern
ProductTailoring productTailoring = ProductTailoring.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.published(true)
.current(currentBuilder -> currentBuilder)
.staged(stagedBuilder -> stagedBuilder)
.hasStagedChanges(true)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTailoring with checking for non-null required valuesbuilds ProductTailoring without checking for non-null required valuescreatedAt(ZonedDateTime createdAt) Date and time (UTC) the ProductTailoring was initially created.IDs and references that created the ProductTailoring.createdBy(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the ProductTailoring.current(ProductTailoringData current) Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.Date and time (UTC) the ProductTailoring was initially created.IDs and references that created the ProductTailoring.Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.trueif thestageddata is different from thecurrentdata.getId()Unique identifier of the ProductTailoring.getKey()User-defined unique identifier of the ProductTailoring.Date and time (UTC) the ProductTailoring was last updated.IDs and references that last modified the ProductTailoring.Reference to the Product the ProductTailoring belongs to.Iftrue, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store.Staged data of the ProductTailoring.getStore()The Store to which the ProductTailoring belongs.Current version of the ProductTailoring.Warnings about processing of a request.hasStagedChanges(Boolean hasStagedChanges) trueif thestageddata is different from thecurrentdata.Unique identifier of the ProductTailoring.User-defined unique identifier of the ProductTailoring.lastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the ProductTailoring was last updated.lastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the ProductTailoring.IDs and references that last modified the ProductTailoring.static ProductTailoringBuilderof()factory method for an instance of ProductTailoringBuilderstatic ProductTailoringBuilderof(ProductTailoring template) create builder for ProductTailoring instanceplusWarnings(WarningObject... warnings) Warnings about processing of a request.plusWarnings(Function<WarningObjectBuilder, Builder<? extends WarningObject>> builder) Warnings about processing of a request.product(ProductReference product) Reference to the Product the ProductTailoring belongs to.Reference to the Product the ProductTailoring belongs to.Iftrue, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store.staged(ProductTailoringData staged) Staged data of the ProductTailoring.Staged data of the ProductTailoring.store(StoreKeyReference store) The Store to which the ProductTailoring belongs.The Store to which the ProductTailoring belongs.Current version of the ProductTailoring.warnings(WarningObject... warnings) Warnings about processing of a request.warnings(List<WarningObject> warnings) Warnings about processing of a request.withCreatedBy(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the ProductTailoring.Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.IDs and references that last modified the ProductTailoring.Reference to the Product the ProductTailoring belongs to.Staged data of the ProductTailoring.The Store to which the ProductTailoring belongs.withWarnings(Function<WarningObjectBuilder, Builder<? extends WarningObject>> builder) Warnings about processing of a request.
-
Constructor Details
-
ProductTailoringBuilder
public ProductTailoringBuilder()
-
-
Method Details
-
id
Unique identifier of the ProductTailoring.
- Parameters:
id- value to be set- Returns:
- Builder
-
version
Current version of the ProductTailoring.
- Parameters:
version- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the ProductTailoring was initially created.
- Parameters:
createdAt- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the ProductTailoring was last updated.
- Parameters:
lastModifiedAt- value to be set- Returns:
- Builder
-
lastModifiedBy
public ProductTailoringBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the ProductTailoring.
- Parameters:
builder- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
public ProductTailoringBuilder withLastModifiedBy(Function<LastModifiedByBuilder, LastModifiedBy> builder) IDs and references that last modified the ProductTailoring.
- Parameters:
builder- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the ProductTailoring.
- Parameters:
lastModifiedBy- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the ProductTailoring.
- Parameters:
builder- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the ProductTailoring.
- Parameters:
builder- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the ProductTailoring.
- Parameters:
createdBy- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the ProductTailoring.
- Parameters:
key- value to be set- Returns:
- Builder
-
store
public ProductTailoringBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store to which the ProductTailoring belongs.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
withStore
public ProductTailoringBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Store to which the ProductTailoring belongs.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
store
The Store to which the ProductTailoring belongs.
- Parameters:
store- value to be set- Returns:
- Builder
-
product
public ProductTailoringBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product the ProductTailoring belongs to.
- Parameters:
builder- function to build the product value- Returns:
- Builder
-
withProduct
public ProductTailoringBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product the ProductTailoring belongs to.
- Parameters:
builder- function to build the product value- Returns:
- Builder
-
product
Reference to the Product the ProductTailoring belongs to.
- Parameters:
product- value to be set- Returns:
- Builder
-
published
If
true, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. Iffalse, only the original information contained in the ProductData is provided.- Parameters:
published- value to be set- Returns:
- Builder
-
current
public ProductTailoringBuilder current(Function<ProductTailoringDataBuilder, ProductTailoringDataBuilder> builder) Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.
- Parameters:
builder- function to build the current value- Returns:
- Builder
-
withCurrent
public ProductTailoringBuilder withCurrent(Function<ProductTailoringDataBuilder, ProductTailoringData> builder) Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.
- Parameters:
builder- function to build the current value- Returns:
- Builder
-
current
Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.
- Parameters:
current- value to be set- Returns:
- Builder
-
staged
public ProductTailoringBuilder staged(Function<ProductTailoringDataBuilder, ProductTailoringDataBuilder> builder) Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.
- Parameters:
builder- function to build the staged value- Returns:
- Builder
-
withStaged
public ProductTailoringBuilder withStaged(Function<ProductTailoringDataBuilder, ProductTailoringData> builder) Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.
- Parameters:
builder- function to build the staged value- Returns:
- Builder
-
staged
Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.
- Parameters:
staged- value to be set- Returns:
- Builder
-
hasStagedChanges
trueif thestageddata is different from thecurrentdata.- Parameters:
hasStagedChanges- value to be set- Returns:
- Builder
-
warnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
warnings- value to be set- Returns:
- Builder
-
warnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
warnings- value to be set- Returns:
- Builder
-
plusWarnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
warnings- value to be set- Returns:
- Builder
-
plusWarnings
public ProductTailoringBuilder plusWarnings(Function<WarningObjectBuilder, Builder<? extends WarningObject>> builder) Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
builder- function to build the warnings value- Returns:
- Builder
-
withWarnings
public ProductTailoringBuilder withWarnings(Function<WarningObjectBuilder, Builder<? extends WarningObject>> builder) Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Parameters:
builder- function to build the warnings value- Returns:
- Builder
-
getId
Unique identifier of the ProductTailoring.
- Returns:
- id
-
getVersion
Current version of the ProductTailoring.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ProductTailoring was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ProductTailoring was last updated.
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the ProductTailoring.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the ProductTailoring.
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the ProductTailoring.
- Returns:
- key
-
getStore
The Store to which the ProductTailoring belongs.
- Returns:
- store
-
getProduct
Reference to the Product the ProductTailoring belongs to.
- Returns:
- product
-
getPublished
If
true, the tailored information contained in thecurrentProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. Iffalse, only the original information contained in the ProductData is provided.- Returns:
- published
-
getCurrent
Current data of the ProductTailoring returned in the Product Projection response when the ProductTailoring is published.
- Returns:
- current
-
getStaged
Staged data of the ProductTailoring. This data is not returned in the Product Projection response by default.
- Returns:
- staged
-
getHasStagedChanges
trueif thestageddata is different from thecurrentdata.- Returns:
- hasStagedChanges
-
getWarnings
Warnings about processing of a request. Appears in response to requests with response status code
202 Accepted.- Returns:
- warnings
-
build
builds ProductTailoring with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoring>- Returns:
- ProductTailoring
-
buildUnchecked
builds ProductTailoring without checking for non-null required values- Returns:
- ProductTailoring
-
of
factory method for an instance of ProductTailoringBuilder- Returns:
- builder
-
of
create builder for ProductTailoring instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-