Class CollectionCreateRequest

java.lang.Object
ai.reveng.model.CollectionCreateRequest

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CollectionCreateRequest extends Object
CollectionCreateRequest
  • Field Details

  • Constructor Details

    • CollectionCreateRequest

      public CollectionCreateRequest()
  • Method Details

    • collectionName

      public CollectionCreateRequest collectionName(@Nonnull String collectionName)
    • getCollectionName

      @Nonnull public String getCollectionName()
      Get collectionName
      Returns:
      collectionName
    • setCollectionName

      public void setCollectionName(@Nonnull String collectionName)
    • description

      public CollectionCreateRequest description(@Nonnull String description)
    • getDescription

      @Nonnull public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nonnull String description)
    • collectionScope

      public CollectionCreateRequest collectionScope(@Nullable CollectionScope collectionScope)
    • getCollectionScope

      @Nullable public CollectionScope getCollectionScope()
      Get collectionScope
      Returns:
      collectionScope
    • setCollectionScope

      public void setCollectionScope(@Nullable CollectionScope collectionScope)
    • tags

      public CollectionCreateRequest tags(@Nullable List<String> tags)
    • addTagsItem

      public CollectionCreateRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Get tags
      Returns:
      tags
    • setTags

      public void setTags(@Nullable List<String> tags)
    • binaries

      public CollectionCreateRequest binaries(@Nullable List<Integer> binaries)
    • addBinariesItem

      public CollectionCreateRequest addBinariesItem(Integer binariesItem)
    • getBinaries

      @Nullable public List<Integer> getBinaries()
      Get binaries
      Returns:
      binaries
    • setBinaries

      public void setBinaries(@Nullable List<Integer> binaries)
    • modelId

      public CollectionCreateRequest modelId(@Nonnull Integer modelId)
    • getModelId

      @Nonnull public Integer getModelId()
      Get modelId
      Returns:
      modelId
    • setModelId

      public void setModelId(@Nonnull Integer modelId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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 CollectionCreateRequest
    • fromJson

      public static CollectionCreateRequest fromJson(String jsonString) throws IOException
      Create an instance of CollectionCreateRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CollectionCreateRequest
      Throws:
      IOException - if the JSON string is invalid with respect to CollectionCreateRequest
    • toJson

      public String toJson()
      Convert an instance of CollectionCreateRequest to an JSON string
      Returns:
      JSON string