Struct aws_sdk_cloudwatchlogs::operation::put_log_events::builders::PutLogEventsInputBuilder
source · #[non_exhaustive]pub struct PutLogEventsInputBuilder { /* private fields */ }
Expand description
A builder for PutLogEventsInput
.
Implementations§
source§impl PutLogEventsInputBuilder
impl PutLogEventsInputBuilder
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group.
This field is required.sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the log group.
sourcepub fn log_stream_name(self, input: impl Into<String>) -> Self
pub fn log_stream_name(self, input: impl Into<String>) -> Self
The name of the log stream.
This field is required.sourcepub fn set_log_stream_name(self, input: Option<String>) -> Self
pub fn set_log_stream_name(self, input: Option<String>) -> Self
The name of the log stream.
sourcepub fn get_log_stream_name(&self) -> &Option<String>
pub fn get_log_stream_name(&self) -> &Option<String>
The name of the log stream.
sourcepub fn log_events(self, input: InputLogEvent) -> Self
pub fn log_events(self, input: InputLogEvent) -> Self
Appends an item to log_events
.
To override the contents of this collection use set_log_events
.
The log events.
sourcepub fn set_log_events(self, input: Option<Vec<InputLogEvent>>) -> Self
pub fn set_log_events(self, input: Option<Vec<InputLogEvent>>) -> Self
The log events.
sourcepub fn get_log_events(&self) -> &Option<Vec<InputLogEvent>>
pub fn get_log_events(&self) -> &Option<Vec<InputLogEvent>>
The log events.
sourcepub fn sequence_token(self, input: impl Into<String>) -> Self
pub fn sequence_token(self, input: impl Into<String>) -> Self
The sequence token obtained from the response of the previous PutLogEvents
call.
The sequenceToken
parameter is now ignored in PutLogEvents
actions. PutLogEvents
actions are now accepted and never return InvalidSequenceTokenException
or DataAlreadyAcceptedException
even if the sequence token is not valid.
sourcepub fn set_sequence_token(self, input: Option<String>) -> Self
pub fn set_sequence_token(self, input: Option<String>) -> Self
The sequence token obtained from the response of the previous PutLogEvents
call.
The sequenceToken
parameter is now ignored in PutLogEvents
actions. PutLogEvents
actions are now accepted and never return InvalidSequenceTokenException
or DataAlreadyAcceptedException
even if the sequence token is not valid.
sourcepub fn get_sequence_token(&self) -> &Option<String>
pub fn get_sequence_token(&self) -> &Option<String>
The sequence token obtained from the response of the previous PutLogEvents
call.
The sequenceToken
parameter is now ignored in PutLogEvents
actions. PutLogEvents
actions are now accepted and never return InvalidSequenceTokenException
or DataAlreadyAcceptedException
even if the sequence token is not valid.
sourcepub fn build(self) -> Result<PutLogEventsInput, BuildError>
pub fn build(self) -> Result<PutLogEventsInput, BuildError>
Consumes the builder and constructs a PutLogEventsInput
.
source§impl PutLogEventsInputBuilder
impl PutLogEventsInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutLogEventsOutput, SdkError<PutLogEventsError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutLogEventsOutput, SdkError<PutLogEventsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutLogEventsInputBuilder
impl Clone for PutLogEventsInputBuilder
source§fn clone(&self) -> PutLogEventsInputBuilder
fn clone(&self) -> PutLogEventsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutLogEventsInputBuilder
impl Debug for PutLogEventsInputBuilder
source§impl Default for PutLogEventsInputBuilder
impl Default for PutLogEventsInputBuilder
source§fn default() -> PutLogEventsInputBuilder
fn default() -> PutLogEventsInputBuilder
source§impl PartialEq for PutLogEventsInputBuilder
impl PartialEq for PutLogEventsInputBuilder
source§fn eq(&self, other: &PutLogEventsInputBuilder) -> bool
fn eq(&self, other: &PutLogEventsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutLogEventsInputBuilder
Auto Trait Implementations§
impl Freeze for PutLogEventsInputBuilder
impl RefUnwindSafe for PutLogEventsInputBuilder
impl Send for PutLogEventsInputBuilder
impl Sync for PutLogEventsInputBuilder
impl Unpin for PutLogEventsInputBuilder
impl UnwindSafe for PutLogEventsInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more