Record Class ElasticCommonSchemaProperties
java.lang.Object
java.lang.Record
org.springframework.boot.logging.structured.ElasticCommonSchemaProperties
- Record Components:
service
- service details
public record ElasticCommonSchemaProperties(ElasticCommonSchemaProperties.Service service)
extends Record
Properties for Elastic Common Schema structured logging.
- Since:
- 3.4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Service details. -
Constructor Summary
ConstructorDescriptionCreates an instance of aElasticCommonSchemaProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(org.springframework.core.env.Environment environment) Return a newElasticCommonSchemaProperties
from bound from properties in the givenEnvironment
.final int
hashCode()
Returns a hash code value for this object.void
jsonMembers
(JsonWriter.Members<?> members) AddJsonWriter
members for the service.service()
Returns the value of theservice
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ElasticCommonSchemaProperties
Creates an instance of aElasticCommonSchemaProperties
record class.- Parameters:
service
- the value for theservice
record component
-
-
Method Details
-
jsonMembers
AddJsonWriter
members for the service.- Parameters:
members
- the members to add to
-
get
public static ElasticCommonSchemaProperties get(org.springframework.core.env.Environment environment) Return a newElasticCommonSchemaProperties
from bound from properties in the givenEnvironment
.- Parameters:
environment
- the source environment- Returns:
- a new
ElasticCommonSchemaProperties
instance
-
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)
. -
service
Returns the value of theservice
record component.- Returns:
- the value of the
service
record component
-