Package com.launchdarkly.api.model
Class TimestampRep
- java.lang.Object
-
- com.launchdarkly.api.model.TimestampRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-11T22:46:03.646077Z[Etc/UTC]") public class TimestampRep extends java.lang.Object
TimestampRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimestampRep.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_MILLISECONDS
static java.lang.String
SERIALIZED_NAME_RFC3339
static java.lang.String
SERIALIZED_NAME_SECONDS
static java.lang.String
SERIALIZED_NAME_SIMPLE
-
Constructor Summary
Constructors Constructor Description TimestampRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static TimestampRep
fromJson(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.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.lang.Long
getMilliseconds()
Get millisecondsjava.lang.String
getRfc3339()
Get rfc3339java.lang.Long
getSeconds()
Get secondsjava.lang.String
getSimple()
Get simpleint
hashCode()
TimestampRep
milliseconds(java.lang.Long milliseconds)
TimestampRep
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.TimestampRep
rfc3339(java.lang.String rfc3339)
TimestampRep
seconds(java.lang.Long seconds)
void
setMilliseconds(java.lang.Long milliseconds)
void
setRfc3339(java.lang.String rfc3339)
void
setSeconds(java.lang.Long seconds)
void
setSimple(java.lang.String simple)
TimestampRep
simple(java.lang.String simple)
java.lang.String
toJson()
Convert an instance of TimestampRep 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_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:
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 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
-
-