Class OrderEditBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderEdit>
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.Present on resources created after 1 February 2019 except for events not tracked.createdBy
(Function<CreatedByBuilder, CreatedByBuilder> builder) Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources created after 1 February 2019 except for events not tracked.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.Present on resources created after 1 February 2019 except for events not tracked.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) Present on resources created after 1 February 2019 except for events not tracked.Present on resources created after 1 February 2019 except for events not tracked.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, io.vrap.rmf.base.client.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, io.vrap.rmf.base.client.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) Present on resources created after 1 February 2019 except for events not tracked.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields of the Order Edit.Present on resources created after 1 February 2019 except for events not tracked.Reference to the Order updated with this edit.withStagedActions
(Function<StagedOrderUpdateActionBuilder, io.vrap.rmf.base.client.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, io.vrap.rmf.base.client.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, io.vrap.rmf.base.client.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, io.vrap.rmf.base.client.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) Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
withLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the lastModifiedBy value- Returns:
- Builder
-
lastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
lastModifiedBy
- value to be set- Returns:
- Builder
-
createdBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
withCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Parameters:
builder
- function to build the createdBy value- Returns:
- Builder
-
createdBy
Present on resources created after 1 February 2019 except for events not tracked.
- 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
Present on resources created after 1 February 2019 except for events not tracked.
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Returns:
- createdBy
-
build
builds OrderEdit with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<OrderEdit>
- Returns:
- OrderEdit
-
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
-