Package com.launchdarkly.api.model
Class TimestampRep
- java.lang.Object
-
- com.launchdarkly.api.model.TimestampRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class TimestampRep extends java.lang.ObjectTimestampRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimestampRep.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_MILLISECONDSstatic java.lang.StringSERIALIZED_NAME_RFC3339static java.lang.StringSERIALIZED_NAME_SECONDSstatic java.lang.StringSERIALIZED_NAME_SIMPLE
-
Constructor Summary
Constructors Constructor Description TimestampRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static TimestampRepfromJson(java.lang.String jsonString)Create an instance of TimestampRep 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.LonggetMilliseconds()Get millisecondsjava.lang.StringgetRfc3339()Get rfc3339java.lang.LonggetSeconds()Get secondsjava.lang.StringgetSimple()Get simpleinthashCode()TimestampRepmilliseconds(java.lang.Long milliseconds)TimestampRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.TimestampReprfc3339(java.lang.String rfc3339)TimestampRepseconds(java.lang.Long seconds)voidsetMilliseconds(java.lang.Long milliseconds)voidsetRfc3339(java.lang.String rfc3339)voidsetSeconds(java.lang.Long seconds)voidsetSimple(java.lang.String simple)TimestampRepsimple(java.lang.String simple)java.lang.StringtoJson()Convert an instance of TimestampRep 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_MILLISECONDS
public static final java.lang.String SERIALIZED_NAME_MILLISECONDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECONDS
public static final java.lang.String SERIALIZED_NAME_SECONDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RFC3339
public static final java.lang.String SERIALIZED_NAME_RFC3339
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIMPLE
public static final java.lang.String SERIALIZED_NAME_SIMPLE
- 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
-
milliseconds
public TimestampRep milliseconds(@Nullable java.lang.Long milliseconds)
-
getMilliseconds
@Nullable public java.lang.Long getMilliseconds()
Get milliseconds- Returns:
- milliseconds
-
setMilliseconds
public void setMilliseconds(@Nullable java.lang.Long milliseconds)
-
seconds
public TimestampRep seconds(@Nullable java.lang.Long seconds)
-
getSeconds
@Nullable public java.lang.Long getSeconds()
Get seconds- Returns:
- seconds
-
setSeconds
public void setSeconds(@Nullable java.lang.Long seconds)
-
rfc3339
public TimestampRep rfc3339(@Nullable java.lang.String rfc3339)
-
getRfc3339
@Nullable public java.lang.String getRfc3339()
Get rfc3339- Returns:
- rfc3339
-
setRfc3339
public void setRfc3339(@Nullable java.lang.String rfc3339)
-
simple
public TimestampRep simple(@Nullable java.lang.String simple)
-
getSimple
@Nullable public java.lang.String getSimple()
Get simple- Returns:
- simple
-
setSimple
public void setSimple(@Nullable java.lang.String simple)
-
putAdditionalProperty
public TimestampRep 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 TimestampRep 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 TimestampRep
-
fromJson
public static TimestampRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of TimestampRep given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TimestampRep
- Throws:
java.io.IOException- if the JSON string is invalid with respect to TimestampRep
-
toJson
public java.lang.String toJson()
Convert an instance of TimestampRep to an JSON string- Returns:
- JSON string
-
-