Record Class PutLogEventsResult
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.PutLogEventsResult
- Record Components:
accepted- events the service acceptedrejected- events the service rejected (too old, too new, expired)truncated- events truncated by the size policy before sendingdropped- events dropped by the size policy (OversizePolicy.DROP)batches- PutLogEvents calls maderejectedInfo- details of rejected events per batch
public record PutLogEventsResult(int accepted, int rejected, int truncated, int dropped, int batches, List<RejectedLogEventsInfo> rejectedInfo)
extends Record
Result of
putLogEvents.-
Constructor Summary
ConstructorsConstructorDescriptionPutLogEventsResult(int accepted, int rejected, int truncated, int dropped, int batches, List<RejectedLogEventsInfo> rejectedInfo) Normalises absent values (null lists become empty, null optionals empty). -
Method Summary
Modifier and TypeMethodDescriptionintaccepted()Returns the value of theacceptedrecord component.intbatches()Returns the value of thebatchesrecord component.intdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intrejected()Returns the value of therejectedrecord component.Returns the value of therejectedInforecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetruncatedrecord component.
-
Constructor Details
-
PutLogEventsResult
public PutLogEventsResult(int accepted, int rejected, int truncated, int dropped, int batches, List<RejectedLogEventsInfo> rejectedInfo) Normalises absent values (null lists become empty, null optionals empty).- Parameters:
accepted- events the service acceptedrejected- events the service rejected (too old, too new, expired)truncated- events truncated by the size policy before sendingdropped- events dropped by the size policy (OversizePolicy.DROP)batches- PutLogEvents calls maderejectedInfo- details of rejected events per batch
-
-
Method Details
-
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 '=='. -
accepted
public int accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
rejected
public int rejected()Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-
truncated
public int truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
dropped
public int dropped()Returns the value of thedroppedrecord component.- Returns:
- the value of the
droppedrecord component
-
batches
public int batches()Returns the value of thebatchesrecord component.- Returns:
- the value of the
batchesrecord component
-
rejectedInfo
Returns the value of therejectedInforecord component.- Returns:
- the value of the
rejectedInforecord component
-