@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class SmsProjection extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmsProjection.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_USER_ID |
Constructor and Description |
---|
SmsProjection() |
Modifier and Type | Method and Description |
---|---|
SmsProjection |
body(String body) |
SmsProjection |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o) |
static SmsProjection |
fromJson(String jsonString)
Create an instance of SmsProjection given an JSON string
|
SmsProjection |
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
|
UUID |
getUserId()
Get userId
|
int |
hashCode() |
SmsProjection |
id(UUID id) |
SmsProjection |
phoneNumber(UUID phoneNumber) |
SmsProjection |
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 |
setUserId(UUID userId) |
String |
toJson()
Convert an instance of SmsProjection to an JSON string
|
String |
toString() |
SmsProjection |
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_BODY
public static final String SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_FROM_NUMBER
public static final String SERIALIZED_NAME_READ
public SmsProjection id(UUID id)
public void setId(UUID id)
public SmsProjection body(String body)
public void setBody(String body)
public SmsProjection userId(UUID userId)
public void setUserId(UUID userId)
public SmsProjection createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public SmsProjection phoneNumber(UUID phoneNumber)
public void setPhoneNumber(UUID phoneNumber)
public SmsProjection fromNumber(String fromNumber)
public void setFromNumber(String fromNumber)
public SmsProjection read(Boolean read)
public void setRead(Boolean read)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to SmsProjectionpublic static SmsProjection fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to SmsProjectionpublic String toJson()
Copyright © 2023. All rights reserved.