Record Class ElasticCommonSchemaProperties.Service
java.lang.Object
java.lang.Record
org.springframework.boot.logging.structured.ElasticCommonSchemaProperties.Service
- Record Components:
name
- the application nameversion
- the version of the applicationenvironment
- the name of the environment the application is running innodeName
- the name of the node the application is running on
- Enclosing class:
ElasticCommonSchemaProperties
public static record ElasticCommonSchemaProperties.Service(String name, String version, String environment, String nodeName)
extends Record
Service details.
- Since:
- 3.4.0
- Author:
- Moritz Halbritter, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironment
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.nodeName()
Returns the value of thenodeName
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
Service
Creates an instance of aService
record class.- Parameters:
name
- the value for thename
record componentversion
- the value for theversion
record componentenvironment
- the value for theenvironment
record componentnodeName
- the value for thenodeName
record 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)
. -
name
-
version
-
environment
Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-
nodeName
-