Record Class PutLogEventsOptions
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.PutLogEventsOptions
- Record Components:
autoCreate- create a missing log stream and retry once (defaultconfig.autoCreate, true)createGroup- with autoCreate, also create a missing log group (default false)maxEventBytes- per-event limit (defaultconfig.maxEventBytes)oversizePolicy- oversize policy (defaultconfig.oversizePolicy)
public record PutLogEventsOptions(Boolean autoCreate, Boolean createGroup, Integer maxEventBytes, OversizePolicy oversizePolicy)
extends Record
Options of
putLogEvents.
Build with builder(); unset values are null and take the documented default.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPutLogEventsOptions(Boolean autoCreate, Boolean createGroup, Integer maxEventBytes, OversizePolicy oversizePolicy) Creates an instance of aPutLogEventsOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautoCreaterecord component.static PutLogEventsOptions.Builderbuilder()Starts a builder.Returns the value of thecreateGrouprecord component.static PutLogEventsOptionsdefaults()Options with every default.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxEventBytesrecord component.Returns the value of theoversizePolicyrecord component.Returns a builder holding these values.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PutLogEventsOptions
public PutLogEventsOptions(Boolean autoCreate, Boolean createGroup, Integer maxEventBytes, OversizePolicy oversizePolicy) Creates an instance of aPutLogEventsOptionsrecord class.- Parameters:
autoCreate- the value for theautoCreaterecord componentcreateGroup- the value for thecreateGrouprecord componentmaxEventBytes- the value for themaxEventBytesrecord componentoversizePolicy- the value for theoversizePolicyrecord component
-
-
Method Details
-
defaults
Options with every default.- Returns:
- the options
-
builder
Starts a builder.- Returns:
- a new builder
-
toBuilder
Returns a builder holding these values.- Returns:
- a new builder
-
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). -
autoCreate
Returns the value of theautoCreaterecord component.- Returns:
- the value of the
autoCreaterecord component
-
createGroup
Returns the value of thecreateGrouprecord component.- Returns:
- the value of the
createGrouprecord component
-
maxEventBytes
Returns the value of themaxEventBytesrecord component.- Returns:
- the value of the
maxEventBytesrecord component
-
oversizePolicy
Returns the value of theoversizePolicyrecord component.- Returns:
- the value of the
oversizePolicyrecord component
-