Class ResolvedFxSingleBarrierOptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSingleBarrierOptionTrade>
-
- com.opengamma.strata.product.fxopt.ResolvedFxSingleBarrierOptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFxSingleBarrierOptionTrade>
- Enclosing class:
- ResolvedFxSingleBarrierOptionTrade
public static final class ResolvedFxSingleBarrierOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSingleBarrierOptionTrade>
The bean-builder forResolvedFxSingleBarrierOptionTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFxSingleBarrierOptionTradebuild()Objectget(String propertyName)ResolvedFxSingleBarrierOptionTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.ResolvedFxSingleBarrierOptionTrade.Builderpremium(Payment premium)Sets the premium of the FX option.ResolvedFxSingleBarrierOptionTrade.Builderproduct(ResolvedFxSingleBarrierOption product)Sets the resolved barrier FX option product.ResolvedFxSingleBarrierOptionTrade.Builderset(String propertyName, Object newValue)ResolvedFxSingleBarrierOptionTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedFxSingleBarrierOptionTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSingleBarrierOptionTrade>
-
set
public ResolvedFxSingleBarrierOptionTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFxSingleBarrierOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedFxSingleBarrierOptionTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSingleBarrierOptionTrade>
-
build
public ResolvedFxSingleBarrierOptionTrade build()
-
info
public ResolvedFxSingleBarrierOptionTrade.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 ResolvedFxSingleBarrierOptionTrade.Builder product(ResolvedFxSingleBarrierOption product)
Sets the resolved barrier FX option product.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 ResolvedFxSingleBarrierOptionTrade.Builder premium(Payment 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<ResolvedFxSingleBarrierOptionTrade>
-
-