public class LogStream extends Object implements Serializable, Cloneable
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.
|
Long |
getFirstEventTimestamp()
The time of the first event.
|
Long |
getLastEventTimestamp()
The time of the last event.
|
Long |
getLastIngestionTime()
The ingestion time.
|
String |
getLogStreamName()
The name of the log stream.
|
Long |
getStoredBytes()
The number of bytes stored.
|
String |
getUploadSequenceToken()
The sequence token.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
|
void |
setCreationTime(Long creationTime)
The creation time of the stream.
|
void |
setFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event.
|
void |
setLastEventTimestamp(Long lastEventTimestamp)
The time of the last event.
|
void |
setLastIngestionTime(Long lastIngestionTime)
The ingestion time.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream.
|
void |
setStoredBytes(Long storedBytes)
The number of bytes stored.
|
void |
setUploadSequenceToken(String uploadSequenceToken)
The sequence token.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LogStream |
withArn(String arn)
The Amazon Resource Name (ARN) of the log stream.
|
LogStream |
withCreationTime(Long creationTime)
The creation time of the stream.
|
LogStream |
withFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event.
|
LogStream |
withLastEventTimestamp(Long lastEventTimestamp)
The time of the last event.
|
LogStream |
withLastIngestionTime(Long lastIngestionTime)
The ingestion time.
|
LogStream |
withLogStreamName(String logStreamName)
The name of the log stream.
|
LogStream |
withStoredBytes(Long storedBytes)
The number of bytes stored.
|
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.
creationTime
- The creation time of the stream.public Long getCreationTime()
The creation time of the stream.
public LogStream withCreationTime(Long creationTime)
The creation time of the stream.
creationTime
- The creation time of the stream.public void setFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event.
firstEventTimestamp
- The time of the first event.public Long getFirstEventTimestamp()
The time of the first event.
public LogStream withFirstEventTimestamp(Long firstEventTimestamp)
The time of the first event.
firstEventTimestamp
- The time of the first event.public void setLastEventTimestamp(Long lastEventTimestamp)
The time of the last event.
lastEventTimestamp
- The time of the last event.public Long getLastEventTimestamp()
The time of the last event.
public LogStream withLastEventTimestamp(Long lastEventTimestamp)
The time of the last event.
lastEventTimestamp
- The time of the last event.public void setLastIngestionTime(Long lastIngestionTime)
The ingestion time.
lastIngestionTime
- The ingestion time.public Long getLastIngestionTime()
The ingestion time.
public LogStream withLastIngestionTime(Long lastIngestionTime)
The ingestion time.
lastIngestionTime
- The ingestion time.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.public void setStoredBytes(Long storedBytes)
The number of bytes stored.
storedBytes
- The number of bytes stored.public Long getStoredBytes()
The number of bytes stored.
public LogStream withStoredBytes(Long storedBytes)
The number of bytes stored.
storedBytes
- The number of bytes stored.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.