Class QuotePartsDef.CommonFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.mm.rates.QuotePartsDef.CommonFields.Builder
-
- Enclosing class:
- QuotePartsDef.CommonFields
public static final class QuotePartsDef.CommonFields.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull QuotePartsDef.CommonFields.Builder
addField(@NotNull java.lang.String key, @NotNull java.lang.String value)
@NotNull QuotePartsDef.CommonFields
build()
@NotNull QuotePartsDef.CommonFields.Builder
setInterestAmount(@NotNull java.lang.String interestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setInterestAmount(@NotNull java.math.BigDecimal interestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setInterestRate(@NotNull java.lang.String interestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setInterestRate(@NotNull java.math.BigDecimal interestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setOverallTimeout(int overallTimeout)
@NotNull QuotePartsDef.CommonFields.Builder
setOverallTimeout(@NotNull java.lang.String overallTimeout)
@NotNull QuotePartsDef.CommonFields.Builder
setPrincipalPlusInterest(@NotNull java.lang.String principalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setPrincipalPlusInterest(@NotNull java.math.BigDecimal principalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setQuoteID(@NotNull java.lang.String quoteID)
@NotNull java.lang.String
toString()
-
-
-
Method Detail
-
addField
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull QuotePartsDef.CommonFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setQuoteID
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setQuoteID(@NotNull @NotNull java.lang.String quoteID)
- Returns:
- Unique id for a price quote, used to determine which quote has been used for trade execution.
-
setInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRate(@NotNull @NotNull java.math.BigDecimal interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRate(@NotNull @NotNull java.lang.String interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestAmount(@NotNull @NotNull java.math.BigDecimal interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
setInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestAmount(@NotNull @NotNull java.lang.String interestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
-
setPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setPrincipalPlusInterest(@NotNull @NotNull java.math.BigDecimal principalPlusInterest)
- Returns:
- Composite amount between principal amount and interest amount.
-
setPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setPrincipalPlusInterest(@NotNull @NotNull java.lang.String principalPlusInterest)
- Returns:
- Composite amount between principal amount and interest amount.
-
setOverallTimeout
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setOverallTimeout(int overallTimeout)
- Returns:
- The amount in seconds in which the trade will expire.
-
setOverallTimeout
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setOverallTimeout(@NotNull @NotNull java.lang.String overallTimeout)
- Returns:
- The amount in seconds in which the trade will expire.
-
-