Package com.launchdarkly.api.model
Class VariationSummary
- java.lang.Object
-
- com.launchdarkly.api.model.VariationSummary
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class VariationSummary extends java.lang.ObjectVariationSummary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariationSummary.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_BUCKET_BYstatic java.lang.StringSERIALIZED_NAME_CONTEXT_TARGETSstatic java.lang.StringSERIALIZED_NAME_IS_FALLTHROUGHstatic java.lang.StringSERIALIZED_NAME_IS_OFFstatic java.lang.StringSERIALIZED_NAME_NULL_RULESstatic java.lang.StringSERIALIZED_NAME_ROLLOUTstatic java.lang.StringSERIALIZED_NAME_RULESstatic java.lang.StringSERIALIZED_NAME_TARGETS
-
Constructor Summary
Constructors Constructor Description VariationSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VariationSummarybucketBy(java.lang.String bucketBy)VariationSummarycontextTargets(java.lang.Integer contextTargets)booleanequals(java.lang.Object o)static VariationSummaryfromJson(java.lang.String jsonString)Create an instance of VariationSummary 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.StringgetBucketBy()Get bucketByjava.lang.IntegergetContextTargets()Get contextTargetsjava.lang.BooleangetIsFallthrough()Get isFallthroughjava.lang.BooleangetIsOff()Get isOffjava.lang.IntegergetNullRules()Get nullRulesjava.lang.IntegergetRollout()Get rolloutjava.lang.IntegergetRules()Get rulesjava.lang.IntegergetTargets()Get targetsinthashCode()VariationSummaryisFallthrough(java.lang.Boolean isFallthrough)VariationSummaryisOff(java.lang.Boolean isOff)VariationSummarynullRules(java.lang.Integer nullRules)VariationSummaryputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.VariationSummaryrollout(java.lang.Integer rollout)VariationSummaryrules(java.lang.Integer rules)voidsetBucketBy(java.lang.String bucketBy)voidsetContextTargets(java.lang.Integer contextTargets)voidsetIsFallthrough(java.lang.Boolean isFallthrough)voidsetIsOff(java.lang.Boolean isOff)voidsetNullRules(java.lang.Integer nullRules)voidsetRollout(java.lang.Integer rollout)voidsetRules(java.lang.Integer rules)voidsetTargets(java.lang.Integer targets)VariationSummarytargets(java.lang.Integer targets)java.lang.StringtoJson()Convert an instance of VariationSummary to an JSON stringjava.lang.StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_RULES
public static final java.lang.String SERIALIZED_NAME_RULES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NULL_RULES
public static final java.lang.String SERIALIZED_NAME_NULL_RULES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TARGETS
public static final java.lang.String SERIALIZED_NAME_TARGETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTEXT_TARGETS
public static final java.lang.String SERIALIZED_NAME_CONTEXT_TARGETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_FALLTHROUGH
public static final java.lang.String SERIALIZED_NAME_IS_FALLTHROUGH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_OFF
public static final java.lang.String SERIALIZED_NAME_IS_OFF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLLOUT
public static final java.lang.String SERIALIZED_NAME_ROLLOUT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUCKET_BY
public static final java.lang.String SERIALIZED_NAME_BUCKET_BY
- 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
-
rules
public VariationSummary rules(@Nonnull java.lang.Integer rules)
-
getRules
@Nonnull public java.lang.Integer getRules()
Get rules- Returns:
- rules
-
setRules
public void setRules(@Nonnull java.lang.Integer rules)
-
nullRules
public VariationSummary nullRules(@Nonnull java.lang.Integer nullRules)
-
getNullRules
@Nonnull public java.lang.Integer getNullRules()
Get nullRules- Returns:
- nullRules
-
setNullRules
public void setNullRules(@Nonnull java.lang.Integer nullRules)
-
targets
public VariationSummary targets(@Nonnull java.lang.Integer targets)
-
getTargets
@Nonnull public java.lang.Integer getTargets()
Get targets- Returns:
- targets
-
setTargets
public void setTargets(@Nonnull java.lang.Integer targets)
-
contextTargets
public VariationSummary contextTargets(@Nonnull java.lang.Integer contextTargets)
-
getContextTargets
@Nonnull public java.lang.Integer getContextTargets()
Get contextTargets- Returns:
- contextTargets
-
setContextTargets
public void setContextTargets(@Nonnull java.lang.Integer contextTargets)
-
isFallthrough
public VariationSummary isFallthrough(@Nullable java.lang.Boolean isFallthrough)
-
getIsFallthrough
@Nullable public java.lang.Boolean getIsFallthrough()
Get isFallthrough- Returns:
- isFallthrough
-
setIsFallthrough
public void setIsFallthrough(@Nullable java.lang.Boolean isFallthrough)
-
isOff
public VariationSummary isOff(@Nullable java.lang.Boolean isOff)
-
getIsOff
@Nullable public java.lang.Boolean getIsOff()
Get isOff- Returns:
- isOff
-
setIsOff
public void setIsOff(@Nullable java.lang.Boolean isOff)
-
rollout
public VariationSummary rollout(@Nullable java.lang.Integer rollout)
-
getRollout
@Nullable public java.lang.Integer getRollout()
Get rollout- Returns:
- rollout
-
setRollout
public void setRollout(@Nullable java.lang.Integer rollout)
-
bucketBy
public VariationSummary bucketBy(@Nullable java.lang.String bucketBy)
-
getBucketBy
@Nullable public java.lang.String getBucketBy()
Get bucketBy- Returns:
- bucketBy
-
setBucketBy
public void setBucketBy(@Nullable java.lang.String bucketBy)
-
putAdditionalProperty
public VariationSummary 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 VariationSummary 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 VariationSummary
-
fromJson
public static VariationSummary fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of VariationSummary given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VariationSummary
- Throws:
java.io.IOException- if the JSON string is invalid with respect to VariationSummary
-
toJson
public java.lang.String toJson()
Convert an instance of VariationSummary to an JSON string- Returns:
- JSON string
-
-