Class ResolvedCdsIndexTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsIndexTrade>
-
- com.opengamma.strata.product.credit.ResolvedCdsIndexTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedCdsIndexTrade>
- Enclosing class:
- ResolvedCdsIndexTrade
public static final class ResolvedCdsIndexTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsIndexTrade>
The bean-builder forResolvedCdsIndexTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String propertyName, Object newValue)
ResolvedCdsIndexTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
ResolvedCdsIndexTrade.Builder
upfrontFee(Payment upfrontFee)
Sets the upfront fee of the product.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedCdsIndexTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsIndexTrade>
-
set
public ResolvedCdsIndexTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedCdsIndexTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedCdsIndexTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsIndexTrade>
-
build
public ResolvedCdsIndexTrade build()
-
info
public ResolvedCdsIndexTrade.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 ResolvedCdsIndexTrade.Builder product(ResolvedCdsIndex product)
Sets the resolved CDS index product.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 ResolvedCdsIndexTrade.Builder upfrontFee(Payment 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.
- Parameters:
upfrontFee
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCdsIndexTrade>
-
-