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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.nodeName()Returns the value of thenodeNamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Service
Creates an instance of aServicerecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentenvironment- the value for theenvironmentrecord componentnodeName- the value for thenodeNamerecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
nodeName
Returns the value of thenodeNamerecord component.- Returns:
- the value of the
nodeNamerecord component
-