Record Class CommunicationDisReqMessage
java.lang.Object
java.lang.Record
de.gematik.test.erezept.fhir.values.json.CommunicationDisReqMessage
- All Implemented Interfaces:
CommunicationStructuredMessage
-
Field Summary
Fields inherited from interface de.gematik.test.erezept.fhir.values.json.CommunicationStructuredMessage
DEFAULT_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCommunicationDisReqMessage(int version, String supplyOptionsType, String name, List<String> address, String hint, String phone) Creates an instance of aCommunicationDisReqMessagerecord class.CommunicationDisReqMessage(SupplyOptionsType supplyOptionsType, String hint) CommunicationDisReqMessage(SupplyOptionsType supplyOptionsType, String name, List<String> address, String hint, String phone) -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.name()Returns the value of thenamerecord component.phone()Returns the value of thephonerecord component.Returns the value of thesupplyOptionsTyperecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.gematik.test.erezept.fhir.values.json.CommunicationStructuredMessage
asJson
-
Constructor Details
-
CommunicationDisReqMessage
-
CommunicationDisReqMessage
-
CommunicationDisReqMessage
public CommunicationDisReqMessage() -
CommunicationDisReqMessage
public CommunicationDisReqMessage(int version, String supplyOptionsType, String name, List<String> address, String hint, String phone) Creates an instance of aCommunicationDisReqMessagerecord class.- Parameters:
version- the value for theversionrecord componentsupplyOptionsType- the value for thesupplyOptionsTyperecord componentname- the value for thenamerecord componentaddress- the value for theaddressrecord componenthint- the value for thehintrecord componentphone- the value for thephonerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
supplyOptionsType
Returns the value of thesupplyOptionsTyperecord component.- Returns:
- the value of the
supplyOptionsTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-
phone
Returns the value of thephonerecord component.- Returns:
- the value of the
phonerecord component
-