Package com.launchdarkly.api.model
Class RandomizationSettingsRep
- java.lang.Object
-
- com.launchdarkly.api.model.RandomizationSettingsRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-03T23:27:37.555894Z[Etc/UTC]") public class RandomizationSettingsRep extends java.lang.Object
RandomizationSettingsRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomizationSettingsRep.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_CREATION_DATE
static java.lang.String
SERIALIZED_NAME_LINKS
static java.lang.String
SERIALIZED_NAME_PROJECT_ID
static java.lang.String
SERIALIZED_NAME_PROJECT_KEY
static java.lang.String
SERIALIZED_NAME_RANDOMIZATION_UNITS
-
Constructor Summary
Constructors Constructor Description RandomizationSettingsRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomizationSettingsRep
addRandomizationUnitsItem(RandomizationUnitRep randomizationUnitsItem)
RandomizationSettingsRep
creationDate(java.lang.Long creationDate)
boolean
equals(java.lang.Object o)
static RandomizationSettingsRep
fromJson(java.lang.String jsonString)
Create an instance of RandomizationSettingsRep 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.Long
getCreationDate()
Get creationDatejava.util.Map<java.lang.String,Link>
getLinks()
The location and content type of related resourcesjava.lang.String
getProjectId()
The project IDjava.lang.String
getProjectKey()
The project keyjava.util.List<RandomizationUnitRep>
getRandomizationUnits()
An array of the randomization units in this projectint
hashCode()
RandomizationSettingsRep
links(java.util.Map<java.lang.String,Link> links)
RandomizationSettingsRep
projectId(java.lang.String projectId)
RandomizationSettingsRep
projectKey(java.lang.String projectKey)
RandomizationSettingsRep
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.RandomizationSettingsRep
putLinksItem(java.lang.String key, Link linksItem)
RandomizationSettingsRep
randomizationUnits(java.util.List<RandomizationUnitRep> randomizationUnits)
void
setCreationDate(java.lang.Long creationDate)
void
setLinks(java.util.Map<java.lang.String,Link> links)
void
setProjectId(java.lang.String projectId)
void
setProjectKey(java.lang.String projectKey)
void
setRandomizationUnits(java.util.List<RandomizationUnitRep> randomizationUnits)
java.lang.String
toJson()
Convert an instance of RandomizationSettingsRep 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_PROJECT_ID
public static final java.lang.String SERIALIZED_NAME_PROJECT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROJECT_KEY
public static final java.lang.String SERIALIZED_NAME_PROJECT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RANDOMIZATION_UNITS
public static final java.lang.String SERIALIZED_NAME_RANDOMIZATION_UNITS
- 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_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- 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
-
projectId
public RandomizationSettingsRep projectId(java.lang.String projectId)
-
getProjectId
@Nullable public java.lang.String getProjectId()
The project ID- Returns:
- projectId
-
setProjectId
public void setProjectId(java.lang.String projectId)
-
projectKey
public RandomizationSettingsRep projectKey(java.lang.String projectKey)
-
getProjectKey
@Nullable public java.lang.String getProjectKey()
The project key- Returns:
- projectKey
-
setProjectKey
public void setProjectKey(java.lang.String projectKey)
-
randomizationUnits
public RandomizationSettingsRep randomizationUnits(java.util.List<RandomizationUnitRep> randomizationUnits)
-
addRandomizationUnitsItem
public RandomizationSettingsRep addRandomizationUnitsItem(RandomizationUnitRep randomizationUnitsItem)
-
getRandomizationUnits
@Nullable public java.util.List<RandomizationUnitRep> getRandomizationUnits()
An array of the randomization units in this project- Returns:
- randomizationUnits
-
setRandomizationUnits
public void setRandomizationUnits(java.util.List<RandomizationUnitRep> randomizationUnits)
-
creationDate
public RandomizationSettingsRep creationDate(java.lang.Long creationDate)
-
getCreationDate
@Nullable public java.lang.Long getCreationDate()
Get creationDate- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(java.lang.Long creationDate)
-
links
public RandomizationSettingsRep links(java.util.Map<java.lang.String,Link> links)
-
putLinksItem
public RandomizationSettingsRep putLinksItem(java.lang.String key, Link linksItem)
-
getLinks
@Nullable public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(java.util.Map<java.lang.String,Link> links)
-
putAdditionalProperty
public RandomizationSettingsRep 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 RandomizationSettingsRep
-
fromJson
public static RandomizationSettingsRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of RandomizationSettingsRep given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of RandomizationSettingsRep
- Throws:
java.io.IOException
- if the JSON string is invalid with respect to RandomizationSettingsRep
-
toJson
public java.lang.String toJson()
Convert an instance of RandomizationSettingsRep to an JSON string- Returns:
- JSON string
-
-