Struct aws_sdk_cloudwatchlogs::types::builders::LogStreamBuilder
source · #[non_exhaustive]pub struct LogStreamBuilder { /* private fields */ }
Expand description
A builder for LogStream
.
Implementations§
source§impl LogStreamBuilder
impl LogStreamBuilder
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.
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 creation_time(self, input: i64) -> Self
pub fn creation_time(self, input: i64) -> Self
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_creation_time(self, input: Option<i64>) -> Self
pub fn set_creation_time(self, input: Option<i64>) -> Self
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn get_creation_time(&self) -> &Option<i64>
pub fn get_creation_time(&self) -> &Option<i64>
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn first_event_timestamp(self, input: i64) -> Self
pub fn first_event_timestamp(self, input: i64) -> Self
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn set_first_event_timestamp(self, input: Option<i64>) -> Self
pub fn set_first_event_timestamp(self, input: Option<i64>) -> Self
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn get_first_event_timestamp(&self) -> &Option<i64>
pub fn get_first_event_timestamp(&self) -> &Option<i64>
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
sourcepub fn last_event_timestamp(self, input: i64) -> Self
pub fn last_event_timestamp(self, input: i64) -> Self
The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. The lastEventTime
value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.
sourcepub fn set_last_event_timestamp(self, input: Option<i64>) -> Self
pub fn set_last_event_timestamp(self, input: Option<i64>) -> Self
The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. The lastEventTime
value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.
sourcepub fn get_last_event_timestamp(&self) -> &Option<i64>
pub fn get_last_event_timestamp(&self) -> &Option<i64>
The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. The lastEventTime
value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.
sourcepub fn last_ingestion_time(self, input: i64) -> Self
pub fn last_ingestion_time(self, input: i64) -> Self
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
The lastIngestionTime
value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.
sourcepub fn set_last_ingestion_time(self, input: Option<i64>) -> Self
pub fn set_last_ingestion_time(self, input: Option<i64>) -> Self
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
The lastIngestionTime
value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.
sourcepub fn get_last_ingestion_time(&self) -> &Option<i64>
pub fn get_last_ingestion_time(&self) -> &Option<i64>
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
The lastIngestionTime
value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.
sourcepub fn upload_sequence_token(self, input: impl Into<String>) -> Self
pub fn upload_sequence_token(self, input: impl Into<String>) -> Self
The sequence token.
The sequence token is now ignored in PutLogEvents
actions. PutLogEvents
actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken
to use a PutLogEvents
action.
sourcepub fn set_upload_sequence_token(self, input: Option<String>) -> Self
pub fn set_upload_sequence_token(self, input: Option<String>) -> Self
The sequence token.
The sequence token is now ignored in PutLogEvents
actions. PutLogEvents
actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken
to use a PutLogEvents
action.
sourcepub fn get_upload_sequence_token(&self) -> &Option<String>
pub fn get_upload_sequence_token(&self) -> &Option<String>
The sequence token.
The sequence token is now ignored in PutLogEvents
actions. PutLogEvents
actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken
to use a PutLogEvents
action.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the log stream.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the log stream.
sourcepub fn stored_bytes(self, input: i64) -> Self
👎Deprecated: Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
pub fn stored_bytes(self, input: i64) -> Self
The number of bytes stored.
Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes
parameter for log groups is not affected.
sourcepub fn set_stored_bytes(self, input: Option<i64>) -> Self
👎Deprecated: Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
pub fn set_stored_bytes(self, input: Option<i64>) -> Self
The number of bytes stored.
Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes
parameter for log groups is not affected.
sourcepub fn get_stored_bytes(&self) -> &Option<i64>
👎Deprecated: Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
pub fn get_stored_bytes(&self) -> &Option<i64>
The number of bytes stored.
Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes
parameter for log groups is not affected.
Trait Implementations§
source§impl Clone for LogStreamBuilder
impl Clone for LogStreamBuilder
source§fn clone(&self) -> LogStreamBuilder
fn clone(&self) -> LogStreamBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LogStreamBuilder
impl Debug for LogStreamBuilder
source§impl Default for LogStreamBuilder
impl Default for LogStreamBuilder
source§fn default() -> LogStreamBuilder
fn default() -> LogStreamBuilder
source§impl PartialEq for LogStreamBuilder
impl PartialEq for LogStreamBuilder
source§fn eq(&self, other: &LogStreamBuilder) -> bool
fn eq(&self, other: &LogStreamBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LogStreamBuilder
Auto Trait Implementations§
impl Freeze for LogStreamBuilder
impl RefUnwindSafe for LogStreamBuilder
impl Send for LogStreamBuilder
impl Sync for LogStreamBuilder
impl Unpin for LogStreamBuilder
impl UnwindSafe for LogStreamBuilder
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