public static final class FxSingleBarrierOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
FxSingleBarrierOption
.Modifier and Type | Method and Description |
---|---|
FxSingleBarrierOption.Builder |
barrier(Barrier barrier)
Sets the barrier description.
|
FxSingleBarrierOption |
build() |
Object |
get(String propertyName) |
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.
|
FxSingleBarrierOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FxSingleBarrierOption.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
FxSingleBarrierOption.Builder |
underlyingOption(FxVanillaOption underlyingOption)
Sets the underlying FX vanilla option.
|
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<FxSingleBarrierOption>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
public FxSingleBarrierOption.Builder set(String propertyName, Object newValue)
public FxSingleBarrierOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<FxSingleBarrierOption>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
public FxSingleBarrierOption build()
public FxSingleBarrierOption.Builder underlyingOption(FxVanillaOption underlyingOption)
underlyingOption
- the new value, not nullpublic FxSingleBarrierOption.Builder barrier(Barrier barrier)
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.
barrier
- the new value, not nullpublic FxSingleBarrierOption.Builder rebate(CurrencyAmount rebate)
This is the notional amount represented in one of the currency pair. The amount should be positive.
rebate
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.