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 SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordService details.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aElasticCommonSchemaPropertiesrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(org.springframework.core.env.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- 
ElasticCommonSchemaPropertiesCreates an instance of aElasticCommonSchemaPropertiesrecord class.- Parameters:
- service- the value for the- servicerecord component
 
 
- 
- 
Method Details- 
jsonMembersAddJsonWritermembers for the service.- Parameters:
- members- the members to add to
 
- 
getpublic static ElasticCommonSchemaProperties get(org.springframework.core.env.Environment environment) Return a newElasticCommonSchemaPropertiesfrom bound from properties in the givenEnvironment.- Parameters:
- environment- the source environment
- Returns:
- a new ElasticCommonSchemaPropertiesinstance
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
serviceReturns the value of theservicerecord component.- Returns:
- the value of the servicerecord component
 
 
-