Class PutEventsResultEntry
- java.lang.Object
-
- software.amazon.awssdk.services.eventbridge.model.PutEventsResultEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PutEventsResultEntry.Builder,PutEventsResultEntry>
@Generated("software.amazon.awssdk:codegen") public final class PutEventsResultEntry extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutEventsResultEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutEventsResultEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()The error code that indicates why the event submission failed.StringerrorMessage()The error message that explains why the event submission failed.StringeventId()The ID of the event.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends PutEventsResultEntry.Builder>serializableBuilderClass()PutEventsResultEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventId
public final String eventId()
The ID of the event.
- Returns:
- The ID of the event.
-
errorCode
public final String 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
public final String errorMessage()
The error message that explains why the event submission failed.
- Returns:
- The error message that explains why the event submission failed.
-
toBuilder
public PutEventsResultEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutEventsResultEntry.Builder,PutEventsResultEntry>
-
builder
public static PutEventsResultEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutEventsResultEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-