Record Class CSFaultInjectionConfiguration
java.lang.Object
java.lang.Record
com.io7m.certusine.api.CSFaultInjectionConfiguration
- Record Components:
failTasks- Fail task executionfailDNSChallenge- Fail DNS challengesfailSigningCertificates- Fail signing certificatescrashTasks- Crash task executioncrashDNSChallenge- Crash DNS challengescrashSigningCertificates- Crash signing certificates
public record CSFaultInjectionConfiguration(boolean failTasks, boolean failDNSChallenge, boolean failSigningCertificates, boolean crashTasks, boolean crashDNSChallenge, boolean crashSigningCertificates)
extends Record
Fault injection configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCSFaultInjectionConfiguration(boolean failTasks, boolean failDNSChallenge, boolean failSigningCertificates, boolean crashTasks, boolean crashDNSChallenge, boolean crashSigningCertificates) Creates an instance of aCSFaultInjectionConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecrashDNSChallengerecord component.booleanReturns the value of thecrashSigningCertificatesrecord component.booleanReturns the value of thecrashTasksrecord component.disabled()final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefailDNSChallengerecord component.booleanReturns the value of thefailSigningCertificatesrecord component.booleanReturns the value of thefailTasksrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSFaultInjectionConfiguration
public CSFaultInjectionConfiguration(boolean failTasks, boolean failDNSChallenge, boolean failSigningCertificates, boolean crashTasks, boolean crashDNSChallenge, boolean crashSigningCertificates) Creates an instance of aCSFaultInjectionConfigurationrecord class.- Parameters:
failTasks- the value for thefailTasksrecord componentfailDNSChallenge- the value for thefailDNSChallengerecord componentfailSigningCertificates- the value for thefailSigningCertificatesrecord componentcrashTasks- the value for thecrashTasksrecord componentcrashDNSChallenge- the value for thecrashDNSChallengerecord componentcrashSigningCertificates- the value for thecrashSigningCertificatesrecord component
-
-
Method Details
-
disabled
- Returns:
- The "completely disabled" fault injection configuration
-
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. -
failTasks
-
failDNSChallenge
public boolean failDNSChallenge()Returns the value of thefailDNSChallengerecord component.- Returns:
- the value of the
failDNSChallengerecord component
-
failSigningCertificates
public boolean failSigningCertificates()Returns the value of thefailSigningCertificatesrecord component.- Returns:
- the value of the
failSigningCertificatesrecord component
-
crashTasks
public boolean crashTasks()Returns the value of thecrashTasksrecord component.- Returns:
- the value of the
crashTasksrecord component
-
crashDNSChallenge
public boolean crashDNSChallenge()Returns the value of thecrashDNSChallengerecord component.- Returns:
- the value of the
crashDNSChallengerecord component
-
crashSigningCertificates
public boolean crashSigningCertificates()Returns the value of thecrashSigningCertificatesrecord component.- Returns:
- the value of the
crashSigningCertificatesrecord component
-