Package com.adobe.testing.s3mock.dto
Record Class NoncurrentVersionTransition
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.NoncurrentVersionTransition
public record NoncurrentVersionTransition(Integer newerNoncurrentVersions, Integer noncurrentDays, StorageClass storageClass)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNoncurrentVersionTransition(Integer newerNoncurrentVersions, Integer noncurrentDays, StorageClass storageClass) Creates an instance of aNoncurrentVersionTransitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenewerNoncurrentVersionsrecord component.Returns the value of thenoncurrentDaysrecord component.Returns the value of thestorageClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NoncurrentVersionTransition
public NoncurrentVersionTransition(Integer newerNoncurrentVersions, Integer noncurrentDays, StorageClass storageClass) Creates an instance of aNoncurrentVersionTransitionrecord class.- Parameters:
newerNoncurrentVersions- the value for thenewerNoncurrentVersionsrecord componentnoncurrentDays- the value for thenoncurrentDaysrecord componentstorageClass- the value for thestorageClassrecord 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). -
newerNoncurrentVersions
Returns the value of thenewerNoncurrentVersionsrecord component.- Returns:
- the value of the
newerNoncurrentVersionsrecord component
-
noncurrentDays
Returns the value of thenoncurrentDaysrecord component.- Returns:
- the value of the
noncurrentDaysrecord component
-
storageClass
Returns the value of thestorageClassrecord component.- Returns:
- the value of the
storageClassrecord component
-