Class InputLogEvent
- java.lang.Object
-
- com.amazonaws.services.logs.model.InputLogEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InputLogEvent extends Object implements Serializable, Cloneable
A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InputLogEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputLogEvent
clone()
boolean
equals(Object obj)
String
getMessage()
Long
getTimestamp()
int
hashCode()
void
setMessage(String message)
void
setTimestamp(Long timestamp)
String
toString()
Returns a string representation of this object; useful for testing and debugging.InputLogEvent
withMessage(String message)
InputLogEvent
withTimestamp(Long timestamp)
-
-
-
Method Detail
-
setTimestamp
public void setTimestamp(Long timestamp)
- Parameters:
timestamp
-
-
getTimestamp
public Long getTimestamp()
- Returns:
-
withTimestamp
public InputLogEvent withTimestamp(Long timestamp)
- Parameters:
timestamp
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
- Parameters:
message
-
-
getMessage
public String getMessage()
- Returns:
-
withMessage
public InputLogEvent withMessage(String message)
- Parameters:
message
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InputLogEvent clone()
-
-