Class FxSingleBarrierOption.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
-
- com.opengamma.strata.product.fxopt.FxSingleBarrierOption.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxSingleBarrierOption>
- Enclosing class:
- FxSingleBarrierOption
public static final class FxSingleBarrierOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
The bean-builder forFxSingleBarrierOption.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxSingleBarrierOption.Builderbarrier(Barrier barrier)Sets the barrier description.FxSingleBarrierOptionbuild()Objectget(String propertyName)FxSingleBarrierOption.Builderrebate(CurrencyAmount rebate)Sets for a 'out' option, the amount is paid when the barrier is reached; for a 'in' option, the amount is paid at expiry if the barrier is not reached.FxSingleBarrierOption.Builderset(String propertyName, Object newValue)FxSingleBarrierOption.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()FxSingleBarrierOption.BuilderunderlyingOption(FxVanillaOption underlyingOption)Sets the underlying FX vanilla option.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FxSingleBarrierOption>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
-
set
public FxSingleBarrierOption.Builder set(String propertyName, Object newValue)
-
set
public FxSingleBarrierOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FxSingleBarrierOption>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
-
build
public FxSingleBarrierOption build()
-
underlyingOption
public FxSingleBarrierOption.Builder underlyingOption(FxVanillaOption underlyingOption)
Sets the underlying FX vanilla option.- Parameters:
underlyingOption- the new value, not null- Returns:
- this, for chaining, not null
-
barrier
public FxSingleBarrierOption.Builder barrier(Barrier barrier)
Sets the barrier description.The barrier level stored in this field must be represented based on the direction of the currency pair in the underlying FX transaction.
For example, if the underlying option is an option on EUR/GBP, the barrier should be a certain level of EUR/GBP rate.
- Parameters:
barrier- the new value, not null- Returns:
- this, for chaining, not null
-
rebate
public FxSingleBarrierOption.Builder rebate(CurrencyAmount rebate)
Sets for a 'out' option, the amount is paid when the barrier is reached; for a 'in' option, the amount is paid at expiry if the barrier is not reached.This is the notional amount represented in one of the currency pair. The amount should be positive.
- Parameters:
rebate- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
-
-