Record Class CreatedCdsClientResponse
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.cds.services.client.creation.responses.CreatedCdsClientResponse
- All Implemented Interfaces:
ApiClientCreationResponse
public record CreatedCdsClientResponse(CdsServer cdsServer)
extends Record
implements ApiClientCreationResponse
-
Constructor Summary
ConstructorsConstructorDescriptionCreatedCdsClientResponse(CdsServer cdsServer) Creates an instance of aCreatedCdsClientResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecdsServerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreatedCdsClientResponse
Creates an instance of aCreatedCdsClientResponserecord class.- Parameters:
cdsServer- the value for thecdsServerrecord 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). -
cdsServer
Returns the value of thecdsServerrecord component.- Returns:
- the value of the
cdsServerrecord component
-