Class FxSingleBarrierOptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOptionTrade>
-
- com.opengamma.strata.product.fxopt.FxSingleBarrierOptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxSingleBarrierOptionTrade>
- Enclosing class:
- FxSingleBarrierOptionTrade
public static final class FxSingleBarrierOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOptionTrade>
The bean-builder forFxSingleBarrierOptionTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxSingleBarrierOptionTradebuild()Objectget(String propertyName)FxSingleBarrierOptionTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.FxSingleBarrierOptionTrade.Builderpremium(AdjustablePayment premium)Sets the premium of the FX option.FxSingleBarrierOptionTrade.Builderproduct(FxSingleBarrierOption product)Sets the FX option product that was agreed when the trade occurred.FxSingleBarrierOptionTrade.Builderset(String propertyName, Object newValue)FxSingleBarrierOptionTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FxSingleBarrierOptionTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOptionTrade>
-
set
public FxSingleBarrierOptionTrade.Builder set(String propertyName, Object newValue)
-
set
public FxSingleBarrierOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FxSingleBarrierOptionTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOptionTrade>
-
build
public FxSingleBarrierOptionTrade build()
-
info
public FxSingleBarrierOptionTrade.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 FxSingleBarrierOptionTrade.Builder product(FxSingleBarrierOption product)
Sets the FX option product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Parameters:
product- the new value, not null- Returns:
- this, for chaining, not null
-
premium
public FxSingleBarrierOptionTrade.Builder premium(AdjustablePayment premium)
Sets the premium of the FX option.The premium sign should be compatible with the product Long/Short flag. This means that the premium is negative for long and positive for short.
- Parameters:
premium- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOptionTrade>
-
-