public class LogStream
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the log stream.
|
java.lang.Long |
getCreationTime()
The creation time of the stream, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
java.lang.Long |
getFirstEventTimestamp()
The time of the first event, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
java.lang.Long |
getLastEventTimestamp()
the time of the most recent log event in the log stream in CloudWatch
Logs.
|
java.lang.Long |
getLastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1,
1970 00:00:00 UTC.
|
java.lang.String |
getLogStreamName()
The name of the log stream.
|
java.lang.Long |
getStoredBytes()
The number of bytes stored.
|
java.lang.String |
getUploadSequenceToken()
The sequence token.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log stream.
|
void |
setCreationTime(java.lang.Long creationTime)
The creation time of the stream, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
void |
setFirstEventTimestamp(java.lang.Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
void |
setLastEventTimestamp(java.lang.Long lastEventTimestamp)
the time of the most recent log event in the log stream in CloudWatch
Logs.
|
void |
setLastIngestionTime(java.lang.Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1,
1970 00:00:00 UTC.
|
void |
setLogStreamName(java.lang.String logStreamName)
The name of the log stream.
|
void |
setStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
|
void |
setUploadSequenceToken(java.lang.String uploadSequenceToken)
The sequence token.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LogStream |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log stream.
|
LogStream |
withCreationTime(java.lang.Long creationTime)
The creation time of the stream, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
LogStream |
withFirstEventTimestamp(java.lang.Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds
after Jan 1, 1970 00:00:00 UTC.
|
LogStream |
withLastEventTimestamp(java.lang.Long lastEventTimestamp)
the time of the most recent log event in the log stream in CloudWatch
Logs.
|
LogStream |
withLastIngestionTime(java.lang.Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1,
1970 00:00:00 UTC.
|
LogStream |
withLogStreamName(java.lang.String logStreamName)
The name of the log stream.
|
LogStream |
withStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
|
LogStream |
withUploadSequenceToken(java.lang.String uploadSequenceToken)
The sequence token.
|
public java.lang.String getLogStreamName()
The name of the log stream.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
The name of the log stream.
public void setLogStreamName(java.lang.String logStreamName)
The name of the log stream.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The name of the log stream.
public LogStream withLogStreamName(java.lang.String logStreamName)
The name of the log stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The name of the log stream.
public java.lang.Long getCreationTime()
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setCreationTime(java.lang.Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
creationTime
- The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withCreationTime(java.lang.Long creationTime)
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
creationTime
- The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.Long getFirstEventTimestamp()
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setFirstEventTimestamp(java.lang.Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
firstEventTimestamp
- The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withFirstEventTimestamp(java.lang.Long firstEventTimestamp)
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
firstEventTimestamp
- The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
Constraints:
Range: 0 -
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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
public void setLastEventTimestamp(java.lang.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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
Constraints:
Range: 0 -
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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
public LogStream withLastEventTimestamp(java.lang.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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
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. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.
public java.lang.Long getLastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setLastIngestionTime(java.lang.Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
lastIngestionTime
- The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogStream withLastIngestionTime(java.lang.Long lastIngestionTime)
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
lastIngestionTime
- The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.String getUploadSequenceToken()
The sequence token.
Constraints:
Length: 1 -
The sequence token.
public void setUploadSequenceToken(java.lang.String uploadSequenceToken)
The sequence token.
Constraints:
Length: 1 -
uploadSequenceToken
- The sequence token.
public LogStream withUploadSequenceToken(java.lang.String uploadSequenceToken)
The sequence token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
uploadSequenceToken
- The sequence token.
public java.lang.String getArn()
The Amazon Resource Name (ARN) of the log stream.
The Amazon Resource Name (ARN) of the log stream.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log stream.
arn
- The Amazon Resource Name (ARN) of the log stream.
public LogStream withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log stream.
Returns a reference to this object so that method calls can be chained together.
arn
- The Amazon Resource Name (ARN) of the log stream.
public java.lang.Long getStoredBytes()
The number of bytes stored.
Constraints:
Range: 0 -
The number of bytes stored.
public void setStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
Constraints:
Range: 0 -
storedBytes
- The number of bytes stored.
public LogStream withStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
storedBytes
- The number of bytes stored.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.