Package com.opengamma.strata.product.etd
Class EtdFutureSecurity.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
-
- com.opengamma.strata.product.etd.EtdFutureSecurity.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<EtdFutureSecurity>
- Enclosing class:
- EtdFutureSecurity
public static final class EtdFutureSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
The bean-builder forEtdFutureSecurity
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EtdFutureSecurity
build()
EtdFutureSecurity.Builder
contractSpecId(EtdContractSpecId contractSpecId)
Sets the ID of the contract specification from which this security is derived.EtdFutureSecurity.Builder
expiry(YearMonth expiry)
Sets the year-month of the expiry.Object
get(String propertyName)
EtdFutureSecurity.Builder
info(SecurityInfo info)
Sets the standard security information.EtdFutureSecurity.Builder
set(String propertyName, Object newValue)
EtdFutureSecurity.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
EtdFutureSecurity.Builder
variant(EtdVariant variant)
Sets the variant of ETD.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<EtdFutureSecurity>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
-
set
public EtdFutureSecurity.Builder set(String propertyName, Object newValue)
-
set
public EtdFutureSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<EtdFutureSecurity>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
-
build
public EtdFutureSecurity build()
-
info
public EtdFutureSecurity.Builder info(SecurityInfo info)
Sets the standard security information.This includes the security identifier.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
contractSpecId
public EtdFutureSecurity.Builder contractSpecId(EtdContractSpecId contractSpecId)
Sets the ID of the contract specification from which this security is derived.- Parameters:
contractSpecId
- the new value, not null- Returns:
- this, for chaining, not null
-
expiry
public EtdFutureSecurity.Builder expiry(YearMonth expiry)
Sets the year-month of the expiry.Expiry will occur on a date implied by the variant of the ETD.
- Parameters:
expiry
- the new value, not null- Returns:
- this, for chaining, not null
-
variant
public EtdFutureSecurity.Builder variant(EtdVariant variant)
Sets the variant of ETD.This captures the variant of the ETD. The most common variant is 'Monthly'. Other variants are 'Weekly', 'Daily' and 'Flex'.
When building, this defaults to 'Monthly'.
- Parameters:
variant
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
-
-