Package com.launchdarkly.api.model
Class SegmentMetadata
- java.lang.Object
-
- com.launchdarkly.api.model.SegmentMetadata
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-12T00:19:53.656524Z[Etc/UTC]") public class SegmentMetadata extends java.lang.Object
SegmentMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentMetadata.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_DELETED
static java.lang.String
SERIALIZED_NAME_ENV_ID
static java.lang.String
SERIALIZED_NAME_EXCLUDED_COUNT
static java.lang.String
SERIALIZED_NAME_INCLUDED_COUNT
static java.lang.String
SERIALIZED_NAME_SEGMENT_ID
static java.lang.String
SERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description SegmentMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentMetadata
deleted(java.lang.Boolean deleted)
SegmentMetadata
envId(java.lang.String envId)
boolean
equals(java.lang.Object o)
SegmentMetadata
excludedCount(java.lang.Integer excludedCount)
static SegmentMetadata
fromJson(java.lang.String jsonString)
Create an instance of SegmentMetadata 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.Boolean
getDeleted()
Get deletedjava.lang.String
getEnvId()
Get envIdjava.lang.Integer
getExcludedCount()
Get excludedCountjava.lang.Integer
getIncludedCount()
Get includedCountjava.lang.String
getSegmentId()
Get segmentIdjava.lang.Integer
getVersion()
Get versionint
hashCode()
SegmentMetadata
includedCount(java.lang.Integer includedCount)
SegmentMetadata
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.SegmentMetadata
segmentId(java.lang.String segmentId)
void
setDeleted(java.lang.Boolean deleted)
void
setEnvId(java.lang.String envId)
void
setExcludedCount(java.lang.Integer excludedCount)
void
setIncludedCount(java.lang.Integer includedCount)
void
setSegmentId(java.lang.String segmentId)
void
setVersion(java.lang.Integer version)
java.lang.String
toJson()
Convert an instance of SegmentMetadata 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 foundSegmentMetadata
version(java.lang.Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_ENV_ID
public static final java.lang.String SERIALIZED_NAME_ENV_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SEGMENT_ID
public static final java.lang.String SERIALIZED_NAME_SEGMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final java.lang.String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCLUDED_COUNT
public static final java.lang.String SERIALIZED_NAME_INCLUDED_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXCLUDED_COUNT
public static final java.lang.String SERIALIZED_NAME_EXCLUDED_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELETED
public static final java.lang.String SERIALIZED_NAME_DELETED
- 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
-
envId
public SegmentMetadata envId(java.lang.String envId)
-
getEnvId
@Nullable public java.lang.String getEnvId()
Get envId- Returns:
- envId
-
setEnvId
public void setEnvId(java.lang.String envId)
-
segmentId
public SegmentMetadata segmentId(java.lang.String segmentId)
-
getSegmentId
@Nullable public java.lang.String getSegmentId()
Get segmentId- Returns:
- segmentId
-
setSegmentId
public void setSegmentId(java.lang.String segmentId)
-
version
public SegmentMetadata version(java.lang.Integer version)
-
getVersion
@Nullable public java.lang.Integer getVersion()
Get version- Returns:
- version
-
setVersion
public void setVersion(java.lang.Integer version)
-
includedCount
public SegmentMetadata includedCount(java.lang.Integer includedCount)
-
getIncludedCount
@Nullable public java.lang.Integer getIncludedCount()
Get includedCount- Returns:
- includedCount
-
setIncludedCount
public void setIncludedCount(java.lang.Integer includedCount)
-
excludedCount
public SegmentMetadata excludedCount(java.lang.Integer excludedCount)
-
getExcludedCount
@Nullable public java.lang.Integer getExcludedCount()
Get excludedCount- Returns:
- excludedCount
-
setExcludedCount
public void setExcludedCount(java.lang.Integer excludedCount)
-
deleted
public SegmentMetadata deleted(java.lang.Boolean deleted)
-
getDeleted
@Nullable public java.lang.Boolean getDeleted()
Get deleted- Returns:
- deleted
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
-
putAdditionalProperty
public SegmentMetadata 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 SegmentMetadata
-
fromJson
public static SegmentMetadata fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of SegmentMetadata given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of SegmentMetadata
- Throws:
java.io.IOException
- if the JSON string is invalid with respect to SegmentMetadata
-
toJson
public java.lang.String toJson()
Convert an instance of SegmentMetadata to an JSON string- Returns:
- JSON string
-
-