@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LogStream extends Object implements Serializable, Cloneable, StructuredPojo
Represents a log stream, which is a sequence of log events from a single emitter of logs.
Constructor and Description |
---|
LogStream() |
Modifier and Type | Method and Description |
---|---|
LogStream |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the log stream.
|
Long |
getCreationTime()
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
Long |
getFirstEventTimestamp()
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
Long |
getLastEventTimestamp()
The time of the most recent log event in the log stream in CloudWatch Logs.
|
Long |
getLastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
String |
getLogStreamName()
The name of the log stream.
|
Long |
getStoredBytes()
Deprecated.
|
String |
getUploadSequenceToken()
The sequence token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
|
void |
setCreationTime(Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setLastEventTimestamp(Long lastEventTimestamp)
The time of the most recent log event in the log stream in CloudWatch Logs.
|
void |
setLastIngestionTime(Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream.
|
void |
setStoredBytes(Long storedBytes)
Deprecated.
|
void |
setUploadSequenceToken(String uploadSequenceToken)
The sequence token.
|
String |
toString()
Returns a string representation of this object.
|
LogStream |
withArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
|
LogStream |
withCreationTime(Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
LogStream |
withFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
LogStream |
withLastEventTimestamp(Long lastEventTimestamp)
The time of the most recent log event in the log stream in CloudWatch Logs.
|
LogStream |
withLastIngestionTime(Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
LogStream |
withLogStreamName(String logStreamName)
The name of the log stream.
|
LogStream |
withStoredBytes(Long storedBytes)
Deprecated.
|
LogStream |
withUploadSequenceToken(String uploadSequenceToken)
The sequence token.
|
public void setLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public String getLogStreamName()
The name of the log stream.
public LogStream withLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public void setCreationTime(Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public Long getCreationTime()
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withCreationTime(Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public void setFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
firstEventTimestamp
- The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public Long getFirstEventTimestamp()
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
firstEventTimestamp
- The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public void setLastEventTimestamp(Long lastEventTimestamp)
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.
lastEventTimestamp
- 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.public Long getLastEventTimestamp()
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.
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.public LogStream withLastEventTimestamp(Long lastEventTimestamp)
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.
lastEventTimestamp
- 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.public void setLastIngestionTime(Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
lastIngestionTime
- The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public Long getLastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withLastIngestionTime(Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
lastIngestionTime
- The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.public void setUploadSequenceToken(String uploadSequenceToken)
The sequence token.
uploadSequenceToken
- The sequence token.public String getUploadSequenceToken()
The sequence token.
public LogStream withUploadSequenceToken(String uploadSequenceToken)
The sequence token.
uploadSequenceToken
- The sequence token.public void setArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
arn
- The Amazon Resource Name (ARN) of the log stream.public String getArn()
The Amazon Resource Name (ARN) of the log stream.
public LogStream withArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
arn
- The Amazon Resource Name (ARN) of the log stream.@Deprecated public void setStoredBytes(Long storedBytes)
The number of bytes stored.
Important: On June 17, 2019, this parameter was deprecated 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.
storedBytes
- The number of bytes stored.
Important: On June 17, 2019, this parameter was deprecated 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.
@Deprecated public Long getStoredBytes()
The number of bytes stored.
Important: On June 17, 2019, this parameter was deprecated 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.
Important: On June 17, 2019, this parameter was deprecated 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.
@Deprecated public LogStream withStoredBytes(Long storedBytes)
The number of bytes stored.
Important: On June 17, 2019, this parameter was deprecated 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.
storedBytes
- The number of bytes stored.
Important: On June 17, 2019, this parameter was deprecated 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.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.