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