org.graylog.integrations.aws.$AutoValue_AWSPolicy Maven / Gradle / Ivy
package org.graylog.integrations.aws;
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_AWSPolicy extends AWSPolicy {
private final String version;
private final List statement;
$AutoValue_AWSPolicy(
String version,
List statement) {
if (version == null) {
throw new NullPointerException("Null version");
}
this.version = version;
if (statement == null) {
throw new NullPointerException("Null statement");
}
this.statement = statement;
}
@JsonProperty("Version")
@Override
public String version() {
return version;
}
@JsonProperty("Statement")
@Override
public List statement() {
return statement;
}
@Override
public String toString() {
return "AWSPolicy{"
+ "version=" + version + ", "
+ "statement=" + statement
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AWSPolicy) {
AWSPolicy that = (AWSPolicy) o;
return this.version.equals(that.version())
&& this.statement.equals(that.statement());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= version.hashCode();
h$ *= 1000003;
h$ ^= statement.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy