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
setDepositInterestAmount(@NotNull java.lang.String depositInterestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositInterestAmount(@NotNull java.math.BigDecimal depositInterestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositInterestRate(@NotNull java.lang.String depositInterestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositInterestRate(@NotNull java.math.BigDecimal depositInterestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositPrincipalPlusInterest(@NotNull java.lang.String depositPrincipalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositPrincipalPlusInterest(@NotNull java.math.BigDecimal depositPrincipalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setDepositQuoteID(@NotNull java.lang.String depositQuoteID)
@NotNull QuotePartsDef.CommonFields.Builder
setInterestRateDPS(@NotNull java.lang.String interestRateDPS)
@NotNull QuotePartsDef.CommonFields.Builder
setInterestRateDPS(@NotNull java.math.BigDecimal interestRateDPS)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanInterestAmount(@NotNull java.lang.String loanInterestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanInterestAmount(@NotNull java.math.BigDecimal loanInterestAmount)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanInterestRate(@NotNull java.lang.String loanInterestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanInterestRate(@NotNull java.math.BigDecimal loanInterestRate)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanPrincipalPlusInterest(@NotNull java.lang.String loanPrincipalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanPrincipalPlusInterest(@NotNull java.math.BigDecimal loanPrincipalPlusInterest)
@NotNull QuotePartsDef.CommonFields.Builder
setLoanQuoteID(@NotNull java.lang.String loanQuoteID)
@NotNull QuotePartsDef.CommonFields.Builder
setOverallTimeout(int overallTimeout)
@NotNull QuotePartsDef.CommonFields.Builder
setOverallTimeout(@NotNull java.lang.String overallTimeout)
@NotNull QuotePartsDef.CommonFields.Builder
setRemainingTimeOutMillis(int remainingTimeOutMillis)
@NotNull QuotePartsDef.CommonFields.Builder
setRemainingTimeOutMillis(@NotNull java.lang.String remainingTimeOutMillis)
@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
-
setLoanQuoteID
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanQuoteID(@NotNull @NotNull java.lang.String loanQuoteID)
- Returns:
- Unique id for a loan quote, used to determine which quote has been used for trade execution.
-
setDepositQuoteID
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositQuoteID(@NotNull @NotNull java.lang.String depositQuoteID)
- Returns:
- Unique id for a deposit quote, used to determine which quote has been used for trade execution.
-
setLoanInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestRate(@NotNull @NotNull java.math.BigDecimal loanInterestRate)
- Returns:
- Interest rate on loaning the given PrincipalAmount.
-
setLoanInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestRate(@NotNull @NotNull java.lang.String loanInterestRate)
- Returns:
- Interest rate on loaning the given PrincipalAmount.
-
setInterestRateDPS
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRateDPS(@NotNull @NotNull java.math.BigDecimal interestRateDPS)
- Returns:
- The precision for a specified InterestRate.
-
setInterestRateDPS
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRateDPS(@NotNull @NotNull java.lang.String interestRateDPS)
- Returns:
- The precision for a specified InterestRate.
-
setDepositInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestRate(@NotNull @NotNull java.math.BigDecimal depositInterestRate)
- Returns:
- Interest rate on depositing the given PrincipalAmount.
-
setDepositInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestRate(@NotNull @NotNull java.lang.String depositInterestRate)
- Returns:
- Interest rate on depositing the given PrincipalAmount.
-
setLoanInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestAmount(@NotNull @NotNull java.math.BigDecimal loanInterestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the loan interest rate and principal amount
-
setLoanInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestAmount(@NotNull @NotNull java.lang.String loanInterestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the loan interest rate and principal amount
-
setDepositInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestAmount(@NotNull @NotNull java.math.BigDecimal depositInterestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the deposit interest rate and principal amount
-
setDepositInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestAmount(@NotNull @NotNull java.lang.String depositInterestAmount)
- Returns:
- Interest amount (specified in the provided Currency) calculated from the deposit interest rate and principal amount
-
setLoanPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanPrincipalPlusInterest(@NotNull @NotNull java.math.BigDecimal loanPrincipalPlusInterest)
- Returns:
- Composite amount between principal amount and loan interest amount.
-
setLoanPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanPrincipalPlusInterest(@NotNull @NotNull java.lang.String loanPrincipalPlusInterest)
- Returns:
- Composite amount between principal amount and loan interest amount.
-
setDepositPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositPrincipalPlusInterest(@NotNull @NotNull java.math.BigDecimal depositPrincipalPlusInterest)
- Returns:
- Composite amount between principal amount and deposit interest amount.
-
setDepositPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositPrincipalPlusInterest(@NotNull @NotNull java.lang.String depositPrincipalPlusInterest)
- Returns:
- Composite amount between principal amount and deposit 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.
-
setRemainingTimeOutMillis
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setRemainingTimeOutMillis(int remainingTimeOutMillis)
- Returns:
- The number of milliseconds remaining of the OverallTimeOut before this stream is timed out. This is not present for standard price updates.
-
setRemainingTimeOutMillis
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setRemainingTimeOutMillis(@NotNull @NotNull java.lang.String remainingTimeOutMillis)
- Returns:
- The number of milliseconds remaining of the OverallTimeOut before this stream is timed out. This is not present for standard price updates.
-
-