public static final class CdsIndexTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexTrade>
CdsIndexTrade
.Modifier and Type | Method and Description |
---|---|
CdsIndexTrade |
build() |
Object |
get(String propertyName) |
CdsIndexTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
CdsIndexTrade.Builder |
product(CdsIndex product)
Sets the CDS index product that was agreed when the trade occurred.
|
CdsIndexTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
CdsIndexTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
CdsIndexTrade.Builder |
upfrontFee(AdjustablePayment upfrontFee)
Sets the upfront fee of the product.
|
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<CdsIndexTrade>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexTrade>
public CdsIndexTrade.Builder set(String propertyName, Object newValue)
public CdsIndexTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<CdsIndexTrade>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexTrade>
public CdsIndexTrade build()
public CdsIndexTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info
- the new value, not nullpublic CdsIndexTrade.Builder product(CdsIndex product)
The product captures the contracted financial details of the trade.
product
- the new value, not nullpublic CdsIndexTrade.Builder upfrontFee(AdjustablePayment upfrontFee)
This specifies a single amount payable by the buyer to the seller. Thus the sign must be compatible with the product Pay/Receive flag.
Some CDSs, especially legacy products, are traded at par and the upfront fee is not paid.
upfrontFee
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexTrade>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.