Class ApprovalRuleImpl
- All Implemented Interfaces:
ApprovalRule
,BaseResource
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The hierarchy of approvers within the Approval Rule.The Business Unit the Approval Rule belongs to.Date and time (UTC) the Approval Rule was initially created.Present on resources created after 1 February 2019 except for events not tracked.Description of the Approval Rule.getId()
Unique identifier of the Approval Rule.getKey()
User-defined unique identifier of the Approval Rule.Date and time (UTC) the Approval Rule was last updated.Present on resources created after 1 February 2019 except for events not tracked.getName()
Name of the Approval Rule.The Order Predicate describing the Orders the Approval Rule should match against.The Associate Roles customers must hold for their Order to require approval.Indicates whether the Approval Rule should be matched against Orders or not.Current version of the Approval Rule.int
hashCode()
void
setApprovers
(ApproverHierarchy approvers) The hierarchy of approvers within the Approval Rule.void
setBusinessUnit
(BusinessUnitKeyReference businessUnit) The Business Unit the Approval Rule belongs to.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Approval Rule was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setDescription
(String description) Description of the Approval Rule.void
Unique identifier of the Approval Rule.void
User-defined unique identifier of the Approval Rule.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Approval Rule was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
Name of the Approval Rule.void
setPredicate
(String predicate) The Order Predicate describing the Orders the Approval Rule should match against.void
setRequesters
(RuleRequester... requesters) The Associate Roles customers must hold for their Order to require approval.void
setRequesters
(List<RuleRequester> requesters) The Associate Roles customers must hold for their Order to require approval.void
setStatus
(ApprovalRuleStatus status) Indicates whether the Approval Rule should be matched against Orders or not.void
setVersion
(Long version) Current version of the Approval Rule.toString()
Methods inherited from interface com.commercetools.api.models.approval_rule.ApprovalRule
withApprovalRule
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ApprovalRuleImpl
public ApprovalRuleImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Approval Rule.
- Specified by:
getId
in interfaceApprovalRule
- Specified by:
getId
in interfaceBaseResource
- Returns:
- id
-
getVersion
Current version of the Approval Rule.
- Specified by:
getVersion
in interfaceApprovalRule
- Specified by:
getVersion
in interfaceBaseResource
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Approval Rule was initially created.
- Specified by:
getCreatedAt
in interfaceApprovalRule
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Approval Rule was last updated.
- Specified by:
getLastModifiedAt
in interfaceApprovalRule
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceApprovalRule
- Returns:
- createdBy
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceApprovalRule
- Returns:
- lastModifiedBy
-
getKey
User-defined unique identifier of the Approval Rule. Must be unique within a Business Unit.
- Specified by:
getKey
in interfaceApprovalRule
- Returns:
- key
-
getName
Name of the Approval Rule.
- Specified by:
getName
in interfaceApprovalRule
- Returns:
- name
-
getDescription
Description of the Approval Rule.
- Specified by:
getDescription
in interfaceApprovalRule
- Returns:
- description
-
getStatus
Indicates whether the Approval Rule should be matched against Orders or not.
- Specified by:
getStatus
in interfaceApprovalRule
- Returns:
- status
-
getPredicate
The Order Predicate describing the Orders the Approval Rule should match against.
- Specified by:
getPredicate
in interfaceApprovalRule
- Returns:
- predicate
-
getApprovers
The hierarchy of approvers within the Approval Rule.
- Specified by:
getApprovers
in interfaceApprovalRule
- Returns:
- approvers
-
getRequesters
The Associate Roles customers must hold for their Order to require approval.
- Specified by:
getRequesters
in interfaceApprovalRule
- Returns:
- requesters
-
getBusinessUnit
The Business Unit the Approval Rule belongs to.
- Specified by:
getBusinessUnit
in interfaceApprovalRule
- Returns:
- businessUnit
-
setId
Description copied from interface:ApprovalRule
Unique identifier of the Approval Rule.
- Specified by:
setId
in interfaceApprovalRule
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ApprovalRule
Current version of the Approval Rule.
- Specified by:
setVersion
in interfaceApprovalRule
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ApprovalRule
Date and time (UTC) the Approval Rule was initially created.
- Specified by:
setCreatedAt
in interfaceApprovalRule
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ApprovalRule
Date and time (UTC) the Approval Rule was last updated.
- Specified by:
setLastModifiedAt
in interfaceApprovalRule
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setCreatedBy
Description copied from interface:ApprovalRule
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceApprovalRule
- Parameters:
createdBy
- value to be set
-
setLastModifiedBy
Description copied from interface:ApprovalRule
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceApprovalRule
- Parameters:
lastModifiedBy
- value to be set
-
setKey
Description copied from interface:ApprovalRule
User-defined unique identifier of the Approval Rule. Must be unique within a Business Unit.
- Specified by:
setKey
in interfaceApprovalRule
- Parameters:
key
- value to be set
-
setName
Description copied from interface:ApprovalRule
Name of the Approval Rule.
- Specified by:
setName
in interfaceApprovalRule
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:ApprovalRule
Description of the Approval Rule.
- Specified by:
setDescription
in interfaceApprovalRule
- Parameters:
description
- value to be set
-
setStatus
Description copied from interface:ApprovalRule
Indicates whether the Approval Rule should be matched against Orders or not.
- Specified by:
setStatus
in interfaceApprovalRule
- Parameters:
status
- value to be set
-
setPredicate
Description copied from interface:ApprovalRule
The Order Predicate describing the Orders the Approval Rule should match against.
- Specified by:
setPredicate
in interfaceApprovalRule
- Parameters:
predicate
- value to be set
-
setApprovers
Description copied from interface:ApprovalRule
The hierarchy of approvers within the Approval Rule.
- Specified by:
setApprovers
in interfaceApprovalRule
- Parameters:
approvers
- value to be set
-
setRequesters
Description copied from interface:ApprovalRule
The Associate Roles customers must hold for their Order to require approval.
- Specified by:
setRequesters
in interfaceApprovalRule
- Parameters:
requesters
- values to be set
-
setRequesters
Description copied from interface:ApprovalRule
The Associate Roles customers must hold for their Order to require approval.
- Specified by:
setRequesters
in interfaceApprovalRule
- Parameters:
requesters
- values to be set
-
setBusinessUnit
Description copied from interface:ApprovalRule
The Business Unit the Approval Rule belongs to.
- Specified by:
setBusinessUnit
in interfaceApprovalRule
- Parameters:
businessUnit
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-