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 EtdFutureSecuritybuild()EtdFutureSecurity.BuildercontractSpecId(EtdContractSpecId contractSpecId)Sets the ID of the contract specification from which this security is derived.EtdFutureSecurity.Builderexpiry(YearMonth expiry)Sets the year-month of the expiry.Objectget(String propertyName)EtdFutureSecurity.Builderinfo(SecurityInfo info)Sets the standard security information.EtdFutureSecurity.Builderset(String propertyName, Object newValue)EtdFutureSecurity.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()EtdFutureSecurity.Buildervariant(EtdVariant variant)Sets the variant of ETD.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<EtdFutureSecurity>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<EtdFutureSecurity>- Overrides:
setin 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
-
-