Record Class CSEMessageType.CSEAuthenticateResponseHeader
java.lang.Object
java.lang.Record
com.io7m.certusine.etcd.internal.dto.CSEMessageType.CSEAuthenticateResponseHeader
- All Implemented Interfaces:
CSEMessageType
- Enclosing interface:
- CSEMessageType
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.certusine.etcd.internal.dto.CSEMessageType
CSEMessageType.CEKV, CSEMessageType.CERequestPut, CSEMessageType.CSEAuthenticate, CSEMessageType.CSEAuthenticateResponse, CSEMessageType.CSEAuthenticateResponseHeader, CSEMessageType.CSEError, CSEMessageType.CSETransaction, CSEMessageType.CSETransactionResponse -
Constructor Summary
ConstructorsConstructorDescriptionCSEAuthenticateResponseHeader(String clusterId, String memberId, String revision, String raftTerm) Creates an instance of aCSEAuthenticateResponseHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclusterIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.memberId()Returns the value of thememberIdrecord component.raftTerm()Returns the value of theraftTermrecord component.revision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSEAuthenticateResponseHeader
public CSEAuthenticateResponseHeader(String clusterId, String memberId, String revision, String raftTerm) Creates an instance of aCSEAuthenticateResponseHeaderrecord class.- Parameters:
clusterId- the value for theclusterIdrecord componentmemberId- the value for thememberIdrecord componentrevision- the value for therevisionrecord componentraftTerm- the value for theraftTermrecord 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). -
clusterId
Returns the value of theclusterIdrecord component.- Returns:
- the value of the
clusterIdrecord component
-
memberId
Returns the value of thememberIdrecord component.- Returns:
- the value of the
memberIdrecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
raftTerm
Returns the value of theraftTermrecord component.- Returns:
- the value of the
raftTermrecord component
-