Class DrawdownPartsDef.DrawdownDetailsLegFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.drawdown.DrawdownPartsDef.DrawdownDetailsLegFields.Builder
- Enclosing class:
- DrawdownPartsDef.DrawdownDetailsLegFields
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAllInRate
(@NotNull String allInRate) setAllInRate
(@NotNull BigDecimal allInRate) setAmount
(@NotNull BigDecimal amount) setBuySell
(@NotNull String buySell) setRemainingAmount
(@NotNull String remainingAmount) setRemainingAmount
(@NotNull BigDecimal remainingAmount) setSettlementDate
(@NotNull String settlementDate) setStartDate
(@NotNull String startDate) setStartTenor
(@NotNull String startTenor) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setAllInRate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAllInRate(@NotNull @NotNull BigDecimal allInRate) - Parameters:
allInRate
- e.g. 1.091790- Returns:
- allInRate
-
setAllInRate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAllInRate(@NotNull @NotNull String allInRate) - Parameters:
allInRate
- e.g. 1.091790- Returns:
- allInRate
-
setAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAmount(@NotNull @NotNull BigDecimal amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAmount(@NotNull @NotNull String amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setBuySell
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setBuySell(@NotNull @NotNull String buySell) - Returns:
- The direction of the trade or trade leg, from the client's perspective. This always refers to the BaseCurrency, NOT the DealtCurrency.
-
setRemainingAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setRemainingAmount(@NotNull @NotNull BigDecimal remainingAmount) - Parameters:
remainingAmount
- e.g. 500- Returns:
- remainingAmount
-
setRemainingAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setRemainingAmount(@NotNull @NotNull String remainingAmount) - Parameters:
remainingAmount
- e.g. 500- Returns:
- remainingAmount
-
setStartDate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setStartDate(@NotNull @NotNull String startDate) - Parameters:
startDate
- e.g. 20150620- Returns:
- startDate
-
setStartTenor
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setStartTenor(@NotNull @NotNull String startTenor) - Parameters:
startTenor
- e.g. 1W- Returns:
- startTenor
-
setSettlementDate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setSettlementDate(@NotNull @NotNull String settlementDate) - Returns:
- settlementDate
-
setTenor
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setTenor(@NotNull @NotNull String tenor) - Parameters:
tenor
- e.g. 1M- Returns:
- Supported types are [ON, [TODAY, TOD, TD], TN, [TOM, ND], SPOT, SN, 1D, 1W, 2W, 3W, 4W, 1M, 2M, 4M, 5M, 6M, 7M, 8M, 9M, 10M, 11M, [1Y, 12M], 15M, 18M, 21M, [2Y, 24M], [3Y, 36M], [4Y, 48M], [5Y, 60M], broken]. 'broken' indicates that the settlement date does not fall onto a tenor.
-