Package com.launchdarkly.api.model
Class MetricGroupRep
- java.lang.Object
-
- com.launchdarkly.api.model.MetricGroupRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class MetricGroupRep extends java.lang.ObjectMetricGroupRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricGroupRep.CustomTypeAdapterFactorystatic classMetricGroupRep.KindEnumThe type of the metric group
-
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_ACCESSstatic java.lang.StringSERIALIZED_NAME_ACTIVE_EXPERIMENT_COUNTstatic java.lang.StringSERIALIZED_NAME_ACTIVE_GUARDED_ROLLOUT_COUNTstatic java.lang.StringSERIALIZED_NAME_CREATION_DATEstatic java.lang.StringSERIALIZED_NAME_DESCRIPTIONstatic java.lang.StringSERIALIZED_NAME_EXPERIMENT_COUNTstatic java.lang.StringSERIALIZED_NAME_EXPERIMENTSstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_KEYstatic java.lang.StringSERIALIZED_NAME_KINDstatic java.lang.StringSERIALIZED_NAME_LAST_MODIFIEDstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_MAINTAINERstatic java.lang.StringSERIALIZED_NAME_METRICSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_TAGSstatic java.lang.StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description MetricGroupRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricGroupRepaccess(Access access)MetricGroupRepactiveExperimentCount(java.lang.Integer activeExperimentCount)MetricGroupRepactiveGuardedRolloutCount(java.lang.Integer activeGuardedRolloutCount)MetricGroupRepaddExperimentsItem(DependentExperimentRep experimentsItem)MetricGroupRepaddMetricsItem(MetricInGroupRep metricsItem)MetricGroupRepaddTagsItem(java.lang.String tagsItem)MetricGroupRepcreationDate(java.lang.Long creationDate)MetricGroupRepdescription(java.lang.String description)booleanequals(java.lang.Object o)MetricGroupRepexperimentCount(java.lang.Integer experimentCount)MetricGroupRepexperiments(java.util.List<DependentExperimentRep> experiments)static MetricGroupRepfromJson(java.lang.String jsonString)Create an instance of MetricGroupRep given an JSON stringAccessgetAccess()Get accessjava.lang.IntegergetActiveExperimentCount()The number of active experiments using this metric groupjava.lang.IntegergetActiveGuardedRolloutCount()The number of active guarded rollouts using this metric groupjava.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.LonggetCreationDate()Get creationDatejava.lang.StringgetDescription()Description of the metric groupjava.lang.IntegergetExperimentCount()The number of experiments using this metric groupjava.util.List<DependentExperimentRep>getExperiments()Get experimentsjava.lang.StringgetId()The ID of this metric groupjava.lang.StringgetKey()A unique key to reference the metric groupMetricGroupRep.KindEnumgetKind()The type of the metric groupjava.lang.LonggetLastModified()Get lastModifiedjava.util.Map<java.lang.String,Link>getLinks()The location and content type of related resourcesMaintainerRepgetMaintainer()Get maintainerjava.util.List<MetricInGroupRep>getMetrics()An ordered list of the metrics in this metric groupjava.lang.StringgetName()A human-friendly name for the metric groupjava.util.List<java.lang.String>getTags()Tags for the metric groupjava.lang.IntegergetVersion()The version of this metric groupinthashCode()MetricGroupRepid(java.lang.String id)MetricGroupRepkey(java.lang.String key)MetricGroupRepkind(MetricGroupRep.KindEnum kind)MetricGroupReplastModified(java.lang.Long lastModified)MetricGroupReplinks(java.util.Map<java.lang.String,Link> links)MetricGroupRepmaintainer(MaintainerRep maintainer)MetricGroupRepmetrics(java.util.List<MetricInGroupRep> metrics)MetricGroupRepname(java.lang.String name)MetricGroupRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.MetricGroupRepputLinksItem(java.lang.String key, Link linksItem)voidsetAccess(Access access)voidsetActiveExperimentCount(java.lang.Integer activeExperimentCount)voidsetActiveGuardedRolloutCount(java.lang.Integer activeGuardedRolloutCount)voidsetCreationDate(java.lang.Long creationDate)voidsetDescription(java.lang.String description)voidsetExperimentCount(java.lang.Integer experimentCount)voidsetExperiments(java.util.List<DependentExperimentRep> experiments)voidsetId(java.lang.String id)voidsetKey(java.lang.String key)voidsetKind(MetricGroupRep.KindEnum kind)voidsetLastModified(java.lang.Long lastModified)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetMaintainer(MaintainerRep maintainer)voidsetMetrics(java.util.List<MetricInGroupRep> metrics)voidsetName(java.lang.String name)voidsetTags(java.util.List<java.lang.String> tags)voidsetVersion(java.lang.Integer version)MetricGroupReptags(java.util.List<java.lang.String> tags)java.lang.StringtoJson()Convert an instance of MetricGroupRep to an JSON stringjava.lang.StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundMetricGroupRepversion(java.lang.Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
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_KIND
public static final java.lang.String SERIALIZED_NAME_KIND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final java.lang.String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCESS
public static final java.lang.String SERIALIZED_NAME_ACCESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final java.lang.String SERIALIZED_NAME_TAGS
- 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_MAINTAINER
public static final java.lang.String SERIALIZED_NAME_MAINTAINER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METRICS
public static final java.lang.String SERIALIZED_NAME_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final java.lang.String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPERIMENTS
public static final java.lang.String SERIALIZED_NAME_EXPERIMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPERIMENT_COUNT
public static final java.lang.String SERIALIZED_NAME_EXPERIMENT_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIVE_EXPERIMENT_COUNT
public static final java.lang.String SERIALIZED_NAME_ACTIVE_EXPERIMENT_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIVE_GUARDED_ROLLOUT_COUNT
public static final java.lang.String SERIALIZED_NAME_ACTIVE_GUARDED_ROLLOUT_COUNT
- 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
-
id
public MetricGroupRep id(@Nonnull java.lang.String id)
-
getId
@Nonnull public java.lang.String getId()
The ID of this metric group- Returns:
- id
-
setId
public void setId(@Nonnull java.lang.String id)
-
key
public MetricGroupRep key(@Nonnull java.lang.String key)
-
getKey
@Nonnull public java.lang.String getKey()
A unique key to reference the metric group- Returns:
- key
-
setKey
public void setKey(@Nonnull java.lang.String key)
-
name
public MetricGroupRep name(@Nonnull java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
A human-friendly name for the metric group- Returns:
- name
-
setName
public void setName(@Nonnull java.lang.String name)
-
kind
public MetricGroupRep kind(@Nonnull MetricGroupRep.KindEnum kind)
-
getKind
@Nonnull public MetricGroupRep.KindEnum getKind()
The type of the metric group- Returns:
- kind
-
setKind
public void setKind(@Nonnull MetricGroupRep.KindEnum kind)
-
description
public MetricGroupRep description(@Nullable java.lang.String description)
-
getDescription
@Nullable public java.lang.String getDescription()
Description of the metric group- Returns:
- description
-
setDescription
public void setDescription(@Nullable java.lang.String description)
-
links
public MetricGroupRep links(@Nonnull java.util.Map<java.lang.String,Link> links)
-
putLinksItem
public MetricGroupRep putLinksItem(java.lang.String key, Link linksItem)
-
getLinks
@Nonnull public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(@Nonnull java.util.Map<java.lang.String,Link> links)
-
access
public MetricGroupRep access(@Nullable Access access)
-
getAccess
@Nullable public Access getAccess()
Get access- Returns:
- access
-
setAccess
public void setAccess(@Nullable Access access)
-
tags
public MetricGroupRep tags(@Nonnull java.util.List<java.lang.String> tags)
-
addTagsItem
public MetricGroupRep addTagsItem(java.lang.String tagsItem)
-
getTags
@Nonnull public java.util.List<java.lang.String> getTags()
Tags for the metric group- Returns:
- tags
-
setTags
public void setTags(@Nonnull java.util.List<java.lang.String> tags)
-
creationDate
public MetricGroupRep creationDate(@Nonnull java.lang.Long creationDate)
-
getCreationDate
@Nonnull public java.lang.Long getCreationDate()
Get creationDate- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(@Nonnull java.lang.Long creationDate)
-
lastModified
public MetricGroupRep lastModified(@Nonnull java.lang.Long lastModified)
-
getLastModified
@Nonnull public java.lang.Long getLastModified()
Get lastModified- Returns:
- lastModified
-
setLastModified
public void setLastModified(@Nonnull java.lang.Long lastModified)
-
maintainer
public MetricGroupRep maintainer(@Nonnull MaintainerRep maintainer)
-
getMaintainer
@Nonnull public MaintainerRep getMaintainer()
Get maintainer- Returns:
- maintainer
-
setMaintainer
public void setMaintainer(@Nonnull MaintainerRep maintainer)
-
metrics
public MetricGroupRep metrics(@Nonnull java.util.List<MetricInGroupRep> metrics)
-
addMetricsItem
public MetricGroupRep addMetricsItem(MetricInGroupRep metricsItem)
-
getMetrics
@Nonnull public java.util.List<MetricInGroupRep> getMetrics()
An ordered list of the metrics in this metric group- Returns:
- metrics
-
setMetrics
public void setMetrics(@Nonnull java.util.List<MetricInGroupRep> metrics)
-
version
public MetricGroupRep version(@Nonnull java.lang.Integer version)
-
getVersion
@Nonnull public java.lang.Integer getVersion()
The version of this metric group- Returns:
- version
-
setVersion
public void setVersion(@Nonnull java.lang.Integer version)
-
experiments
public MetricGroupRep experiments(@Nullable java.util.List<DependentExperimentRep> experiments)
-
addExperimentsItem
public MetricGroupRep addExperimentsItem(DependentExperimentRep experimentsItem)
-
getExperiments
@Nullable public java.util.List<DependentExperimentRep> getExperiments()
Get experiments- Returns:
- experiments
-
setExperiments
public void setExperiments(@Nullable java.util.List<DependentExperimentRep> experiments)
-
experimentCount
public MetricGroupRep experimentCount(@Nullable java.lang.Integer experimentCount)
-
getExperimentCount
@Nullable public java.lang.Integer getExperimentCount()
The number of experiments using this metric group- Returns:
- experimentCount
-
setExperimentCount
public void setExperimentCount(@Nullable java.lang.Integer experimentCount)
-
activeExperimentCount
public MetricGroupRep activeExperimentCount(@Nullable java.lang.Integer activeExperimentCount)
-
getActiveExperimentCount
@Nullable public java.lang.Integer getActiveExperimentCount()
The number of active experiments using this metric group- Returns:
- activeExperimentCount
-
setActiveExperimentCount
public void setActiveExperimentCount(@Nullable java.lang.Integer activeExperimentCount)
-
activeGuardedRolloutCount
public MetricGroupRep activeGuardedRolloutCount(@Nullable java.lang.Integer activeGuardedRolloutCount)
-
getActiveGuardedRolloutCount
@Nullable public java.lang.Integer getActiveGuardedRolloutCount()
The number of active guarded rollouts using this metric group- Returns:
- activeGuardedRolloutCount
-
setActiveGuardedRolloutCount
public void setActiveGuardedRolloutCount(@Nullable java.lang.Integer activeGuardedRolloutCount)
-
putAdditionalProperty
public MetricGroupRep 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 MetricGroupRep 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 MetricGroupRep
-
fromJson
public static MetricGroupRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of MetricGroupRep given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MetricGroupRep
- Throws:
java.io.IOException- if the JSON string is invalid with respect to MetricGroupRep
-
toJson
public java.lang.String toJson()
Convert an instance of MetricGroupRep to an JSON string- Returns:
- JSON string
-
-