Class CdsTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsTrade>
-
- com.opengamma.strata.product.credit.CdsTrade.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdsTrade
build()
Object
get(String propertyName)
CdsTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.CdsTrade.Builder
product(Cds product)
Sets the CDS product that was agreed when the trade occurred.CdsTrade.Builder
set(String propertyName, Object newValue)
CdsTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
CdsTrade.Builder
upfrontFee(AdjustablePayment upfrontFee)
Sets the upfront fee of the product.
-
-
-
Method Detail
-
set
public CdsTrade.Builder set(String propertyName, Object newValue)
-
set
public CdsTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public CdsTrade build()
-
info
public CdsTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public CdsTrade.Builder product(Cds product)
Sets the CDS product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
upfrontFee
public CdsTrade.Builder upfrontFee(AdjustablePayment upfrontFee)
Sets the upfront fee of the product.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.
- Parameters:
upfrontFee
- the new value- Returns:
- this, for chaining, not null
-
-