Package com.adobe.testing.s3mock.dto
Record Class LifecycleRule
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.LifecycleRule
public record LifecycleRule(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload, LifecycleExpiration expiration, LifecycleRuleFilter filter, String id, NoncurrentVersionExpiration noncurrentVersionExpiration, List<NoncurrentVersionTransition> noncurrentVersionTransitions, LifecycleRule.Status status, List<Transition> transitions)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLifecycleRule(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload, LifecycleExpiration expiration, LifecycleRuleFilter filter, String id, NoncurrentVersionExpiration noncurrentVersionExpiration, List<NoncurrentVersionTransition> noncurrentVersionTransitions, LifecycleRule.Status status, List<Transition> transitions) Creates an instance of aLifecycleRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabortIncompleteMultipartUploadrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpirationrecord component.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thenoncurrentVersionExpirationrecord component.Returns the value of thenoncurrentVersionTransitionsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransitionsrecord component.
-
Constructor Details
-
LifecycleRule
public LifecycleRule(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload, LifecycleExpiration expiration, LifecycleRuleFilter filter, String id, NoncurrentVersionExpiration noncurrentVersionExpiration, List<NoncurrentVersionTransition> noncurrentVersionTransitions, LifecycleRule.Status status, List<Transition> transitions) Creates an instance of aLifecycleRulerecord class.- Parameters:
abortIncompleteMultipartUpload- the value for theabortIncompleteMultipartUploadrecord componentexpiration- the value for theexpirationrecord componentfilter- the value for thefilterrecord componentid- the value for theidrecord componentnoncurrentVersionExpiration- the value for thenoncurrentVersionExpirationrecord componentnoncurrentVersionTransitions- the value for thenoncurrentVersionTransitionsrecord componentstatus- the value for thestatusrecord componenttransitions- the value for thetransitionsrecord 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). -
abortIncompleteMultipartUpload
Returns the value of theabortIncompleteMultipartUploadrecord component.- Returns:
- the value of the
abortIncompleteMultipartUploadrecord component
-
expiration
Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
noncurrentVersionExpiration
Returns the value of thenoncurrentVersionExpirationrecord component.- Returns:
- the value of the
noncurrentVersionExpirationrecord component
-
noncurrentVersionTransitions
Returns the value of thenoncurrentVersionTransitionsrecord component.- Returns:
- the value of the
noncurrentVersionTransitionsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
transitions
Returns the value of thetransitionsrecord component.- Returns:
- the value of the
transitionsrecord component
-