Package com.launchdarkly.api.model
Class RandomizationUnitInput
- java.lang.Object
-
- com.launchdarkly.api.model.RandomizationUnitInput
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class RandomizationUnitInput extends java.lang.ObjectRandomizationUnitInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRandomizationUnitInput.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_DEFAULTstatic java.lang.StringSERIALIZED_NAME_RANDOMIZATION_UNITstatic java.lang.StringSERIALIZED_NAME_STANDARD_RANDOMIZATION_UNIT
-
Constructor Summary
Constructors Constructor Description RandomizationUnitInput()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomizationUnitInput_default(java.lang.Boolean _default)booleanequals(java.lang.Object o)static RandomizationUnitInputfromJson(java.lang.String jsonString)Create an instance of RandomizationUnitInput 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.BooleangetDefault()If true, any experiment iterations created within this project will default to using this randomization unit.java.lang.StringgetRandomizationUnit()The unit of randomization.java.lang.StringgetStandardRandomizationUnit()(deprecated) This field is deprecated and will be removed.inthashCode()RandomizationUnitInputputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.RandomizationUnitInputrandomizationUnit(java.lang.String randomizationUnit)voidsetDefault(java.lang.Boolean _default)voidsetRandomizationUnit(java.lang.String randomizationUnit)voidsetStandardRandomizationUnit(java.lang.String standardRandomizationUnit)RandomizationUnitInputstandardRandomizationUnit(java.lang.String standardRandomizationUnit)java.lang.StringtoJson()Convert an instance of RandomizationUnitInput 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_RANDOMIZATION_UNIT
public static final java.lang.String SERIALIZED_NAME_RANDOMIZATION_UNIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT
public static final java.lang.String SERIALIZED_NAME_DEFAULT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STANDARD_RANDOMIZATION_UNIT
public static final java.lang.String SERIALIZED_NAME_STANDARD_RANDOMIZATION_UNIT
- 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
-
randomizationUnit
public RandomizationUnitInput randomizationUnit(@Nonnull java.lang.String randomizationUnit)
-
getRandomizationUnit
@Nonnull public java.lang.String getRandomizationUnit()
The unit of randomization. Must match the key of an existing context kind in this project.- Returns:
- randomizationUnit
-
setRandomizationUnit
public void setRandomizationUnit(@Nonnull java.lang.String randomizationUnit)
-
_default
public RandomizationUnitInput _default(@Nullable java.lang.Boolean _default)
-
getDefault
@Nullable public java.lang.Boolean getDefault()
If true, any experiment iterations created within this project will default to using this randomization unit. A project can only have one default randomization unit.- Returns:
- _default
-
setDefault
public void setDefault(@Nullable java.lang.Boolean _default)
-
standardRandomizationUnit
public RandomizationUnitInput standardRandomizationUnit(@Nullable java.lang.String standardRandomizationUnit)
-
getStandardRandomizationUnit
@Nullable public java.lang.String getStandardRandomizationUnit()
(deprecated) This field is deprecated and will be removed. Use randomizationUnit instead.- Returns:
- standardRandomizationUnit
-
setStandardRandomizationUnit
public void setStandardRandomizationUnit(@Nullable java.lang.String standardRandomizationUnit)
-
putAdditionalProperty
public RandomizationUnitInput 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 RandomizationUnitInput 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 RandomizationUnitInput
-
fromJson
public static RandomizationUnitInput fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of RandomizationUnitInput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RandomizationUnitInput
- Throws:
java.io.IOException- if the JSON string is invalid with respect to RandomizationUnitInput
-
toJson
public java.lang.String toJson()
Convert an instance of RandomizationUnitInput to an JSON string- Returns:
- JSON string
-
-