Class Folder

java.lang.Object
com.veeroute.lss.registry.model.Folder

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:50.097229187+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class Folder extends Object
Folder is an element of a virtual file system.
  • Field Details

  • Constructor Details

    • Folder

      public Folder()
  • Method Details

    • key

      public Folder key(@Nonnull UUID key)
    • getKey

      @Nonnull public UUID getKey()
      Key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull UUID key)
    • type

      public Folder type(@Nonnull FolderType type)
    • getType

      @Nonnull public FolderType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nonnull FolderType type)
    • parentKey

      public Folder parentKey(@Nullable UUID parentKey)
    • getParentKey

      @Nullable public UUID getParentKey()
      Parent folder key, `null` if the folder is root.
      Returns:
      parentKey
    • setParentKey

      public void setParentKey(@Nullable UUID parentKey)
    • name

      public Folder name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Folder name.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • comment

      public Folder comment(@Nullable String comment)
    • getComment

      @Nullable public String getComment()
      Folder comment.
      Returns:
      comment
    • setComment

      public void setComment(@Nullable String comment)
    • color

      public Folder color(@Nullable String color)
    • getColor

      @Nullable public String getColor()
      Folder color.
      Returns:
      color
    • setColor

      public void setColor(@Nullable String color)
    • attributes

      public Folder attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public Folder addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • ownerCompanyKey

      public Folder ownerCompanyKey(@Nullable String ownerCompanyKey)
    • getOwnerCompanyKey

      @Nullable public String getOwnerCompanyKey()
      Unique company key.
      Returns:
      ownerCompanyKey
    • setOwnerCompanyKey

      public void setOwnerCompanyKey(@Nullable String ownerCompanyKey)
    • ownerUsername

      public Folder ownerUsername(@Nullable String ownerUsername)
    • getOwnerUsername

      @Nullable public String getOwnerUsername()
      Unique username for login.
      Returns:
      ownerUsername
    • setOwnerUsername

      public void setOwnerUsername(@Nullable String ownerUsername)
    • creationDate

      public Folder creationDate(@Nullable OffsetDateTime creationDate)
    • getCreationDate

      @Nullable public OffsetDateTime getCreationDate()
      Creation date and time in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.
      Returns:
      creationDate
    • setCreationDate

      public void setCreationDate(@Nullable OffsetDateTime creationDate)
    • expirationDate

      public Folder expirationDate(@Nullable OffsetDateTime expirationDate)
    • getExpirationDate

      @Nullable public OffsetDateTime getExpirationDate()
      Date and time of automatic deletion in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format. Null means that automatic deletion does not occur.
      Returns:
      expirationDate
    • setExpirationDate

      public void setExpirationDate(@Nullable OffsetDateTime expirationDate)
    • counters

      public Folder counters(@Nonnull FolderCounters counters)
    • getCounters

      @Nonnull public FolderCounters getCounters()
      Get counters
      Returns:
      counters
    • setCounters

      public void setCounters(@Nonnull FolderCounters counters)
    • putAdditionalProperty

      public Folder 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 Folder 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 Folder
    • fromJson

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

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