Class ResolvedFxVanillaOption.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
-
- com.opengamma.strata.product.fxopt.ResolvedFxVanillaOption.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFxVanillaOption>
- Enclosing class:
- ResolvedFxVanillaOption
public static final class ResolvedFxVanillaOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
The bean-builder forResolvedFxVanillaOption
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFxVanillaOption
build()
ResolvedFxVanillaOption.Builder
expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.Object
get(String propertyName)
ResolvedFxVanillaOption.Builder
longShort(LongShort longShort)
Sets whether the option is long or short.ResolvedFxVanillaOption.Builder
set(String propertyName, Object newValue)
ResolvedFxVanillaOption.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
ResolvedFxVanillaOption.Builder
underlying(ResolvedFxSingle underlying)
Sets the underlying foreign exchange transaction.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedFxVanillaOption>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
-
set
public ResolvedFxVanillaOption.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFxVanillaOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedFxVanillaOption>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
-
build
public ResolvedFxVanillaOption build()
-
longShort
public ResolvedFxVanillaOption.Builder longShort(LongShort longShort)
Sets whether the option is long or short.At expiry, the long party will have the option to enter in this transaction; the short party will, at the option of the long party, potentially enter into the inverse transaction.
- Parameters:
longShort
- the new value, not null- Returns:
- this, for chaining, not null
-
expiry
public ResolvedFxVanillaOption.Builder expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.The option is European, and can only be exercised on the expiry date.
- Parameters:
expiry
- the new value, not null- Returns:
- this, for chaining, not null
-
underlying
public ResolvedFxVanillaOption.Builder underlying(ResolvedFxSingle underlying)
Sets the underlying foreign exchange transaction.At expiry, if the option is in the money, this foreign exchange will occur. A call option permits the transaction as specified to occur. A put option permits the inverse transaction to occur.
- Parameters:
underlying
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
-
-