public static final class SplitEtdId.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SplitEtdId>
SplitEtdId.| Modifier and Type | Method and Description |
|---|---|
SplitEtdId |
build() |
SplitEtdId.Builder |
contractCode(EtdContractCode contractCode)
Sets the code supplied by the exchange for use in clearing and margining, such as in SPAN.
|
SplitEtdId.Builder |
exchangeId(ExchangeId exchangeId)
Sets the ID of the exchange where the instruments derived from the product are traded.
|
SplitEtdId.Builder |
expiry(YearMonth expiry)
Sets the year-month of the expiry.
|
Object |
get(String propertyName) |
SplitEtdId.Builder |
option(SplitEtdOption option)
Sets the additional information if the ID is an option.
|
SplitEtdId.Builder |
securityId(SecurityId securityId)
Sets the security ID that was split.
|
SplitEtdId.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
SplitEtdId.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
SplitEtdId.Builder |
type(EtdType type)
Sets the type of the contract - future or option.
|
SplitEtdId.Builder |
variant(EtdVariant variant)
Sets the variant of ETD.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<SplitEtdId>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SplitEtdId>public SplitEtdId.Builder set(String propertyName, Object newValue)
public SplitEtdId.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<SplitEtdId>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SplitEtdId>public SplitEtdId build()
public SplitEtdId.Builder securityId(SecurityId securityId)
securityId - the new value, not nullpublic SplitEtdId.Builder type(EtdType type)
type - the new value, not nullpublic SplitEtdId.Builder exchangeId(ExchangeId exchangeId)
exchangeId - the new value, not nullpublic SplitEtdId.Builder contractCode(EtdContractCode contractCode)
contractCode - the new value, not nullpublic SplitEtdId.Builder expiry(YearMonth expiry)
Expiry will occur on a date implied by the variant of the ETD.
expiry - the new value, not nullpublic SplitEtdId.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 SplitEtdId.Builder option(SplitEtdOption option)
option - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SplitEtdId>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.