Class LiquidityPartsDef.LiquidityRiskFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.liquidity.LiquidityPartsDef.LiquidityRiskFields.Builder
-
- Enclosing class:
- LiquidityPartsDef.LiquidityRiskFields
public static final class LiquidityPartsDef.LiquidityRiskFields.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
addField(@NotNull java.lang.String key, @NotNull java.lang.String value)
@NotNull LiquidityPartsDef.LiquidityRiskFields
build()
@NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
setRisk(@NotNull java.lang.String risk)
@NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
setRisk(@NotNull java.math.BigDecimal risk)
@NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
setRiskCurrency(@NotNull java.lang.String riskCurrency)
@NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
setRiskLimit(@NotNull java.lang.String riskLimit)
@NotNull LiquidityPartsDef.LiquidityRiskFields.Builder
setRiskLimit(@NotNull java.math.BigDecimal riskLimit)
@NotNull java.lang.String
toString()
-
-
-
Method Detail
-
addField
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setRisk
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder setRisk(@NotNull @NotNull java.math.BigDecimal risk)
- Returns:
- How much risk a user has used, defined in the currency specified by RiskCurrency.
-
setRisk
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder setRisk(@NotNull @NotNull java.lang.String risk)
- Returns:
- How much risk a user has used, defined in the currency specified by RiskCurrency.
-
setRiskLimit
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder setRiskLimit(@NotNull @NotNull java.math.BigDecimal riskLimit)
- Returns:
- The maximum risk a user is entitled to, defined in the currency specified by RiskCurrency.
-
setRiskLimit
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder setRiskLimit(@NotNull @NotNull java.lang.String riskLimit)
- Returns:
- The maximum risk a user is entitled to, defined in the currency specified by RiskCurrency.
-
setRiskCurrency
@NotNull public @NotNull LiquidityPartsDef.LiquidityRiskFields.Builder setRiskCurrency(@NotNull @NotNull java.lang.String riskCurrency)
- Returns:
- The currency in which the risk is expressed.
-
-