#[non_exhaustive]pub struct PutEventsResultEntryBuilder { /* private fields */ }Expand description
A builder for PutEventsResultEntry.
Implementations§
source§impl PutEventsResultEntryBuilder
impl PutEventsResultEntryBuilder
sourcepub fn set_event_id(self, input: Option<String>) -> Self
pub fn set_event_id(self, input: Option<String>) -> Self
The ID of the event.
sourcepub fn get_event_id(&self) -> &Option<String>
pub fn get_event_id(&self) -> &Option<String>
The ID of the event.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
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.
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
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.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message that explains why the event submission failed.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message that explains why the event submission failed.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
The error message that explains why the event submission failed.
sourcepub fn build(self) -> PutEventsResultEntry
pub fn build(self) -> PutEventsResultEntry
Consumes the builder and constructs a PutEventsResultEntry.
Trait Implementations§
source§impl Clone for PutEventsResultEntryBuilder
impl Clone for PutEventsResultEntryBuilder
source§fn clone(&self) -> PutEventsResultEntryBuilder
fn clone(&self) -> PutEventsResultEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutEventsResultEntryBuilder
impl Debug for PutEventsResultEntryBuilder
source§impl Default for PutEventsResultEntryBuilder
impl Default for PutEventsResultEntryBuilder
source§fn default() -> PutEventsResultEntryBuilder
fn default() -> PutEventsResultEntryBuilder
source§impl PartialEq for PutEventsResultEntryBuilder
impl PartialEq for PutEventsResultEntryBuilder
source§fn eq(&self, other: &PutEventsResultEntryBuilder) -> bool
fn eq(&self, other: &PutEventsResultEntryBuilder) -> bool
self and other values to be equal, and is used
by ==.