Class PutEventsResultEntry
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PutEventsResultEntry.Builder,PutEventsResultEntry>
Represents the results of an event submitted to an event bus.
If the submission was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
For information about the errors that are common to all actions, see Common Errors.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PutEventsResultEntry.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final StringThe error code that indicates why the event submission failed.final StringThe error message that explains why the event submission failed.final StringeventId()The ID of the event.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends PutEventsResultEntry.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
eventId
The ID of the event.
- Returns:
- The ID of the event.
-
errorCode
The error code that indicates why the event submission failed.
Retryable errors include:
-
The request processing has failed because of an unknown error, exception or failure.
-
The request was denied due to request throttling.
Non-retryable errors include:
-
You do not have sufficient access to perform this action.
-
InvalidAccountIdExceptionThe account ID provided is not valid.
-
InvalidArgumentA specified parameter is not valid.
-
MalformedDetailThe JSON provided is not valid.
-
RedactionFailureRedacting the CloudTrail event failed.
-
NotAuthorizedForSourceExceptionYou do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeExceptionYou do not have permissions to publish events with this detail type onto this event bus.
- Returns:
- The error code that indicates why the event submission failed.
Retryable errors include:
-
The request processing has failed because of an unknown error, exception or failure.
-
The request was denied due to request throttling.
Non-retryable errors include:
-
You do not have sufficient access to perform this action.
-
InvalidAccountIdExceptionThe account ID provided is not valid.
-
InvalidArgumentA specified parameter is not valid.
-
MalformedDetailThe JSON provided is not valid.
-
RedactionFailureRedacting the CloudTrail event failed.
-
NotAuthorizedForSourceExceptionYou do not have permissions to publish events with this source onto this event bus.
-
NotAuthorizedForDetailTypeExceptionYou do not have permissions to publish events with this detail type onto this event bus.
-
-
-
errorMessage
The error message that explains why the event submission failed.
- Returns:
- The error message that explains why the event submission failed.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutEventsResultEntry.Builder,PutEventsResultEntry>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-