Record Class ClientBucketAccess

java.lang.Object
java.lang.Record
io.clonecloudstore.administration.model.ClientBucketAccess

public record ClientBucketAccess(String client, String bucket, ClientOwnership ownership) extends Record
  • Constructor Details

    • ClientBucketAccess

      public ClientBucketAccess(String client, String bucket, ClientOwnership ownership)
      Creates an instance of a ClientBucketAccess record class.
      Parameters:
      client - the value for the client record component
      bucket - the value for the bucket record component
      ownership - the value for the ownership record component
  • Method Details

    • include

      public boolean include(ClientOwnership ownership)
    • 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
    • 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.
    • hashCode

      public final 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
    • client

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

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

      public ClientOwnership ownership()
      Returns the value of the ownership record component.
      Returns:
      the value of the ownership record component