Package com.daml.ledger.javaapi.data
Class UpdateSubmission<U>
- java.lang.Object
-
- com.daml.ledger.javaapi.data.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 providescreate(String, String, Update)
for initial creation and methods to set optional parameters e.gwithActAs(List)
,withWorkflowId(String)
etc. Usage:var submission = UpdateSubmission.create(applicationId, commandId, update) .withAccessToken(token) .withParty(party) .with...
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <U> UpdateSubmission<U>
create(java.lang.String applicationId, java.lang.String commandId, Update<U> update)
java.util.Optional<java.lang.String>
getAccessToken()
java.util.List<java.lang.String>
getActAs()
java.lang.String
getApplicationId()
java.lang.String
getCommandId()
java.util.Optional<java.time.Duration>
getDeduplicationTime()
java.util.Optional<java.time.Instant>
getMinLedgerTimeAbs()
java.util.Optional<java.time.Duration>
getMinLedgerTimeRel()
java.util.List<java.lang.String>
getReadAs()
Update<U>
getUpdate()
java.util.Optional<java.lang.String>
getWorkflowId()
CommandsSubmission
toCommandsSubmission()
UpdateSubmission<U>
withAccessToken(java.util.Optional<java.lang.String> accessToken)
UpdateSubmission<U>
withActAs(java.lang.String actAs)
UpdateSubmission<U>
withActAs(java.util.List<@NonNull java.lang.String> actAs)
UpdateSubmission<U>
withDeduplicationTime(java.util.Optional<java.time.Duration> deduplicationTime)
UpdateSubmission<U>
withMinLedgerTimeAbs(java.util.Optional<java.time.Instant> minLedgerTimeAbs)
UpdateSubmission<U>
withMinLedgerTimeRel(java.util.Optional<java.time.Duration> minLedgerTimeRel)
UpdateSubmission<U>
withReadAs(java.util.List<@NonNull java.lang.String> readAs)
UpdateSubmission<U>
withWorkflowId(java.lang.String workflowId)
-
-
-
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()
-
getAccessToken
public java.util.Optional<java.lang.String> getAccessToken()
-
withWorkflowId
public UpdateSubmission<U> withWorkflowId(java.lang.String workflowId)
-
withActAs
public UpdateSubmission<U> withActAs(java.lang.String actAs)
-
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)
-
toCommandsSubmission
public CommandsSubmission toCommandsSubmission()
-
-