com.spotify.docker.client.messages.swarm.AutoValue_SecretCreateResponse Maven / Gradle / Ivy
package com.spotify.docker.client.messages.swarm;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SecretCreateResponse extends SecretCreateResponse {
private final String id;
AutoValue_SecretCreateResponse(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@JsonProperty(value = "ID")
@Override
public String id() {
return id;
}
@Override
public String toString() {
return "SecretCreateResponse{"
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SecretCreateResponse) {
SecretCreateResponse that = (SecretCreateResponse) o;
return (this.id.equals(that.id()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
return h;
}
}