public static final class EtdFutureSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>
EtdFutureSecurity.| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
EtdFutureSecurity.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
EtdFutureSecurity.Builder |
variant(EtdVariant variant)
Sets the variant of ETD.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<EtdFutureSecurity>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>public EtdFutureSecurity.Builder set(String propertyName, Object newValue)
public EtdFutureSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<EtdFutureSecurity>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>public EtdFutureSecurity build()
public EtdFutureSecurity.Builder info(SecurityInfo info)
This includes the security identifier.
info - the new value, not nullpublic EtdFutureSecurity.Builder contractSpecId(EtdContractSpecId contractSpecId)
contractSpecId - the new value, not nullpublic EtdFutureSecurity.Builder expiry(YearMonth expiry)
Expiry will occur on a date implied by the variant of the ETD.
expiry - the new value, not nullpublic EtdFutureSecurity.Builder variant(EtdVariant variant)
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'.
variant - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdFutureSecurity>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.