Class SettlementInstructionsPartsDef.SettlementTradeFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.settlementinstructions.SettlementInstructionsPartsDef.SettlementTradeFields.Builder
-
- Enclosing class:
- SettlementInstructionsPartsDef.SettlementTradeFields
public static final class SettlementInstructionsPartsDef.SettlementTradeFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setCanAffirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAffirm(boolean canAffirm)
- Returns:
- Ability to Affirm the Trade Details are as agreed.
-
setCanAffirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAffirm(@NotNull @NotNull java.lang.String canAffirm)
- Returns:
- Ability to Affirm the Trade Details are as agreed.
-
setCanConfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanConfirm(boolean canConfirm)
- Returns:
- Ability to Confirm the Settlement Details are now final.
-
setCanConfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanConfirm(@NotNull @NotNull java.lang.String canConfirm)
- Returns:
- Ability to Confirm the Settlement Details are now final.
-
setCanAdHoc
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAdHoc(boolean canAdHoc)
- Returns:
- Can confirm adhoc settlement instructions for a trade.
-
setCanAdHoc
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAdHoc(@NotNull @NotNull java.lang.String canAdHoc)
- Returns:
- Can confirm adhoc settlement instructions for a trade.
-
setCanDispute
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanDispute(boolean canDispute)
- Returns:
- Ability to Dispute the details of a trade, if for example something is wrong about it.
-
setCanDispute
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanDispute(@NotNull @NotNull java.lang.String canDispute)
- Returns:
- Ability to Dispute the details of a trade, if for example something is wrong about it.
-
setCanCancel
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanCancel(boolean canCancel)
- Returns:
- Ability to Cancel a trade, for example if a mistake was made.
-
setCanCancel
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanCancel(@NotNull @NotNull java.lang.String canCancel)
- Returns:
- Ability to Cancel a trade, for example if a mistake was made.
-
setCanReplace
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanReplace(boolean canReplace)
- Returns:
- Ability to mark a deal as amended, meaning that it has been replaced by a corrected deal.
-
setCanReplace
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanReplace(@NotNull @NotNull java.lang.String canReplace)
- Returns:
- Ability to mark a deal as amended, meaning that it has been replaced by a corrected deal.
-
setCanAutoConfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAutoConfirm(boolean canAutoConfirm)
- Returns:
- Ability to Mark that the deal was Confirmed by the Bank, rather than by the client.
-
setCanAutoConfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanAutoConfirm(@NotNull @NotNull java.lang.String canAutoConfirm)
- Returns:
- Ability to Mark that the deal was Confirmed by the Bank, rather than by the client.
-
setCanUnconfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanUnconfirm(boolean canUnconfirm)
- Returns:
- Ability to move the deal back to a Pending state.
-
setCanUnconfirm
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setCanUnconfirm(@NotNull @NotNull java.lang.String canUnconfirm)
- Returns:
- Ability to move the deal back to a Pending state.
-
setSettlementStatus
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setSettlementStatus(@NotNull @NotNull java.lang.String settlementStatus)
- Returns:
- Caplin supported statuses are [PENDING, AFFIRMED, CONFIRMED, DISPUTED, CANCELLED, REPLACED, AUTO_CONFIRMED, OVERDUE, REJECTED]
-
setNextActionDeadline
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setNextActionDeadline(@NotNull @NotNull java.time.Instant nextActionDeadline)
- Parameters:
nextActionDeadline
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The deadline for a user to perform a trade's next action in ISO-8601 format
-
setNextActionDeadline
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setNextActionDeadline(@NotNull @NotNull java.lang.String nextActionDeadline)
- Parameters:
nextActionDeadline
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The deadline for a user to perform a trade's next action in ISO-8601 format
-
setNextActionDeadlineDisplayTimezone
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setNextActionDeadlineDisplayTimezone(@NotNull @NotNull java.lang.String nextActionDeadlineDisplayTimezone)
- Parameters:
nextActionDeadlineDisplayTimezone
- e.g. America/New_York- Returns:
- The timezone for the NextActionDeadline field in the form Area/Location
-
setAffirmedBy
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setAffirmedBy(@NotNull @NotNull java.lang.String affirmedBy)
- Returns:
- The name of the user who affirmed a trade.
-
setAffirmedDateTime
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setAffirmedDateTime(@NotNull @NotNull java.time.Instant affirmedDateTime)
- Parameters:
affirmedDateTime
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The time at which a trade was affirmed in ISO-8601 format
-
setAffirmedDateTime
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setAffirmedDateTime(@NotNull @NotNull java.lang.String affirmedDateTime)
- Parameters:
affirmedDateTime
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The time at which a trade was affirmed in ISO-8601 format
-
setConfirmedBy
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setConfirmedBy(@NotNull @NotNull java.lang.String confirmedBy)
- Returns:
- The name of the user who confirmed a trade.
-
setConfirmedDateTime
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setConfirmedDateTime(@NotNull @NotNull java.time.Instant confirmedDateTime)
- Parameters:
confirmedDateTime
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The time at which a trade was confirmed in ISO-8601 format
-
setConfirmedDateTime
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setConfirmedDateTime(@NotNull @NotNull java.lang.String confirmedDateTime)
- Parameters:
confirmedDateTime
- e.g. 2018-03-16T07:25:16+00:00- Returns:
- The time at which a trade was confirmed in ISO-8601 format
-
setIsPayNetted
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPayNetted(boolean isPayNetted)
- Returns:
- Denotes whether the pay side of a trade has been netted.
-
setIsPayNetted
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPayNetted(@NotNull @NotNull java.lang.String isPayNetted)
- Returns:
- Denotes whether the pay side of a trade has been netted.
-
setIsReceiveNetted
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveNetted(boolean isReceiveNetted)
- Returns:
- Denotes whether the receive side of a trade has been netted.
-
setIsReceiveNetted
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveNetted(@NotNull @NotNull java.lang.String isReceiveNetted)
- Returns:
- Denotes whether the receive side of a trade has been netted.
-
setIsPayNettingRequired
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPayNettingRequired(boolean isPayNettingRequired)
- Returns:
- Denotes whether the pay side of a trade requires netting.
-
setIsPayNettingRequired
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPayNettingRequired(@NotNull @NotNull java.lang.String isPayNettingRequired)
- Returns:
- Denotes whether the pay side of a trade requires netting.
-
setIsReceiveNettingRequired
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveNettingRequired(boolean isReceiveNettingRequired)
- Returns:
- Denotes whether the receive side of a trade requires netting.
-
setIsReceiveNettingRequired
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveNettingRequired(@NotNull @NotNull java.lang.String isReceiveNettingRequired)
- Returns:
- Denotes whether the receive side of a trade requires netting.
-
setIsPaySplit
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPaySplit(boolean isPaySplit)
- Returns:
- Denotes whether the pay side of a trade has been split.
-
setIsPaySplit
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsPaySplit(@NotNull @NotNull java.lang.String isPaySplit)
- Returns:
- Denotes whether the pay side of a trade has been split.
-
setIsReceiveSplit
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveSplit(boolean isReceiveSplit)
- Returns:
- Denotes whether the receive side of a trade has been split.
-
setIsReceiveSplit
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setIsReceiveSplit(@NotNull @NotNull java.lang.String isReceiveSplit)
- Returns:
- Denotes whether the receive side of a trade has been split.
-
addPay
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addPay(@NotNull @NotNull SettlementInstructionsPartsDef.SettlementFields pay)
- Returns:
- pay
-
setPay
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setPay(@NotNull @NotNull SettlementInstructionsPartsDef.SettlementFields pay, int id)
- Returns:
- pay
-
addAllPay
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addAllPay(@NotNull @NotNull java.util.Collection<SettlementInstructionsPartsDef.SettlementFields> pay)
- Returns:
- pay
-
addReceive
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addReceive(@NotNull @NotNull SettlementInstructionsPartsDef.SettlementFields receive)
- Returns:
- receive
-
setReceive
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setReceive(@NotNull @NotNull SettlementInstructionsPartsDef.SettlementFields receive, int id)
- Returns:
- receive
-
addAllReceive
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addAllReceive(@NotNull @NotNull java.util.Collection<SettlementInstructionsPartsDef.SettlementFields> receive)
- Returns:
- receive
-
addPayNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addPayNettingComponents(@NotNull @NotNull SettlementInstructionsPartsDef.NettingComponents payNettingComponents)
- Returns:
- payNettingComponents
-
setPayNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setPayNettingComponents(@NotNull @NotNull SettlementInstructionsPartsDef.NettingComponents payNettingComponents, int id)
- Returns:
- payNettingComponents
-
addAllPayNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addAllPayNettingComponents(@NotNull @NotNull java.util.Collection<SettlementInstructionsPartsDef.NettingComponents> payNettingComponents)
- Returns:
- payNettingComponents
-
addReceiveNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addReceiveNettingComponents(@NotNull @NotNull SettlementInstructionsPartsDef.NettingComponents receiveNettingComponents)
- Returns:
- receiveNettingComponents
-
setReceiveNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder setReceiveNettingComponents(@NotNull @NotNull SettlementInstructionsPartsDef.NettingComponents receiveNettingComponents, int id)
- Returns:
- receiveNettingComponents
-
addAllReceiveNettingComponents
@NotNull public @NotNull SettlementInstructionsPartsDef.SettlementTradeFields.Builder addAllReceiveNettingComponents(@NotNull @NotNull java.util.Collection<SettlementInstructionsPartsDef.NettingComponents> receiveNettingComponents)
- Returns:
- receiveNettingComponents
-
-