org.graylog.integrations.aws.$AutoValue_AWSPolicyStatement 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_AWSPolicyStatement extends AWSPolicyStatement {
private final String sid;
private final String effect;
private final List action;
private final String resource;
$AutoValue_AWSPolicyStatement(
String sid,
String effect,
List action,
String resource) {
if (sid == null) {
throw new NullPointerException("Null sid");
}
this.sid = sid;
if (effect == null) {
throw new NullPointerException("Null effect");
}
this.effect = effect;
if (action == null) {
throw new NullPointerException("Null action");
}
this.action = action;
if (resource == null) {
throw new NullPointerException("Null resource");
}
this.resource = resource;
}
@JsonProperty("Sid")
@Override
public String sid() {
return sid;
}
@JsonProperty("Effect")
@Override
public String effect() {
return effect;
}
@JsonProperty("Action")
@Override
public List action() {
return action;
}
@JsonProperty("Resource")
@Override
public String resource() {
return resource;
}
@Override
public String toString() {
return "AWSPolicyStatement{"
+ "sid=" + sid + ", "
+ "effect=" + effect + ", "
+ "action=" + action + ", "
+ "resource=" + resource
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AWSPolicyStatement) {
AWSPolicyStatement that = (AWSPolicyStatement) o;
return this.sid.equals(that.sid())
&& this.effect.equals(that.effect())
&& this.action.equals(that.action())
&& this.resource.equals(that.resource());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= sid.hashCode();
h$ *= 1000003;
h$ ^= effect.hashCode();
h$ *= 1000003;
h$ ^= action.hashCode();
h$ *= 1000003;
h$ ^= resource.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy