Record Class DatabaseSpec.DatabaseChoice
java.lang.Object
java.lang.Record
com.cloudforge.core.interfaces.DatabaseSpec.DatabaseChoice
- Enclosing interface:
DatabaseSpec
public static record DatabaseSpec.DatabaseChoice(String engine, String version, DatabaseSpec.DatabaseOption option)
extends Record
The engine and version a deployment resolved to, and the supported option it matches.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseChoice(String engine, String version, DatabaseSpec.DatabaseOption option) Creates an instance of aDatabaseChoicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionengine()Returns the value of theenginerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.option()Returns the value of theoptionrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DatabaseChoice
Creates an instance of aDatabaseChoicerecord class.- Parameters:
engine- the value for theenginerecord componentversion- the value for theversionrecord componentoption- the value for theoptionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
engine
Returns the value of theenginerecord component.- Returns:
- the value of the
enginerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
option
Returns the value of theoptionrecord component.- Returns:
- the value of the
optionrecord component
-