Package com.qtsurfer.api.client.model
Class DeclaredProperty
java.lang.Object
com.qtsurfer.api.client.model.DeclaredProperty
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class DeclaredProperty
extends Object
One property name `POST /strategy` could establish without constructing the strategy — either declared with `@StrategyProperty` on the compiled source, or one of the small set of base properties every strategy carries (`amnt`, `enabled`, `multiEntry`, ...). **Best-effort, not exhaustive.** A property registered through an attached risk/backtest config needs a live instance to discover and is not listed here. Use this to catch a typo'd sweep key before submitting, not as the definitive list of what a sweep will accept — a name absent from this list may still be valid.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue(String defaultValue) description(String description) booleanReturn true if this DeclaredProperty object is equal to o.The declared default, as a string, if one was given.Human-readable label, as declared.getMax()Suggested sweep/range maximum, if declared.getMin()Suggested sweep/range minimum, if declared.getName()The key a sweep or execute param map uses for this property.Whether a value for this key is injected into the strategy's field (`true`) or only available through the property map (`false`).getStep()Suggested sweep/range step, if declared.inthashCode()voidsetDefaultValue(String defaultValue) voidsetDescription(String description) voidvoidvoidvoidsetReflected(Boolean reflected) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_DEFAULT_VALUE
- See Also:
-
JSON_PROPERTY_REFLECTED
- See Also:
-
JSON_PROPERTY_MIN
- See Also:
-
JSON_PROPERTY_MAX
- See Also:
-
JSON_PROPERTY_STEP
- See Also:
-
-
Constructor Details
-
DeclaredProperty
public DeclaredProperty()
-
-
Method Details
-
name
-
getName
The key a sweep or execute param map uses for this property.- Returns:
- name
-
setName
-
description
-
getDescription
Human-readable label, as declared.- Returns:
- description
-
setDescription
-
defaultValue
-
getDefaultValue
The declared default, as a string, if one was given. Absent, not null, when none was declared.- Returns:
- defaultValue
-
setDefaultValue
-
reflected
-
getReflected
Whether a value for this key is injected into the strategy's field (`true`) or only available through the property map (`false`).- Returns:
- reflected
-
setReflected
-
min
-
getMin
Suggested sweep/range minimum, if declared. Advisory only, never validated.- Returns:
- min
-
setMin
-
max
-
getMax
Suggested sweep/range maximum, if declared. Advisory only, never validated.- Returns:
- max
-
setMax
-
step
-
getStep
Suggested sweep/range step, if declared. Advisory only, never validated.- Returns:
- step
-
setStep
-
equals
Return true if this DeclaredProperty object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-