Class ObjectDetail

java.lang.Object
co.yellowdog.platform.model.ObjectDetail

public class ObjectDetail extends Object
Describes details about an object stored in the YellowDog Object Store service.
  • Method Details

    • builder

      public static ObjectDetail.Builder builder()
    • getNamespace

      public String getNamespace()
      The user allocated namespace used to group objects together.
      Returns:
      the object namespace
    • getObjectName

      public String getObjectName()
      The object name which may contain path seperators '/'.
      Returns:
      the object name
    • getObjectSize

      public Long getObjectSize()
      The object size in bytes.
      Returns:
      the object size in bytes
    • getLastModified

      public Instant getLastModified()
      When the object was last modified.
      Returns:
      when the object was last modified
    • setNamespace

      public void setNamespace(String namespace)
      The user allocated namespace used to group objects together.
      Parameters:
      namespace - the object namespace
    • setObjectName

      public void setObjectName(String objectName)
      The object name which may contain path seperators '/'.
      Parameters:
      objectName - the object name
    • setObjectSize

      public void setObjectSize(Long objectSize)
      The object size in bytes.
      Parameters:
      objectSize - the object size in bytes
    • setLastModified

      public void setLastModified(Instant lastModified)
      When the object was last modified.
      Parameters:
      lastModified - when the object was last modified
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object