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.
-
Constructor Summary
-
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
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
environment
Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-
nodeName
Returns the value of thenodeName
record component.- Returns:
- the value of the
nodeName
record component
-