Class OrderEditBuilder
Example to create an instance using the builder pattern
OrderEdit orderEdit = OrderEdit.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.resource(resourceBuilder -> resourceBuilder)
.plusStagedActions(stagedActionsBuilder -> stagedActionsBuilder)
.result(resultBuilder -> resultBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEdit with checking for non-null required valuesbuilds OrderEdit without checking for non-null required valuesUser-defined information regarding the Order Edit.createdAt
(ZonedDateTime createdAt) Date and time (UTC) the Order Edit was initially created.IDs and references that created the OrderEdit.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) IDs and references that created the OrderEdit.custom
(CustomFields custom) Custom Fields of the Order Edit.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields of the Order Edit.User-defined information regarding the Order Edit.Date and time (UTC) the Order Edit was initially created.IDs and references that created the OrderEdit.Custom Fields of the Order Edit.getId()
Unique identifier of the Order Edit.getKey()
User-defined unique identifier of the Order Edit.Date and time (UTC) the Order Edit was last updated.IDs and references that last modified the OrderEdit.Reference to the Order updated with this edit.For applied edits, it's a summary of the changes on the Order.Update actions applied to the Order referenced byresource
.Current version of the Order Edit.Unique identifier of the Order Edit.User-defined unique identifier of the Order Edit.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Order Edit was last updated.lastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the OrderEdit.IDs and references that last modified the OrderEdit.static OrderEditBuilder
of()
factory method for an instance of OrderEditBuilderstatic OrderEditBuilder
create builder for OrderEdit instanceplusStagedActions
(StagedOrderUpdateAction... stagedActions) Update actions applied to the Order referenced byresource
.plusStagedActions
(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions applied to the Order referenced byresource
.resource
(OrderReference resource) Reference to the Order updated with this edit.Reference to the Order updated with this edit.result
(OrderEditResult result) For applied edits, it's a summary of the changes on the Order.result
(Function<OrderEditResultBuilder, Builder<? extends OrderEditResult>> builder) For applied edits, it's a summary of the changes on the Order.stagedActions
(StagedOrderUpdateAction... stagedActions) Update actions applied to the Order referenced byresource
.stagedActions
(List<StagedOrderUpdateAction> stagedActions) Update actions applied to the Order referenced byresource
.Current version of the Order Edit.withCreatedBy
(Function<CreatedByBuilder, CreatedBy> builder) IDs and references that created the OrderEdit.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Order Edit.IDs and references that last modified the OrderEdit.Reference to the Order updated with this edit.withStagedActions
(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions applied to the Order referenced byresource
.
-
Constructor Details
-
OrderEditBuilder
public OrderEditBuilder()
-
-
Method Details
-
id
Unique identifier of the Order Edit.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current version of the Order Edit.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Order Edit was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Order Edit.
- Parameters:
key
- value to be set- Returns:
- Builder
-
resource
Reference to the Order updated with this edit.
- Parameters:
builder
- function to build the resource value- Returns:
- Builder
-
withResource
Reference to the Order updated with this edit.
- Parameters:
builder
- function to build the resource value- Returns:
- Builder
-
resource
Reference to the Order updated with this edit.
- Parameters:
resource
- value to be set- Returns:
- Builder
-
stagedActions
Update actions applied to the Order referenced by
resource
.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
stagedActions
Update actions applied to the Order referenced by
resource
.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
plusStagedActions
Update actions applied to the Order referenced by
resource
.- Parameters:
stagedActions
- value to be set- Returns:
- Builder
-
plusStagedActions
public OrderEditBuilder plusStagedActions(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions applied to the Order referenced by
resource
.- Parameters:
builder
- function to build the stagedActions value- Returns:
- Builder
-
withStagedActions
public OrderEditBuilder withStagedActions(Function<StagedOrderUpdateActionBuilder, Builder<? extends StagedOrderUpdateAction>> builder) Update actions applied to the Order referenced by
resource
.- Parameters:
builder
- function to build the stagedActions value- Returns:
- Builder
-
result
For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes.
- Parameters:
result
- value to be set- Returns:
- Builder
-
result
public OrderEditBuilder result(Function<OrderEditResultBuilder, Builder<? extends OrderEditResult>> builder) For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes.
- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
comment
User-defined information regarding the Order Edit.
- Parameters:
comment
- value to be set- Returns:
- Builder
-
custom
Custom Fields of the Order Edit.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
Custom Fields of the Order Edit.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields of the Order Edit.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
lastModifiedBy
public OrderEditBuilder lastModifiedBy(Function<LastModifiedByBuilder, LastModifiedByBuilder> builder) IDs and references that last modified the OrderEdit.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
IDs and references that last modified the OrderEdit.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
IDs and references that last modified the OrderEdit.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
IDs and references that created the OrderEdit.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
IDs and references that created the OrderEdit.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
IDs and references that created the OrderEdit.
- Parameters:
createdBy
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Order Edit.
- Returns:
- id
-
getVersion
Current version of the Order Edit.
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Order Edit was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Order Edit was last updated.
- Returns:
- lastModifiedAt
-
getKey
User-defined unique identifier of the Order Edit.
- Returns:
- key
-
getResource
Reference to the Order updated with this edit.
- Returns:
- resource
-
getStagedActions
Update actions applied to the Order referenced by
resource
.- Returns:
- stagedActions
-
getResult
For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes.
- Returns:
- result
-
getComment
User-defined information regarding the Order Edit.
- Returns:
- comment
-
getCustom
Custom Fields of the Order Edit.
- Returns:
- custom
-
getLastModifiedBy
IDs and references that last modified the OrderEdit.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the OrderEdit.
- Returns:
- createdBy
-
build
builds OrderEdit with checking for non-null required values -
buildUnchecked
builds OrderEdit without checking for non-null required values- Returns:
- OrderEdit
-
of
factory method for an instance of OrderEditBuilder- Returns:
- builder
-
of
create builder for OrderEdit instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-