Class DrawdownPartsDef.DrawdownDetailsLegFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.drawdown.DrawdownPartsDef.DrawdownDetailsLegFields.Builder
-
- Enclosing class:
- DrawdownPartsDef.DrawdownDetailsLegFields
public static final class DrawdownPartsDef.DrawdownDetailsLegFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setAllInRate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAllInRate(@NotNull @NotNull java.math.BigDecimal allInRate)
- Parameters:
allInRate
- e.g. 1.091790- Returns:
- allInRate
-
setAllInRate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAllInRate(@NotNull @NotNull java.lang.String allInRate)
- Parameters:
allInRate
- e.g. 1.091790- Returns:
- allInRate
-
setAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAmount(@NotNull @NotNull java.math.BigDecimal amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setAmount(@NotNull @NotNull java.lang.String amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setBuySell
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setBuySell(@NotNull @NotNull java.lang.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 java.math.BigDecimal remainingAmount)
- Parameters:
remainingAmount
- e.g. 500- Returns:
- remainingAmount
-
setRemainingAmount
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setRemainingAmount(@NotNull @NotNull java.lang.String remainingAmount)
- Parameters:
remainingAmount
- e.g. 500- Returns:
- remainingAmount
-
setStartDate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setStartDate(@NotNull @NotNull java.lang.String startDate)
- Parameters:
startDate
- e.g. 20150620- Returns:
- startDate
-
setStartTenor
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setStartTenor(@NotNull @NotNull java.lang.String startTenor)
- Parameters:
startTenor
- e.g. 1W- Returns:
- startTenor
-
setSettlementDate
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setSettlementDate(@NotNull @NotNull java.lang.String settlementDate)
- Returns:
- settlementDate
-
setTenor
@NotNull public @NotNull DrawdownPartsDef.DrawdownDetailsLegFields.Builder setTenor(@NotNull @NotNull java.lang.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.
-
-