Package com.launchdarkly.api.model
Class ExpandedMetric
- java.lang.Object
-
- com.launchdarkly.api.model.ExpandedMetric
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class ExpandedMetric extends java.lang.ObjectMetric representation for Views API - contains only fields actually used by the Views service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpandedMetric.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_CATEGORYstatic java.lang.StringSERIALIZED_NAME_CREATION_DATEstatic java.lang.StringSERIALIZED_NAME_DESCRIPTIONstatic java.lang.StringSERIALIZED_NAME_EVENT_KEYstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_IS_ACTIVEstatic java.lang.StringSERIALIZED_NAME_IS_NUMERICstatic java.lang.StringSERIALIZED_NAME_KEYstatic java.lang.StringSERIALIZED_NAME_KINDstatic java.lang.StringSERIALIZED_NAME_LAST_MODIFIEDstatic java.lang.StringSERIALIZED_NAME_LAST_SEENstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_VERSION_ID
-
Constructor Summary
Constructors Constructor Description ExpandedMetric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpandedMetriccategory(java.lang.String category)ExpandedMetriccreationDate(java.lang.Long creationDate)ExpandedMetricdescription(java.lang.String description)booleanequals(java.lang.Object o)ExpandedMetriceventKey(java.lang.String eventKey)static ExpandedMetricfromJson(java.lang.String jsonString)Create an instance of ExpandedMetric 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.StringgetCategory()Category of the Metricjava.lang.LonggetCreationDate()Creation date in millisecondsjava.lang.StringgetDescription()Description of the Metricjava.lang.StringgetEventKey()Event key for the metricjava.lang.StringgetId()ID of the metricjava.lang.BooleangetIsActive()Whether the metric is activejava.lang.BooleangetIsNumeric()Get isNumericjava.lang.StringgetKey()A unique key used to reference the metricjava.lang.StringgetKind()Kind of the Metricjava.lang.LonggetLastModified()Last modification date in millisecondsjava.lang.LonggetLastSeen()Last seen date in millisecondsParentAndSelfLinksgetLinks()Get linksjava.lang.StringgetName()A human-friendly name for the metricjava.lang.StringgetVersionId()Version ID of the metricinthashCode()ExpandedMetricid(java.lang.String id)ExpandedMetricisActive(java.lang.Boolean isActive)ExpandedMetricisNumeric(java.lang.Boolean isNumeric)ExpandedMetrickey(java.lang.String key)ExpandedMetrickind(java.lang.String kind)ExpandedMetriclastModified(java.lang.Long lastModified)ExpandedMetriclastSeen(java.lang.Long lastSeen)ExpandedMetriclinks(ParentAndSelfLinks links)ExpandedMetricname(java.lang.String name)ExpandedMetricputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetCategory(java.lang.String category)voidsetCreationDate(java.lang.Long creationDate)voidsetDescription(java.lang.String description)voidsetEventKey(java.lang.String eventKey)voidsetId(java.lang.String id)voidsetIsActive(java.lang.Boolean isActive)voidsetIsNumeric(java.lang.Boolean isNumeric)voidsetKey(java.lang.String key)voidsetKind(java.lang.String kind)voidsetLastModified(java.lang.Long lastModified)voidsetLastSeen(java.lang.Long lastSeen)voidsetLinks(ParentAndSelfLinks links)voidsetName(java.lang.String name)voidsetVersionId(java.lang.String versionId)java.lang.StringtoJson()Convert an instance of ExpandedMetric to an JSON stringjava.lang.StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundExpandedMetricversionId(java.lang.String versionId)
-
-
-
Field Detail
-
SERIALIZED_NAME_KEY
public static final java.lang.String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATION_DATE
public static final java.lang.String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_MODIFIED
public static final java.lang.String SERIALIZED_NAME_LAST_MODIFIED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_ACTIVE
public static final java.lang.String SERIALIZED_NAME_IS_ACTIVE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EVENT_KEY
public static final java.lang.String SERIALIZED_NAME_EVENT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION_ID
public static final java.lang.String SERIALIZED_NAME_VERSION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KIND
public static final java.lang.String SERIALIZED_NAME_KIND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY
public static final java.lang.String SERIALIZED_NAME_CATEGORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final java.lang.String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_NUMERIC
public static final java.lang.String SERIALIZED_NAME_IS_NUMERIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_SEEN
public static final java.lang.String SERIALIZED_NAME_LAST_SEEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- 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
-
key
public ExpandedMetric key(@Nullable java.lang.String key)
-
getKey
@Nullable public java.lang.String getKey()
A unique key used to reference the metric- Returns:
- key
-
setKey
public void setKey(@Nullable java.lang.String key)
-
name
public ExpandedMetric name(@Nullable java.lang.String name)
-
getName
@Nullable public java.lang.String getName()
A human-friendly name for the metric- Returns:
- name
-
setName
public void setName(@Nullable java.lang.String name)
-
creationDate
public ExpandedMetric creationDate(@Nullable java.lang.Long creationDate)
-
getCreationDate
@Nullable public java.lang.Long getCreationDate()
Creation date in milliseconds- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(@Nullable java.lang.Long creationDate)
-
lastModified
public ExpandedMetric lastModified(@Nullable java.lang.Long lastModified)
-
getLastModified
@Nullable public java.lang.Long getLastModified()
Last modification date in milliseconds- Returns:
- lastModified
-
setLastModified
public void setLastModified(@Nullable java.lang.Long lastModified)
-
isActive
public ExpandedMetric isActive(@Nullable java.lang.Boolean isActive)
-
getIsActive
@Nullable public java.lang.Boolean getIsActive()
Whether the metric is active- Returns:
- isActive
-
setIsActive
public void setIsActive(@Nullable java.lang.Boolean isActive)
-
eventKey
public ExpandedMetric eventKey(@Nullable java.lang.String eventKey)
-
getEventKey
@Nullable public java.lang.String getEventKey()
Event key for the metric- Returns:
- eventKey
-
setEventKey
public void setEventKey(@Nullable java.lang.String eventKey)
-
id
public ExpandedMetric id(@Nullable java.lang.String id)
-
getId
@Nullable public java.lang.String getId()
ID of the metric- Returns:
- id
-
setId
public void setId(@Nullable java.lang.String id)
-
versionId
public ExpandedMetric versionId(@Nullable java.lang.String versionId)
-
getVersionId
@Nullable public java.lang.String getVersionId()
Version ID of the metric- Returns:
- versionId
-
setVersionId
public void setVersionId(@Nullable java.lang.String versionId)
-
kind
public ExpandedMetric kind(@Nullable java.lang.String kind)
-
getKind
@Nullable public java.lang.String getKind()
Kind of the Metric- Returns:
- kind
-
setKind
public void setKind(@Nullable java.lang.String kind)
-
category
public ExpandedMetric category(@Nullable java.lang.String category)
-
getCategory
@Nullable public java.lang.String getCategory()
Category of the Metric- Returns:
- category
-
setCategory
public void setCategory(@Nullable java.lang.String category)
-
description
public ExpandedMetric description(@Nullable java.lang.String description)
-
getDescription
@Nullable public java.lang.String getDescription()
Description of the Metric- Returns:
- description
-
setDescription
public void setDescription(@Nullable java.lang.String description)
-
isNumeric
public ExpandedMetric isNumeric(@Nullable java.lang.Boolean isNumeric)
-
getIsNumeric
@Nullable public java.lang.Boolean getIsNumeric()
Get isNumeric- Returns:
- isNumeric
-
setIsNumeric
public void setIsNumeric(@Nullable java.lang.Boolean isNumeric)
-
lastSeen
public ExpandedMetric lastSeen(@Nullable java.lang.Long lastSeen)
-
getLastSeen
@Nullable public java.lang.Long getLastSeen()
Last seen date in milliseconds- Returns:
- lastSeen
-
setLastSeen
public void setLastSeen(@Nullable java.lang.Long lastSeen)
-
links
public ExpandedMetric links(@Nullable ParentAndSelfLinks links)
-
getLinks
@Nullable public ParentAndSelfLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(@Nullable ParentAndSelfLinks links)
-
putAdditionalProperty
public ExpandedMetric 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 ExpandedMetric 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 ExpandedMetric
-
fromJson
public static ExpandedMetric fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of ExpandedMetric given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExpandedMetric
- Throws:
java.io.IOException- if the JSON string is invalid with respect to ExpandedMetric
-
toJson
public java.lang.String toJson()
Convert an instance of ExpandedMetric to an JSON string- Returns:
- JSON string
-
-