Class 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
    • Constructor Detail

      • ApiKeyDTO

        public ApiKeyDTO()
    • Method Detail

      • getCreatedAt

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid OffsetDateTime getCreatedAt()
        Get createdAt
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getId()
        Get id
        Returns:
        id
      • setId

        public void setId​(UUID id)
      • getName

        @Nonnull
        @NotNull
        public @NotNull String getName()
        Get name
        Returns:
        name
      • setName

        public void setName​(String name)
      • getRole

        @Nonnull
        @NotNull
        public @NotNull Integer getRole()
        Get role
        Returns:
        role
      • setRole

        public void setRole​(Integer role)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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