Package com.launchdarkly.api.model
Class SegmentMetadata
- java.lang.Object
-
- com.launchdarkly.api.model.SegmentMetadata
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-16T23:57:26.096741Z[Etc/UTC]") public class SegmentMetadata extends java.lang.ObjectSegmentMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSegmentMetadata.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_DELETEDstatic java.lang.StringSERIALIZED_NAME_ENV_IDstatic java.lang.StringSERIALIZED_NAME_EXCLUDED_COUNTstatic java.lang.StringSERIALIZED_NAME_INCLUDED_COUNTstatic java.lang.StringSERIALIZED_NAME_SEGMENT_IDstatic java.lang.StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description SegmentMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentMetadatadeleted(java.lang.Boolean deleted)SegmentMetadataenvId(java.lang.String envId)booleanequals(java.lang.Object o)SegmentMetadataexcludedCount(java.lang.Integer excludedCount)static SegmentMetadatafromJson(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.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.BooleangetDeleted()Get deletedjava.lang.StringgetEnvId()Get envIdjava.lang.IntegergetExcludedCount()Get excludedCountjava.lang.IntegergetIncludedCount()Get includedCountjava.lang.StringgetSegmentId()Get segmentIdjava.lang.IntegergetVersion()Get versioninthashCode()SegmentMetadataincludedCount(java.lang.Integer includedCount)SegmentMetadataputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.SegmentMetadatasegmentId(java.lang.String segmentId)voidsetDeleted(java.lang.Boolean deleted)voidsetEnvId(java.lang.String envId)voidsetExcludedCount(java.lang.Integer excludedCount)voidsetIncludedCount(java.lang.Integer includedCount)voidsetSegmentId(java.lang.String segmentId)voidsetVersion(java.lang.Integer version)java.lang.StringtoJson()Convert an instance of SegmentMetadata to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundSegmentMetadataversion(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:
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 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
-
-