Class UpdateSubmission<U>


  • public final class UpdateSubmission<U>
    extends java.lang.Object
    This class can be used to build a valid submission for an Update. It provides create(String, String, Update) for initial creation and methods to set optional parameters e.g withActAs(List), withWorkflowId(String) etc. Usage:
       var submission = UpdateSubmission.create(applicationId, commandId, update)
                                       .withAccessToken(token)
                                       .withParty(party)
                                       .with...
     
    • Method Detail

      • create

        public static <U> UpdateSubmission<U> create​(java.lang.String applicationId,
                                                     java.lang.String commandId,
                                                     Update<U> update)
      • getWorkflowId

        public java.util.Optional<java.lang.String> getWorkflowId()
      • getApplicationId

        public java.lang.String getApplicationId()
      • getCommandId

        public java.lang.String getCommandId()
      • getActAs

        public java.util.List<java.lang.String> getActAs()
      • getReadAs

        public java.util.List<java.lang.String> getReadAs()
      • getMinLedgerTimeAbs

        public java.util.Optional<java.time.Instant> getMinLedgerTimeAbs()
      • getMinLedgerTimeRel

        public java.util.Optional<java.time.Duration> getMinLedgerTimeRel()
      • getDeduplicationTime

        public java.util.Optional<java.time.Duration> getDeduplicationTime()
      • getUpdate

        public Update<U> getUpdate()
      • getAccessToken

        public java.util.Optional<java.lang.String> getAccessToken()
      • withWorkflowId

        public UpdateSubmission<U> withWorkflowId​(java.lang.String workflowId)
      • withActAs

        public UpdateSubmission<U> withActAs​(java.util.List<@NonNull java.lang.String> actAs)
      • withReadAs

        public UpdateSubmission<U> withReadAs​(java.util.List<@NonNull java.lang.String> readAs)
      • withMinLedgerTimeAbs

        public UpdateSubmission<U> withMinLedgerTimeAbs​(java.util.Optional<java.time.Instant> minLedgerTimeAbs)
      • withMinLedgerTimeRel

        public UpdateSubmission<U> withMinLedgerTimeRel​(java.util.Optional<java.time.Duration> minLedgerTimeRel)
      • withDeduplicationTime

        public UpdateSubmission<U> withDeduplicationTime​(java.util.Optional<java.time.Duration> deduplicationTime)
      • withAccessToken

        public UpdateSubmission<U> withAccessToken​(java.util.Optional<java.lang.String> accessToken)