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