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
- Author:
- Moritz Halbritter, Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordService details. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aElasticCommonSchemaPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(Environment environment) Return a newElasticCommonSchemaPropertiesfrom bound from properties in the givenEnvironment.final inthashCode()Returns a hash code value for this object.voidjsonMembers(JsonWriter.Members<?> members) AddJsonWritermembers for the service.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElasticCommonSchemaProperties
Creates an instance of aElasticCommonSchemaPropertiesrecord class.- Parameters:
service- the value for theservicerecord component
-
-
Method Details
-
jsonMembers
AddJsonWritermembers for the service.- Parameters:
members- the members to add to
-
get
Return a newElasticCommonSchemaPropertiesfrom bound from properties in the givenEnvironment.- Parameters:
environment- the source environment- Returns:
- a new
ElasticCommonSchemaPropertiesinstance
-
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). -
service
-