Record Class StorageBucket

java.lang.Object
java.lang.Record
io.clonecloudstore.driver.api.model.StorageBucket

public record StorageBucket(String bucket, String clientId, Instant creationDate) extends Record
Dto for Java and possibly Rest API: Bucket minimal information
  • Constructor Details

    • StorageBucket

      public StorageBucket(String bucket, String clientId, Instant creationDate)
      Creates an instance of a StorageBucket record class.
      Parameters:
      bucket - the value for the bucket record component
      clientId - the value for the clientId record component
      creationDate - the value for the creationDate record component
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • bucket

      public String bucket()
      Returns the value of the bucket record component.
      Returns:
      the value of the bucket record component
    • clientId

      public String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • creationDate

      public Instant creationDate()
      Returns the value of the creationDate record component.
      Returns:
      the value of the creationDate record component