Class CdsIndexIsdaCreditCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
- com.opengamma.strata.market.curve.node.CdsIndexIsdaCreditCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>
- Enclosing class:
- CdsIndexIsdaCreditCurveNode
public static final class CdsIndexIsdaCreditCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
The bean-builder forCdsIndexIsdaCreditCurveNode.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdsIndexIsdaCreditCurveNodebuild()CdsIndexIsdaCreditCurveNode.BuildercdsIndexId(StandardId cdsIndexId)Sets the CDS index identifier.CdsIndexIsdaCreditCurveNode.BuilderfixedRate(Double fixedRate)Sets the fixed coupon rate.Objectget(String propertyName)CdsIndexIsdaCreditCurveNode.Builderlabel(String label)Sets the label to use for the node.CdsIndexIsdaCreditCurveNode.BuilderlegalEntityIds(StandardId... legalEntityIds)Sets thelegalEntityIdsproperty in the builder from an array of objects.CdsIndexIsdaCreditCurveNode.BuilderlegalEntityIds(List<StandardId> legalEntityIds)Sets the legal entity identifiers.CdsIndexIsdaCreditCurveNode.BuilderobservableId(ObservableId observableId)Sets the identifier of the market data value that provides the quoted value.CdsIndexIsdaCreditCurveNode.BuilderquoteConvention(CdsQuoteConvention quoteConvention)Sets the market quote convention.CdsIndexIsdaCreditCurveNode.Builderset(String propertyName, Object newValue)CdsIndexIsdaCreditCurveNode.Builderset(org.joda.beans.MetaProperty<?> property, Object value)CdsIndexIsdaCreditCurveNode.Buildertemplate(CdsTemplate template)Sets the template for the single names associated with this node.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
set
public CdsIndexIsdaCreditCurveNode.Builder set(String propertyName, Object newValue)
-
set
public CdsIndexIsdaCreditCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<CdsIndexIsdaCreditCurveNode>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
build
public CdsIndexIsdaCreditCurveNode build()
-
template
public CdsIndexIsdaCreditCurveNode.Builder template(CdsTemplate template)
Sets the template for the single names associated with this node.- Parameters:
template- the new value, not null- Returns:
- this, for chaining, not null
-
label
public CdsIndexIsdaCreditCurveNode.Builder label(String label)
Sets the label to use for the node.When building, this will default based on
templateif not specified.- Parameters:
label- the new value, not empty- Returns:
- this, for chaining, not null
-
observableId
public CdsIndexIsdaCreditCurveNode.Builder observableId(ObservableId observableId)
Sets the identifier of the market data value that provides the quoted value.- Parameters:
observableId- the new value, not null- Returns:
- this, for chaining, not null
-
cdsIndexId
public CdsIndexIsdaCreditCurveNode.Builder cdsIndexId(StandardId cdsIndexId)
Sets the CDS index identifier.This identifier is used to refer this CDS index product.
- Parameters:
cdsIndexId- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityIds
public CdsIndexIsdaCreditCurveNode.Builder legalEntityIds(List<StandardId> legalEntityIds)
Sets the legal entity identifiers.These identifiers refer to the reference legal entities of the CDS index.
- Parameters:
legalEntityIds- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityIds
public CdsIndexIsdaCreditCurveNode.Builder legalEntityIds(StandardId... legalEntityIds)
Sets thelegalEntityIdsproperty in the builder from an array of objects.- Parameters:
legalEntityIds- the new value, not null- Returns:
- this, for chaining, not null
-
quoteConvention
public CdsIndexIsdaCreditCurveNode.Builder quoteConvention(CdsQuoteConvention quoteConvention)
Sets the market quote convention.The CDS index is quoted in par spread, points upfront or quoted spread. See
CdsQuoteConventionfor detail.- Parameters:
quoteConvention- the new value, not null- Returns:
- this, for chaining, not null
-
fixedRate
public CdsIndexIsdaCreditCurveNode.Builder fixedRate(Double fixedRate)
Sets the fixed coupon rate.This must be represented in decimal form.
- Parameters:
fixedRate- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CdsIndexIsdaCreditCurveNode>
-
-