org.graylog.integrations.aws.cloudwatch.$AutoValue_CloudWatchLogEvent Maven / Gradle / Ivy
package org.graylog.integrations.aws.cloudwatch;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_CloudWatchLogEvent extends CloudWatchLogEvent {
private final String id;
private final long timestamp;
private final String message;
$AutoValue_CloudWatchLogEvent(
String id,
long timestamp,
String message) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
this.timestamp = timestamp;
if (message == null) {
throw new NullPointerException("Null message");
}
this.message = message;
}
@JsonProperty("id")
@Override
public String id() {
return id;
}
@JsonProperty("timestamp")
@Override
public long timestamp() {
return timestamp;
}
@JsonProperty("message")
@Override
public String message() {
return message;
}
@Override
public String toString() {
return "CloudWatchLogEvent{"
+ "id=" + id + ", "
+ "timestamp=" + timestamp + ", "
+ "message=" + message
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CloudWatchLogEvent) {
CloudWatchLogEvent that = (CloudWatchLogEvent) o;
return this.id.equals(that.id())
&& this.timestamp == that.timestamp()
&& this.message.equals(that.message());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= (int) ((timestamp >>> 32) ^ timestamp);
h$ *= 1000003;
h$ ^= message.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy