Class CreateCollectionInputBody

java.lang.Object
ai.reveng.model.CreateCollectionInputBody

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

  • Constructor Details

    • CreateCollectionInputBody

      public CreateCollectionInputBody()
  • Method Details

    • binaries

      public CreateCollectionInputBody binaries(@Nullable List<Long> binaries)
    • addBinariesItem

      public CreateCollectionInputBody addBinariesItem(Long binariesItem)
    • getBinaries

      @Nullable public List<Long> getBinaries()
      Optional binary IDs to link to the collection.
      Returns:
      binaries
    • setBinaries

      public void setBinaries(@Nullable List<Long> binaries)
    • collectionName

      public CreateCollectionInputBody collectionName(@Nonnull String collectionName)
    • getCollectionName

      @Nonnull public String getCollectionName()
      Collection name.
      Returns:
      collectionName
    • setCollectionName

      public void setCollectionName(@Nonnull String collectionName)
    • collectionScope

      public CreateCollectionInputBody collectionScope(@Nonnull CreateCollectionInputBody.CollectionScopeEnum collectionScope)
    • getCollectionScope

      @Nonnull public CreateCollectionInputBody.CollectionScopeEnum getCollectionScope()
      Visibility scope.
      Returns:
      collectionScope
    • setCollectionScope

      public void setCollectionScope(@Nonnull CreateCollectionInputBody.CollectionScopeEnum collectionScope)
    • description

      public CreateCollectionInputBody description(@Nonnull String description)
    • getDescription

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

      public void setDescription(@Nonnull String description)
    • modelId

      public CreateCollectionInputBody modelId(@Nonnull Long modelId)
    • getModelId

      @Nonnull public Long getModelId()
      Model ID the collection is associated with. minimum: 1
      Returns:
      modelId
    • setModelId

      public void setModelId(@Nonnull Long modelId)
    • tags

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

      public CreateCollectionInputBody addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Optional tags to attach to the collection.
      Returns:
      tags
    • setTags

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

      public CreateCollectionInputBody putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the CreateCollectionInputBody instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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 CreateCollectionInputBody
    • fromJson

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

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