@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutEventsResultEntry extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
PutEventsResultEntry() |
Modifier and Type | Method and Description |
---|---|
PutEventsResultEntry |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code that indicates why the event submission failed.
|
String |
getErrorMessage()
The error message that explains why the event submission failed.
|
String |
getEventId()
The ID of the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code that indicates why the event submission failed.
|
void |
setErrorMessage(String errorMessage)
The error message that explains why the event submission failed.
|
void |
setEventId(String eventId)
The ID of the event.
|
String |
toString()
Returns a string representation of this object.
|
PutEventsResultEntry |
withErrorCode(String errorCode)
The error code that indicates why the event submission failed.
|
PutEventsResultEntry |
withErrorMessage(String errorMessage)
The error message that explains why the event submission failed.
|
PutEventsResultEntry |
withEventId(String eventId)
The ID of the event.
|
public void setEventId(String eventId)
The ID of the event.
eventId
- The ID of the event.public String getEventId()
The ID of the event.
public PutEventsResultEntry withEventId(String eventId)
The ID of the event.
eventId
- The ID of the event.public void setErrorCode(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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
public String getErrorCode()
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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
public PutEventsResultEntry withErrorCode(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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
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.
InvalidAccountIdException
The account ID provided is not valid.
InvalidArgument
A specified parameter is not valid.
MalformedDetail
The JSON provided is not valid.
RedactionFailure
Redacting the CloudTrail event failed.
NotAuthorizedForSourceException
You do not have permissions to publish events with this source onto this event bus.
NotAuthorizedForDetailTypeException
You do not have permissions to publish events with this detail type onto this event bus.
public void setErrorMessage(String errorMessage)
The error message that explains why the event submission failed.
errorMessage
- The error message that explains why the event submission failed.public String getErrorMessage()
The error message that explains why the event submission failed.
public PutEventsResultEntry withErrorMessage(String errorMessage)
The error message that explains why the event submission failed.
errorMessage
- The error message that explains why the event submission failed.public String toString()
toString
in class Object
Object.toString()
public PutEventsResultEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.