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
-
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 (published) data of the ProductTailoring.Current (published) data of the ProductTailoring.Date and time (UTC) the ProductTailoring was initially created.IDs and references that created the ProductTailoring.Current (published) data of the ProductTailoring.true
if thestaged
data is different from thecurrent
data.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.true
if the ProductTailoring is published.Staged (unpublished) 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) true
if thestaged
data is different from thecurrent
data.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 ProductTailoringBuilder
of()
factory method for an instance of ProductTailoringBuilderstatic ProductTailoringBuilder
of
(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.true
if the ProductTailoring is published.staged
(ProductTailoringData staged) Staged (unpublished) data of the ProductTailoring.Staged (unpublished) 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 (published) data of the ProductTailoring.IDs and references that last modified the ProductTailoring.Reference to the Product the ProductTailoring belongs to.Staged (unpublished) 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
true
if the ProductTailoring is published.- Parameters:
published
- value to be set- Returns:
- Builder
-
current
public ProductTailoringBuilder current(Function<ProductTailoringDataBuilder, ProductTailoringDataBuilder> builder) Current (published) data of the ProductTailoring.
- Parameters:
builder
- function to build the current value- Returns:
- Builder
-
withCurrent
public ProductTailoringBuilder withCurrent(Function<ProductTailoringDataBuilder, ProductTailoringData> builder) Current (published) data of the ProductTailoring.
- Parameters:
builder
- function to build the current value- Returns:
- Builder
-
current
Current (published) data of the ProductTailoring.
- Parameters:
current
- value to be set- Returns:
- Builder
-
staged
public ProductTailoringBuilder staged(Function<ProductTailoringDataBuilder, ProductTailoringDataBuilder> builder) Staged (unpublished) data of the ProductTailoring.
- Parameters:
builder
- function to build the staged value- Returns:
- Builder
-
withStaged
public ProductTailoringBuilder withStaged(Function<ProductTailoringDataBuilder, ProductTailoringData> builder) Staged (unpublished) data of the ProductTailoring.
- Parameters:
builder
- function to build the staged value- Returns:
- Builder
-
staged
Staged (unpublished) data of the ProductTailoring.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
hasStagedChanges
true
if thestaged
data is different from thecurrent
data.- 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
true
if the ProductTailoring is published.- Returns:
- published
-
getCurrent
Current (published) data of the ProductTailoring.
- Returns:
- current
-
getStaged
Staged (unpublished) data of the ProductTailoring.
- Returns:
- staged
-
getHasStagedChanges
true
if thestaged
data is different from thecurrent
data.- 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:
build
in 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
-