Package com.launchdarkly.api.model
Class VariationSummary
- java.lang.Object
-
- com.launchdarkly.api.model.VariationSummary
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-11T22:46:03.646077Z[Etc/UTC]") public class VariationSummary extends java.lang.Object
VariationSummary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VariationSummary.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_BUCKET_BY
static java.lang.String
SERIALIZED_NAME_IS_FALLTHROUGH
static java.lang.String
SERIALIZED_NAME_IS_OFF
static java.lang.String
SERIALIZED_NAME_NULL_RULES
static java.lang.String
SERIALIZED_NAME_ROLLOUT
static java.lang.String
SERIALIZED_NAME_RULES
static java.lang.String
SERIALIZED_NAME_TARGETS
-
Constructor Summary
Constructors Constructor Description VariationSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VariationSummary
bucketBy(java.lang.String bucketBy)
boolean
equals(java.lang.Object o)
static VariationSummary
fromJson(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.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.lang.String
getBucketBy()
Get bucketByjava.lang.Boolean
getIsFallthrough()
Get isFallthroughjava.lang.Boolean
getIsOff()
Get isOffjava.lang.Integer
getNullRules()
Get nullRulesjava.lang.Integer
getRollout()
Get rolloutjava.lang.Integer
getRules()
Get rulesjava.lang.Integer
getTargets()
Get targetsint
hashCode()
VariationSummary
isFallthrough(java.lang.Boolean isFallthrough)
VariationSummary
isOff(java.lang.Boolean isOff)
VariationSummary
nullRules(java.lang.Integer nullRules)
VariationSummary
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.VariationSummary
rollout(java.lang.Integer rollout)
VariationSummary
rules(java.lang.Integer rules)
void
setBucketBy(java.lang.String bucketBy)
void
setIsFallthrough(java.lang.Boolean isFallthrough)
void
setIsOff(java.lang.Boolean isOff)
void
setNullRules(java.lang.Integer nullRules)
void
setRollout(java.lang.Integer rollout)
void
setRules(java.lang.Integer rules)
void
setTargets(java.lang.Integer targets)
VariationSummary
targets(java.lang.Integer targets)
java.lang.String
toJson()
Convert an instance of VariationSummary to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(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_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)
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOException
Validates 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
-
-