Package io.supabase.data.bucket
Record Class Bucket
java.lang.Object
java.lang.Record
io.supabase.data.bucket.Bucket
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedMimeTypes
record component.Returns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefileSizeLimit
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
Returns the value of theisBucketPublic
record component.name()
Returns the value of thename
record component.owner()
Returns the value of theowner
record component.toString()
Returns a string representation of this record class.Returns the value of theupdatedAt
record component.
-
Constructor Details
-
Bucket
public Bucket(String id, String name, String owner, boolean isBucketPublic, FileSize fileSizeLimit, List<String> allowedMimeTypes, String createdAt, String updatedAt) Creates an instance of aBucket
record class.- Parameters:
id
- the value for theid
record componentname
- the value for thename
record componentowner
- the value for theowner
record componentisBucketPublic
- the value for theisBucketPublic
record componentfileSizeLimit
- the value for thefileSizeLimit
record componentallowedMimeTypes
- the value for theallowedMimeTypes
record componentcreatedAt
- the value for thecreatedAt
record componentupdatedAt
- the value for theupdatedAt
record component
-
-
Method Details
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
isBucketPublic
@SerializedName("public") public boolean isBucketPublic()Returns the value of theisBucketPublic
record component.- Returns:
- the value of the
isBucketPublic
record component
-
fileSizeLimit
Returns the value of thefileSizeLimit
record component.- Returns:
- the value of the
fileSizeLimit
record component
-
allowedMimeTypes
Returns the value of theallowedMimeTypes
record component.- Returns:
- the value of the
allowedMimeTypes
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
updatedAt
Returns the value of theupdatedAt
record component.- Returns:
- the value of the
updatedAt
record component
-