@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LogEvent extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains the information for one sample log event that is associated with an anomaly found by a log anomaly detector.
Constructor and Description |
---|
LogEvent() |
Modifier and Type | Method and Description |
---|---|
LogEvent |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
The message content of the log event.
|
Long |
getTimestamp()
The time stamp of the log event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMessage(String message)
The message content of the log event.
|
void |
setTimestamp(Long timestamp)
The time stamp of the log event.
|
String |
toString()
Returns a string representation of this object.
|
LogEvent |
withMessage(String message)
The message content of the log event.
|
LogEvent |
withTimestamp(Long timestamp)
The time stamp of the log event.
|
public void setTimestamp(Long timestamp)
The time stamp of the log event.
timestamp
- The time stamp of the log event.public Long getTimestamp()
The time stamp of the log event.
public LogEvent withTimestamp(Long timestamp)
The time stamp of the log event.
timestamp
- The time stamp of the log event.public void setMessage(String message)
The message content of the log event.
message
- The message content of the log event.public String getMessage()
The message content of the log event.
public LogEvent withMessage(String message)
The message content of the log event.
message
- The message content of the log event.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.