Record Class DockerComposeOrigin
java.lang.Object
java.lang.Record
org.springframework.boot.docker.compose.core.DockerComposeOrigin
- Record Components:
composeFile- the Docker Compose fileserviceName- name of the Docker Compose service
- All Implemented Interfaces:
org.springframework.boot.origin.Origin
public record DockerComposeOrigin(@Nullable DockerComposeFile composeFile, String serviceName)
extends Record
implements org.springframework.boot.origin.Origin
An origin which points to a service defined in Docker Compose.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDockerComposeOrigin(@Nullable DockerComposeFile composeFile, String serviceName) Creates an instance of aDockerComposeOriginrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable DockerComposeFileReturns the value of thecomposeFilerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserviceNamerecord component.toString()Returns a string representation of this record class.Methods inherited from interface org.springframework.boot.origin.Origin
getParent
-
Constructor Details
-
DockerComposeOrigin
Creates an instance of aDockerComposeOriginrecord class.- Parameters:
composeFile- the value for thecomposeFilerecord componentserviceName- the value for theserviceNamerecord 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). -
composeFile
Returns the value of thecomposeFilerecord component.- Returns:
- the value of the
composeFilerecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-