Package com.opengamma.strata.product.fx
Class ResolvedFxSwapTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
- com.opengamma.strata.product.fx.ResolvedFxSwapTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFxSwapTrade>
- Enclosing class:
- ResolvedFxSwapTrade
public static final class ResolvedFxSwapTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
The bean-builder forResolvedFxSwapTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFxSwapTradebuild()Objectget(String propertyName)ResolvedFxSwapTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.ResolvedFxSwapTrade.Builderproduct(ResolvedFxSwap product)Sets the resolved FX swap product.ResolvedFxSwapTrade.Builderset(String propertyName, Object newValue)ResolvedFxSwapTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedFxSwapTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
set
public ResolvedFxSwapTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFxSwapTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedFxSwapTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
build
public ResolvedFxSwapTrade build()
-
info
public ResolvedFxSwapTrade.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 ResolvedFxSwapTrade.Builder product(ResolvedFxSwap product)
Sets the resolved FX swap product.The product captures the contracted financial details of the trade.
- Parameters:
product- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
-