Package com.adobe.testing.s3mock.dto
Record Class InitiateMultipartUploadResult
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.InitiateMultipartUploadResult
public record InitiateMultipartUploadResult(String bucketName, String fileName, String uploadId)
extends Record
Result to be returned after multipart upload initiation.
API Reference
-
Constructor Summary
ConstructorsConstructorDescriptionInitiateMultipartUploadResult(String bucketName, String fileName, String uploadId) Creates an instance of aInitiateMultipartUploadResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebucketNamerecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.uploadId()Returns the value of theuploadIdrecord component.
-
Constructor Details
-
InitiateMultipartUploadResult
Creates an instance of aInitiateMultipartUploadResultrecord class.- Parameters:
bucketName- the value for thebucketNamerecord componentfileName- the value for thefileNamerecord componentuploadId- the value for theuploadIdrecord 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). -
bucketName
Returns the value of thebucketNamerecord component.- Returns:
- the value of the
bucketNamerecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
uploadId
Returns the value of theuploadIdrecord component.- Returns:
- the value of the
uploadIdrecord component
-