public class InputLogEvent extends Object implements Serializable
A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that Amazon CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.
Constructor and Description |
---|
InputLogEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getMessage()
Returns the value of the Message property for this object.
|
Long |
getTimestamp()
A point in time expressed as the number milliseconds since Jan 1, 1970
00:00:00 UTC.
|
int |
hashCode() |
void |
setMessage(String message)
Sets the value of the Message property for this object.
|
void |
setTimestamp(Long timestamp)
A point in time expressed as the number milliseconds since Jan 1, 1970
00:00:00 UTC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InputLogEvent |
withMessage(String message)
Sets the value of the Message property for this object.
|
InputLogEvent |
withTimestamp(Long timestamp)
A point in time expressed as the number milliseconds since Jan 1, 1970
00:00:00 UTC.
|
public Long getTimestamp()
Constraints:
Range: 0 -
public void setTimestamp(Long timestamp)
Constraints:
Range: 0 -
timestamp
- A point in time expressed as the number milliseconds since Jan 1, 1970
00:00:00 UTC.public InputLogEvent withTimestamp(Long timestamp)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
timestamp
- A point in time expressed as the number milliseconds since Jan 1, 1970
00:00:00 UTC.public String getMessage()
Constraints:
Length: 1 - 32768
public void setMessage(String message)
Constraints:
Length: 1 - 32768
message
- The new value for the Message property for this object.public InputLogEvent withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32768
message
- The new value for the Message property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.