Package com.launchdarkly.api.model
Class TimestampRep
- java.lang.Object
-
- com.launchdarkly.api.model.TimestampRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-19T22:24:20.163470Z[Etc/UTC]") 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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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(java.lang.Long milliseconds)
-
getMilliseconds
@Nullable public java.lang.Long getMilliseconds()
Get milliseconds- Returns:
- milliseconds
-
setMilliseconds
public void setMilliseconds(java.lang.Long milliseconds)
-
seconds
public TimestampRep seconds(java.lang.Long seconds)
-
getSeconds
@Nullable public java.lang.Long getSeconds()
Get seconds- Returns:
- seconds
-
setSeconds
public void setSeconds(java.lang.Long seconds)
-
rfc3339
public TimestampRep rfc3339(java.lang.String rfc3339)
-
getRfc3339
@Nullable public java.lang.String getRfc3339()
Get rfc3339- Returns:
- rfc3339
-
setRfc3339
public void setRfc3339(java.lang.String rfc3339)
-
simple
public TimestampRep simple(java.lang.String simple)
-
getSimple
@Nullable public java.lang.String getSimple()
Get simple- Returns:
- simple
-
setSimple
public void setSimple(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.
-
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 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
-
-