@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class AttachmentProjection extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AttachmentProjection.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ATTACHMENT_ID |
static String |
SERIALIZED_NAME_CONTENT_LENGTH |
static String |
SERIALIZED_NAME_CONTENT_TYPE |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_UPDATED_AT |
static String |
SERIALIZED_NAME_USER_ID |
Constructor and Description |
---|
AttachmentProjection() |
Modifier and Type | Method and Description |
---|---|
AttachmentProjection |
attachmentId(String attachmentId) |
AttachmentProjection |
contentLength(Long contentLength) |
AttachmentProjection |
contentType(String contentType) |
AttachmentProjection |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o) |
static AttachmentProjection |
fromJson(String jsonString)
Create an instance of AttachmentProjection given an JSON string
|
String |
getAttachmentId()
Attachment ID
|
Long |
getContentLength()
Content length of attachment in bytes
|
String |
getContentType()
Content type of attachment.
|
OffsetDateTime |
getCreatedAt()
Get createdAt
|
String |
getName()
Get name
|
OffsetDateTime |
getUpdatedAt()
Get updatedAt
|
UUID |
getUserId()
Get userId
|
int |
hashCode() |
AttachmentProjection |
name(String name) |
void |
setAttachmentId(String attachmentId) |
void |
setContentLength(Long contentLength) |
void |
setContentType(String contentType) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setName(String name) |
void |
setUpdatedAt(OffsetDateTime updatedAt) |
void |
setUserId(UUID userId) |
String |
toJson()
Convert an instance of AttachmentProjection to an JSON string
|
String |
toString() |
AttachmentProjection |
updatedAt(OffsetDateTime updatedAt) |
AttachmentProjection |
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_NAME
public static final String SERIALIZED_NAME_CONTENT_LENGTH
public static final String SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_ATTACHMENT_ID
public static final String SERIALIZED_NAME_CONTENT_TYPE
public AttachmentProjection name(String name)
public void setName(String name)
public AttachmentProjection contentLength(Long contentLength)
@Nullable public Long getContentLength()
public void setContentLength(Long contentLength)
public AttachmentProjection userId(UUID userId)
public void setUserId(UUID userId)
public AttachmentProjection createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public AttachmentProjection updatedAt(OffsetDateTime updatedAt)
@Nonnull public OffsetDateTime getUpdatedAt()
public void setUpdatedAt(OffsetDateTime updatedAt)
public AttachmentProjection attachmentId(String attachmentId)
public void setAttachmentId(String attachmentId)
public AttachmentProjection contentType(String contentType)
@Nullable public String getContentType()
public void setContentType(String contentType)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to AttachmentProjectionpublic static AttachmentProjection fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to AttachmentProjectionpublic String toJson()
Copyright © 2023. All rights reserved.