com.spotify.styx.model.AutoValue_ExecutionDescription Maven / Gradle / Ivy
package com.spotify.styx.model;
import java.util.List;
import java.util.Optional;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExecutionDescription extends ExecutionDescription {
private final String dockerImage;
private final List dockerArgs;
private final Optional secret;
private final Optional commitSha;
AutoValue_ExecutionDescription(
String dockerImage,
List dockerArgs,
Optional secret,
Optional commitSha) {
if (dockerImage == null) {
throw new NullPointerException("Null dockerImage");
}
this.dockerImage = dockerImage;
if (dockerArgs == null) {
throw new NullPointerException("Null dockerArgs");
}
this.dockerArgs = dockerArgs;
if (secret == null) {
throw new NullPointerException("Null secret");
}
this.secret = secret;
if (commitSha == null) {
throw new NullPointerException("Null commitSha");
}
this.commitSha = commitSha;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public String dockerImage() {
return dockerImage;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public List dockerArgs() {
return dockerArgs;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public Optional secret() {
return secret;
}
@com.fasterxml.jackson.annotation.JsonProperty
@Override
public Optional commitSha() {
return commitSha;
}
@Override
public String toString() {
return "ExecutionDescription{"
+ "dockerImage=" + dockerImage + ", "
+ "dockerArgs=" + dockerArgs + ", "
+ "secret=" + secret + ", "
+ "commitSha=" + commitSha
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExecutionDescription) {
ExecutionDescription that = (ExecutionDescription) o;
return (this.dockerImage.equals(that.dockerImage()))
&& (this.dockerArgs.equals(that.dockerArgs()))
&& (this.secret.equals(that.secret()))
&& (this.commitSha.equals(that.commitSha()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= dockerImage.hashCode();
h *= 1000003;
h ^= dockerArgs.hashCode();
h *= 1000003;
h ^= secret.hashCode();
h *= 1000003;
h ^= commitSha.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy