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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns 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.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable StringnodeName()Returns the value of thenodeNamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Service
public Service(@Nullable String name, @Nullable String version, @Nullable String environment, @Nullable String nodeName) 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
-
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 theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
nodeName
-