Record Class PlainPontonXPAdapterConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.ponton.PlainPontonXPAdapterConfiguration
- All Implemented Interfaces:
PontonXPAdapterConfiguration
-
Field Summary
Fields inherited from interface energy.eddie.regionconnector.at.eda.ponton.PontonXPAdapterConfiguration
ADAPTER_ID_KEY, ADAPTER_VERSION_KEY, API_ENDPOINT_KEY, HOSTNAME_KEY, PASSWORD_KEY, PORT_KEY, PREFIX, USERNAME_KEY, WORK_FOLDER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterIdrecord component.Returns the value of theadapterVersionrecord component.Returns the value of theapiEndpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.Returns the value of theworkFolderrecord component.
-
Constructor Details
-
PlainPontonXPAdapterConfiguration
public PlainPontonXPAdapterConfiguration(String adapterId, String adapterVersion, String hostname, int port, String apiEndpoint, String workFolder, String username, String password) Creates an instance of aPlainPontonXPAdapterConfigurationrecord class.- Parameters:
adapterId- the value for theadapterIdrecord componentadapterVersion- the value for theadapterVersionrecord componenthostname- the value for thehostnamerecord componentport- the value for theportrecord componentapiEndpoint- the value for theapiEndpointrecord componentworkFolder- the value for theworkFolderrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord 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 '=='. -
adapterId
Returns the value of theadapterIdrecord component.- Specified by:
adapterIdin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
adapterIdrecord component
-
adapterVersion
Returns the value of theadapterVersionrecord component.- Specified by:
adapterVersionin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
adapterVersionrecord component
-
hostname
Returns the value of thehostnamerecord component.- Specified by:
hostnamein interfacePontonXPAdapterConfiguration- Returns:
- the value of the
hostnamerecord component
-
port
public int port()Returns the value of theportrecord component.- Specified by:
portin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
portrecord component
-
apiEndpoint
Returns the value of theapiEndpointrecord component.- Specified by:
apiEndpointin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
apiEndpointrecord component
-
workFolder
Returns the value of theworkFolderrecord component.- Specified by:
workFolderin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
workFolderrecord component
-
username
Returns the value of theusernamerecord component.- Specified by:
usernamein interfacePontonXPAdapterConfiguration- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Specified by:
passwordin interfacePontonXPAdapterConfiguration- Returns:
- the value of the
passwordrecord component
-