@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class SmsDto extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmsDto.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BODY |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_FROM_NUMBER |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_PHONE_NUMBER |
static String |
SERIALIZED_NAME_READ |
static String |
SERIALIZED_NAME_UPDATED_AT |
static String |
SERIALIZED_NAME_USER_ID |
Constructor and Description |
---|
SmsDto() |
Modifier and Type | Method and Description |
---|---|
SmsDto |
body(String body) |
SmsDto |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o) |
static SmsDto |
fromJson(String jsonString)
Create an instance of SmsDto given an JSON string
|
SmsDto |
fromNumber(String fromNumber) |
String |
getBody()
Get body
|
OffsetDateTime |
getCreatedAt()
Get createdAt
|
String |
getFromNumber()
Get fromNumber
|
UUID |
getId()
Get id
|
UUID |
getPhoneNumber()
Get phoneNumber
|
Boolean |
getRead()
Get read
|
OffsetDateTime |
getUpdatedAt()
Get updatedAt
|
UUID |
getUserId()
Get userId
|
int |
hashCode() |
SmsDto |
id(UUID id) |
SmsDto |
phoneNumber(UUID phoneNumber) |
SmsDto |
read(Boolean read) |
void |
setBody(String body) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setFromNumber(String fromNumber) |
void |
setId(UUID id) |
void |
setPhoneNumber(UUID phoneNumber) |
void |
setRead(Boolean read) |
void |
setUpdatedAt(OffsetDateTime updatedAt) |
void |
setUserId(UUID userId) |
String |
toJson()
Convert an instance of SmsDto to an JSON string
|
String |
toString() |
SmsDto |
updatedAt(OffsetDateTime updatedAt) |
SmsDto |
userId(UUID userId) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_FROM_NUMBER
public static final String SERIALIZED_NAME_BODY
public static final String SERIALIZED_NAME_READ
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
public void setId(UUID id)
public void setUserId(UUID userId)
public void setPhoneNumber(UUID phoneNumber)
public void setFromNumber(String fromNumber)
public void setBody(String body)
public void setRead(Boolean read)
public SmsDto createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public SmsDto updatedAt(OffsetDateTime updatedAt)
@Nonnull public OffsetDateTime getUpdatedAt()
public void setUpdatedAt(OffsetDateTime updatedAt)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to SmsDtopublic static SmsDto fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to SmsDtopublic String toJson()
Copyright © 2023. All rights reserved.