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