Package com.daml.ledger.javaapi.data
Class CommandsSubmission
- java.lang.Object
-
- com.daml.ledger.javaapi.data.CommandsSubmission
-
public final class CommandsSubmission extends java.lang.Object
This class can be used to build a valid submission. It providescreate(String, String, List)
for initial creation and methods to set optional parameters e.gwithActAs(List)
,withWorkflowId(String)
etc. Usage:var submission = CommandsSubmission.create(applicationId, commandId, commands) .withAccessToken(token) .withParty(party) .with...
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommandsSubmission(java.lang.String applicationId, java.lang.String commandId, java.util.List<? extends HasCommands> commands, java.util.List<@NonNull java.lang.String> actAs, java.util.List<@NonNull java.lang.String> readAs, java.util.Optional<java.lang.String> workflowId, java.util.Optional<java.time.Instant> minLedgerTimeAbs, java.util.Optional<java.time.Duration> minLedgerTimeRel, java.util.Optional<java.time.Duration> deduplicationTime, java.util.Optional<java.lang.String> accessToken, java.util.List<@NonNull DisclosedContract> disclosedContracts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandsSubmission
create(java.lang.String applicationId, java.lang.String commandId, java.util.List<? extends HasCommands> commands)
java.util.Optional<java.lang.String>
getAccessToken()
java.util.List<java.lang.String>
getActAs()
java.lang.String
getApplicationId()
java.lang.String
getCommandId()
java.util.List<? extends HasCommands>
getCommands()
java.util.Optional<java.time.Duration>
getDeduplicationTime()
java.util.List<DisclosedContract>
getDisclosedContracts()
java.util.Optional<java.time.Instant>
getMinLedgerTimeAbs()
java.util.Optional<java.time.Duration>
getMinLedgerTimeRel()
java.util.List<java.lang.String>
getReadAs()
java.util.Optional<java.lang.String>
getWorkflowId()
CommandsSubmission
withAccessToken(java.util.Optional<java.lang.String> accessToken)
CommandsSubmission
withActAs(java.lang.String actAs)
CommandsSubmission
withActAs(java.util.List<@NonNull java.lang.String> actAs)
CommandsSubmission
withCommands(java.util.List<? extends HasCommands> commands)
CommandsSubmission
withDeduplicationTime(java.util.Optional<java.time.Duration> deduplicationTime)
CommandsSubmission
withDisclosedContracts(java.util.List<DisclosedContract> disclosedContracts)
CommandsSubmission
withMinLedgerTimeAbs(java.util.Optional<java.time.Instant> minLedgerTimeAbs)
CommandsSubmission
withMinLedgerTimeRel(java.util.Optional<java.time.Duration> minLedgerTimeRel)
CommandsSubmission
withReadAs(java.util.List<@NonNull java.lang.String> readAs)
CommandsSubmission
withWorkflowId(java.lang.String workflowId)
-
-
-
Constructor Detail
-
CommandsSubmission
protected CommandsSubmission(java.lang.String applicationId, java.lang.String commandId, java.util.List<? extends HasCommands> commands, java.util.List<@NonNull java.lang.String> actAs, java.util.List<@NonNull java.lang.String> readAs, java.util.Optional<java.lang.String> workflowId, java.util.Optional<java.time.Instant> minLedgerTimeAbs, java.util.Optional<java.time.Duration> minLedgerTimeRel, java.util.Optional<java.time.Duration> deduplicationTime, java.util.Optional<java.lang.String> accessToken, java.util.List<@NonNull DisclosedContract> disclosedContracts)
-
-
Method Detail
-
create
public static CommandsSubmission create(java.lang.String applicationId, java.lang.String commandId, java.util.List<? extends HasCommands> commands)
-
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()
-
getCommands
public java.util.List<? extends HasCommands> getCommands()
-
getAccessToken
public java.util.Optional<java.lang.String> getAccessToken()
-
getDisclosedContracts
public java.util.List<DisclosedContract> getDisclosedContracts()
-
withWorkflowId
public CommandsSubmission withWorkflowId(java.lang.String workflowId)
-
withActAs
public CommandsSubmission withActAs(java.lang.String actAs)
-
withActAs
public CommandsSubmission withActAs(java.util.List<@NonNull java.lang.String> actAs)
-
withReadAs
public CommandsSubmission withReadAs(java.util.List<@NonNull java.lang.String> readAs)
-
withMinLedgerTimeAbs
public CommandsSubmission withMinLedgerTimeAbs(java.util.Optional<java.time.Instant> minLedgerTimeAbs)
-
withMinLedgerTimeRel
public CommandsSubmission withMinLedgerTimeRel(java.util.Optional<java.time.Duration> minLedgerTimeRel)
-
withDeduplicationTime
public CommandsSubmission withDeduplicationTime(java.util.Optional<java.time.Duration> deduplicationTime)
-
withCommands
public CommandsSubmission withCommands(java.util.List<? extends HasCommands> commands)
-
withAccessToken
public CommandsSubmission withAccessToken(java.util.Optional<java.lang.String> accessToken)
-
withDisclosedContracts
public CommandsSubmission withDisclosedContracts(java.util.List<DisclosedContract> disclosedContracts)
-
-