Record Class ConsumerGroupToDelete
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.domain.subscription.consumergroup.ConsumerGroupToDelete
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerGroupToDelete(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName, String datacenter, Instant requestedAt) Creates an instance of aConsumerGroupToDeleterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatacenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therequestedAtrecord component.pl.allegro.tech.hermes.api.SubscriptionNameReturns the value of thesubscriptionNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumerGroupToDelete
public ConsumerGroupToDelete(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName, String datacenter, Instant requestedAt) Creates an instance of aConsumerGroupToDeleterecord class.- Parameters:
subscriptionName- the value for thesubscriptionNamerecord componentdatacenter- the value for thedatacenterrecord componentrequestedAt- the value for therequestedAtrecord 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). -
subscriptionName
public pl.allegro.tech.hermes.api.SubscriptionName subscriptionName()Returns the value of thesubscriptionNamerecord component.- Returns:
- the value of the
subscriptionNamerecord component
-
datacenter
Returns the value of thedatacenterrecord component.- Returns:
- the value of the
datacenterrecord component
-
requestedAt
Returns the value of therequestedAtrecord component.- Returns:
- the value of the
requestedAtrecord component
-