public static final class ResolvedCdsTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsTrade>
ResolvedCdsTrade
.Modifier and Type | Method and Description |
---|---|
ResolvedCdsTrade |
build() |
Object |
get(String propertyName) |
ResolvedCdsTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
ResolvedCdsTrade.Builder |
product(ResolvedCds product)
Sets the resolved CDS product.
|
ResolvedCdsTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedCdsTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
ResolvedCdsTrade.Builder |
upfrontFee(Payment upfrontFee)
Sets the upfront fee of the product.
|
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<ResolvedCdsTrade>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsTrade>
public ResolvedCdsTrade.Builder set(String propertyName, Object newValue)
public ResolvedCdsTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<ResolvedCdsTrade>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsTrade>
public ResolvedCdsTrade build()
public ResolvedCdsTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info
- the new value, not nullpublic ResolvedCdsTrade.Builder product(ResolvedCds product)
The product captures the contracted financial details of the trade.
product
- the new value, not nullpublic ResolvedCdsTrade.Builder upfrontFee(Payment 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<ResolvedCdsTrade>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.