Record Class S3UploadRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.utils.s3.dto.request.S3UploadRequest
-
Constructor Summary
ConstructorsConstructorDescriptionS3UploadRequest(Integer userId, String dirName) Creates an instance of aS3UploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondirName()Returns the value of thedirNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
S3UploadRequest
Creates an instance of aS3UploadRequestrecord class.- Parameters:
userId- the value for theuserIdrecord componentdirName- the value for thedirNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
dirName
Returns the value of thedirNamerecord component.- Returns:
- the value of the
dirNamerecord component
-