Class WarningPartsDef.AmendWarning.Builder
java.lang.Object
com.caplin.generated.motif.fx.warning.WarningPartsDef.AmendWarning.Builder
- Enclosing class:
- WarningPartsDef.AmendWarning
-
Method Summary
Modifier and TypeMethodDescription@NotNull WarningPartsDef.AmendWarning.Builder
@NotNull WarningPartsDef.AmendWarning
build()
@NotNull WarningPartsDef.AmendWarning.Builder
setAmendmentReasons
(@NotNull String amendmentReasons) @NotNull WarningPartsDef.AmendWarning.Builder
setAmendmentType
(@NotNull String amendmentType) @NotNull WarningPartsDef.AmendWarning.Builder
setWarningType
(@NotNull String warningType) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull WarningPartsDef.AmendWarning.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setWarningType
@NotNull public @NotNull WarningPartsDef.AmendWarning.Builder setWarningType(@NotNull @NotNull String warningType) - Parameters:
warningType
- e.g. Generic- Returns:
- The type of a warning message. Caplin supported warning types are [AMEND_REASON, GENERIC]. See the constants defined within com.caplin.motif.fx.trading.WarningTypes.
-
setAmendmentType
@NotNull public @NotNull WarningPartsDef.AmendWarning.Builder setAmendmentType(@NotNull @NotNull String amendmentType) - Parameters:
amendmentType
- e.g. Economic- Returns:
- The type of the trade amendment, only used when amending a trade
-
setAmendmentReasons
@NotNull public @NotNull WarningPartsDef.AmendWarning.Builder setAmendmentReasons(@NotNull @NotNull String amendmentReasons) - Parameters:
amendmentReasons
- e.g. Customer Initiated- Returns:
- A list of possible reasons for the trade amendment, only used when amending a trade
-