Class ApprovalRuleUpdateImpl

java.lang.Object
com.commercetools.api.models.approval_rule.ApprovalRuleUpdateImpl
All Implemented Interfaces:
ApprovalRuleUpdate, io.vrap.rmf.base.client.ModelBase

public class ApprovalRuleUpdateImpl extends Object implements ApprovalRuleUpdate, io.vrap.rmf.base.client.ModelBase
ApprovalRuleUpdate
  • Constructor Details

    • ApprovalRuleUpdateImpl

      public ApprovalRuleUpdateImpl()
      create empty instance
  • Method Details

    • getVersion

      public Long getVersion()

      Expected version of the ApprovalRule to which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

      Specified by:
      getVersion in interface ApprovalRuleUpdate
      Returns:
      version
    • getActions

      public List<ApprovalRuleUpdateAction> getActions()

      Update actions to be performed on the ApprovalRule.

      Specified by:
      getActions in interface ApprovalRuleUpdate
      Returns:
      actions
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: ApprovalRuleUpdate

      Expected version of the ApprovalRule to which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

      Specified by:
      setVersion in interface ApprovalRuleUpdate
      Parameters:
      version - value to be set
    • setActions

      public void setActions(ApprovalRuleUpdateAction... actions)
      Description copied from interface: ApprovalRuleUpdate

      Update actions to be performed on the ApprovalRule.

      Specified by:
      setActions in interface ApprovalRuleUpdate
      Parameters:
      actions - values to be set
    • setActions

      public void setActions(List<ApprovalRuleUpdateAction> actions)
      Description copied from interface: ApprovalRuleUpdate

      Update actions to be performed on the ApprovalRule.

      Specified by:
      setActions in interface ApprovalRuleUpdate
      Parameters:
      actions - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object