Record Class CredentialValidator.ValidationResult
java.lang.Object
java.lang.Record
cloud.kitelang.cli.validation.CredentialValidator.ValidationResult
- Enclosing interface:
CredentialValidator
-
Constructor Summary
ConstructorsConstructorDescriptionValidationResult(boolean success, String message, String identity, String details) Creates an instance of aValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncliNotFound(String cliName) details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.message()Returns the value of themessagerecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationResult
Creates an instance of aValidationResultrecord class.- Parameters:
success- the value for thesuccessrecord componentmessage- the value for themessagerecord componentidentity- the value for theidentityrecord componentdetails- the value for thedetailsrecord component
-
-
Method Details
-
success
-
failure
-
cliNotFound
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-