Package codes.grow.packages.betterstack
Record Class SendEventsOptions
java.lang.Object
java.lang.Record
codes.grow.packages.betterstack.SendEventsOptions
- Record Components:
encoding- body encoding; empty uses the exporter's encodinggzip- whether the body is gzip-compressed (Content-Encoding: gzip)
-
Constructor Summary
ConstructorsConstructorDescriptionSendEventsOptions(Optional<IngestEncoding> encoding, boolean gzip) Replaces anullencoding by empty. -
Method Summary
Modifier and TypeMethodDescriptionstatic SendEventsOptionsdefaults()Defaults: the exporter's encoding, gzip on.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.booleangzip()Returns the value of thegziprecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.withEncoding(IngestEncoding encoding) Copy with an explicit encoding.withGzip(boolean gzip) Copy with gzip on or off.
-
Constructor Details
-
SendEventsOptions
Replaces anullencoding by empty.- Parameters:
encoding- encoding or emptygzip- gzip flag
-
-
Method Details
-
defaults
Defaults: the exporter's encoding, gzip on.- Returns:
- options
-
withEncoding
Copy with an explicit encoding.- Parameters:
encoding- encoding- Returns:
- options
-
withGzip
Copy with gzip on or off.- Parameters:
gzip- gzip flag- Returns:
- options
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
gzip
public boolean gzip()Returns the value of thegziprecord component.- Returns:
- the value of the
gziprecord component
-