Package com.launchdarkly.api.model
Class InsightsChartMetric
- java.lang.Object
-
- com.launchdarkly.api.model.InsightsChartMetric
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class InsightsChartMetric extends java.lang.ObjectInsightsChartMetric
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInsightsChartMetric.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_INDICATORstatic java.lang.StringSERIALIZED_NAME_MODIFIERstatic java.lang.StringSERIALIZED_NAME_TIERSstatic java.lang.StringSERIALIZED_NAME_UNITstatic java.lang.StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description InsightsChartMetric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InsightsChartMetricaddTiersItem(InsightsMetricTierDefinition tiersItem)booleanequals(java.lang.Object o)static InsightsChartMetricfromJson(java.lang.String jsonString)Create an instance of InsightsChartMetric given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetIndicator()Metric indicator tierjava.lang.StringgetModifier()Metric modifierjava.util.List<InsightsMetricTierDefinition>getTiers()Metric indicator tiersjava.lang.StringgetUnit()Metric unitjava.math.BigDecimalgetValue()Metric valueinthashCode()InsightsChartMetricindicator(java.lang.String indicator)InsightsChartMetricmodifier(java.lang.String modifier)InsightsChartMetricputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetIndicator(java.lang.String indicator)voidsetModifier(java.lang.String modifier)voidsetTiers(java.util.List<InsightsMetricTierDefinition> tiers)voidsetUnit(java.lang.String unit)voidsetValue(java.math.BigDecimal value)InsightsChartMetrictiers(java.util.List<InsightsMetricTierDefinition> tiers)java.lang.StringtoJson()Convert an instance of InsightsChartMetric to an JSON stringjava.lang.StringtoString()InsightsChartMetricunit(java.lang.String unit)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundInsightsChartMetricvalue(java.math.BigDecimal value)
-
-
-
Field Detail
-
SERIALIZED_NAME_INDICATOR
public static final java.lang.String SERIALIZED_NAME_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final java.lang.String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNIT
public static final java.lang.String SERIALIZED_NAME_UNIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MODIFIER
public static final java.lang.String SERIALIZED_NAME_MODIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIERS
public static final java.lang.String SERIALIZED_NAME_TIERS
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
indicator
public InsightsChartMetric indicator(@Nonnull java.lang.String indicator)
-
getIndicator
@Nonnull public java.lang.String getIndicator()
Metric indicator tier- Returns:
- indicator
-
setIndicator
public void setIndicator(@Nonnull java.lang.String indicator)
-
value
public InsightsChartMetric value(@Nonnull java.math.BigDecimal value)
-
getValue
@Nonnull public java.math.BigDecimal getValue()
Metric value- Returns:
- value
-
setValue
public void setValue(@Nonnull java.math.BigDecimal value)
-
unit
public InsightsChartMetric unit(@Nonnull java.lang.String unit)
-
getUnit
@Nonnull public java.lang.String getUnit()
Metric unit- Returns:
- unit
-
setUnit
public void setUnit(@Nonnull java.lang.String unit)
-
modifier
public InsightsChartMetric modifier(@Nonnull java.lang.String modifier)
-
getModifier
@Nonnull public java.lang.String getModifier()
Metric modifier- Returns:
- modifier
-
setModifier
public void setModifier(@Nonnull java.lang.String modifier)
-
tiers
public InsightsChartMetric tiers(@Nonnull java.util.List<InsightsMetricTierDefinition> tiers)
-
addTiersItem
public InsightsChartMetric addTiersItem(InsightsMetricTierDefinition tiersItem)
-
getTiers
@Nonnull public java.util.List<InsightsMetricTierDefinition> getTiers()
Metric indicator tiers- Returns:
- tiers
-
setTiers
public void setTiers(@Nonnull java.util.List<InsightsMetricTierDefinition> tiers)
-
putAdditionalProperty
public InsightsChartMetric putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the InsightsChartMetric instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to InsightsChartMetric
-
fromJson
public static InsightsChartMetric fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of InsightsChartMetric given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InsightsChartMetric
- Throws:
java.io.IOException- if the JSON string is invalid with respect to InsightsChartMetric
-
toJson
public java.lang.String toJson()
Convert an instance of InsightsChartMetric to an JSON string- Returns:
- JSON string
-
-