Class RestStorage

java.lang.Object
de.dlr.proseo.interfaces.rest.model.RestStorage
All Implemented Interfaces:
Serializable

public class RestStorage extends Object implements Serializable
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • id

      protected String id
    • storageType

      protected String storageType
      The type of the storage
    • description

      protected String description
  • Constructor Details

    • RestStorage

      public RestStorage()
      Creates a new RestStorage.
    • RestStorage

      public RestStorage(String id, String storageType, String description)
      Creates a new RestStorage.
  • Method Details

    • getId

      @NotNull @Pattern(regexp="^proseo-[a-z0-9-]{10,50}+$") public String getId()
      Returns the id.
      Returns:
      id
    • setId

      public void setId(String id)
      Set the id.
      Parameters:
      id - the new id
    • getStorageType

      @NotNull @Pattern(regexp="^(S3|ALLUXIO|POSIX|OTHER)$") public String getStorageType()
      Returns the storageType.
      Returns:
      storageType
    • setStorageType

      public void setStorageType(String storageType)
      Set the storageType.
      Parameters:
      storageType - the new storageType
    • getDescription

      public String getDescription()
      Returns the description.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
      Set the description.
      Parameters:
      description - the new description
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object