Record Class MailpitChaosTrigger
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitChaosTrigger
- Record Components:
errorCode- SMTP error code.probability- Failure probability from 0 to 100.
Mailpit chaos trigger configuration.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitChaosTrigger(int errorCode, int probability) Creates an instance of aMailpitChaosTriggerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitChaosTrigger
public MailpitChaosTrigger(int errorCode, int probability) Creates an instance of aMailpitChaosTriggerrecord class.- Parameters:
errorCode- the value for theerrorCoderecord componentprobability- the value for theprobabilityrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
errorCode
-
probability
public int probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-