Package com.launchdarkly.api.model
Class VariationSummary
- java.lang.Object
-
- com.launchdarkly.api.model.VariationSummary
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-16T23:57:26.096741Z[Etc/UTC]") 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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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(java.lang.Integer rules)
-
getRules
@Nonnull public java.lang.Integer getRules()
Get rules- Returns:
- rules
-
setRules
public void setRules(java.lang.Integer rules)
-
nullRules
public VariationSummary nullRules(java.lang.Integer nullRules)
-
getNullRules
@Nonnull public java.lang.Integer getNullRules()
Get nullRules- Returns:
- nullRules
-
setNullRules
public void setNullRules(java.lang.Integer nullRules)
-
targets
public VariationSummary targets(java.lang.Integer targets)
-
getTargets
@Nonnull public java.lang.Integer getTargets()
Get targets- Returns:
- targets
-
setTargets
public void setTargets(java.lang.Integer targets)
-
contextTargets
public VariationSummary contextTargets(java.lang.Integer contextTargets)
-
getContextTargets
@Nonnull public java.lang.Integer getContextTargets()
Get contextTargets- Returns:
- contextTargets
-
setContextTargets
public void setContextTargets(java.lang.Integer contextTargets)
-
isFallthrough
public VariationSummary isFallthrough(java.lang.Boolean isFallthrough)
-
getIsFallthrough
@Nullable public java.lang.Boolean getIsFallthrough()
Get isFallthrough- Returns:
- isFallthrough
-
setIsFallthrough
public void setIsFallthrough(java.lang.Boolean isFallthrough)
-
isOff
public VariationSummary isOff(java.lang.Boolean isOff)
-
getIsOff
@Nullable public java.lang.Boolean getIsOff()
Get isOff- Returns:
- isOff
-
setIsOff
public void setIsOff(java.lang.Boolean isOff)
-
rollout
public VariationSummary rollout(java.lang.Integer rollout)
-
getRollout
@Nullable public java.lang.Integer getRollout()
Get rollout- Returns:
- rollout
-
setRollout
public void setRollout(java.lang.Integer rollout)
-
bucketBy
public VariationSummary bucketBy(java.lang.String bucketBy)
-
getBucketBy
@Nullable public java.lang.String getBucketBy()
Get bucketBy- Returns:
- bucketBy
-
setBucketBy
public void setBucketBy(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.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
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
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object 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
-
-