Package ch.bztf.m226blb1.Auth
Record Class AuthAccount
java.lang.Object
java.lang.Record
ch.bztf.m226blb1.Auth.AuthAccount
public record AuthAccount(String apiKey, @NotBlank String email, @NotBlank String password)
extends Record
Represents an 
account with the
 authentication data.- See Also:
 - API Note:
 - This record will be used for passing credentials to the server by the client.
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAuthAccount(String apiKey, @NotBlank String email, @NotBlank String password) Creates an instance of aAuthAccountrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.@NotBlank Stringemail()Returns the value of theemailrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotBlank Stringpassword()Returns the value of thepasswordrecord component.toString()Returns a string representation of this record class. 
- 
Constructor Details
- 
AuthAccount
public AuthAccount(String apiKey, @NotBlank @NotBlank String email, @NotBlank @NotBlank String password) Creates an instance of aAuthAccountrecord class.- Parameters:
 apiKey- the value for theapiKeyrecord componentemail- the value for theemailrecord componentpassword- the value for thepasswordrecord component
 
 - 
 - 
Method Details
- 
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). - 
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
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. - 
apiKey
Returns the value of theapiKeyrecord component.- Returns:
 - the value of the 
apiKeyrecord component 
 - 
email
Returns the value of theemailrecord component.- Returns:
 - the value of the 
emailrecord component 
 - 
password
Returns the value of thepasswordrecord component.- Returns:
 - the value of the 
passwordrecord component 
 
 -