Class ResolvedFixedCouponBondTrade.Builder
- java.lang.Object
 - 
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
 - 
- com.opengamma.strata.product.bond.ResolvedFixedCouponBondTrade.Builder
 
 
 
- 
- All Implemented Interfaces:
 org.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>
- Enclosing class:
 - ResolvedFixedCouponBondTrade
 
public static final class ResolvedFixedCouponBondTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
The bean-builder forResolvedFixedCouponBondTrade. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFixedCouponBondTradebuild()Objectget(String propertyName)ResolvedFixedCouponBondTrade.Builderinfo(PortfolioItemInfo info)Sets the additional information, defaulted to an empty instance.ResolvedFixedCouponBondTrade.Builderproduct(ResolvedFixedCouponBond product)Sets the resolved fixed coupon bond product.ResolvedFixedCouponBondTrade.Builderquantity(double quantity)Sets the quantity, indicating the number of bond contracts in the trade.ResolvedFixedCouponBondTrade.Builderset(String propertyName, Object newValue)ResolvedFixedCouponBondTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ResolvedFixedCouponBondTrade.Buildersettlement(ResolvedFixedCouponBondSettlement settlement)Sets the settlement details of the bond trade.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
get
public Object get(String propertyName)
- Specified by:
 getin interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>- Overrides:
 getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
 
- 
set
public ResolvedFixedCouponBondTrade.Builder set(String propertyName, Object newValue)
 
- 
set
public ResolvedFixedCouponBondTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
 setin interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>- Overrides:
 setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
 
- 
build
public ResolvedFixedCouponBondTrade build()
 
- 
info
public ResolvedFixedCouponBondTrade.Builder info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.This allows additional information to be attached.
- Parameters:
 info- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
product
public ResolvedFixedCouponBondTrade.Builder product(ResolvedFixedCouponBond product)
Sets the resolved fixed coupon bond product.The product captures the contracted financial details of the trade.
- Parameters:
 product- the new value, not null- Returns:
 - this, for chaining, not null
 
 
- 
quantity
public ResolvedFixedCouponBondTrade.Builder quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.This will be positive if buying and negative if selling.
- Parameters:
 quantity- the new value- Returns:
 - this, for chaining, not null
 
 
- 
settlement
public ResolvedFixedCouponBondTrade.Builder settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the settlement details of the bond trade.When this class is used to represent a position, this property will be empty.
- Parameters:
 settlement- the new value- Returns:
 - this, for chaining, not null
 
 
- 
toString
public String toString()
- Overrides:
 toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
 
 - 
 
 -