Package org.openapitools.client.model
Class ApiKeyDTO
- java.lang.Object
-
- org.openapitools.client.model.ApiKeyDTO
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class ApiKeyDTO extends Object
ApiKeyDTO
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiKeyDTO.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_ROLEstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_USER_ID
-
Constructor Summary
Constructors Constructor Description ApiKeyDTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiKeyDTOcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)static ApiKeyDTOfromJson(String jsonString)Create an instance of ApiKeyDTO given an JSON string@NotNull @Valid OffsetDateTimegetCreatedAt()Get createdAt@NotNull @Valid UUIDgetId()Get id@NotNull StringgetName()Get name@NotNull IntegergetRole()Get role@NotNull @Valid OffsetDateTimegetUpdatedAt()Get updatedAt@NotNull @Valid UUIDgetUserId()Get userIdinthashCode()ApiKeyDTOid(UUID id)ApiKeyDTOname(String name)ApiKeyDTOrole(Integer role)voidsetCreatedAt(OffsetDateTime createdAt)voidsetId(UUID id)voidsetName(String name)voidsetRole(Integer role)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetUserId(UUID userId)StringtoJson()Convert an instance of ApiKeyDTO to an JSON stringStringtoString()ApiKeyDTOupdatedAt(OffsetDateTime updatedAt)ApiKeyDTOuserId(UUID userId)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLE
public static final String SERIALIZED_NAME_ROLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_USER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
createdAt
public ApiKeyDTO createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
setId
public void setId(UUID id)
-
setName
public void setName(String name)
-
setRole
public void setRole(Integer role)
-
updatedAt
public ApiKeyDTO updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
getUserId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getUserId()
Get userId- Returns:
- userId
-
setUserId
public void setUserId(UUID userId)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ApiKeyDTO
-
fromJson
public static ApiKeyDTO fromJson(String jsonString) throws IOException
Create an instance of ApiKeyDTO given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApiKeyDTO
- Throws:
IOException- if the JSON string is invalid with respect to ApiKeyDTO
-
toJson
public String toJson()
Convert an instance of ApiKeyDTO to an JSON string- Returns:
- JSON string
-
-