
org.jclouds.googlecomputeengine.domain.AutoValue_Warning Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.jclouds.googlecomputeengine.domain;
import java.util.List;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Warning extends Warning {
private final String code;
private final String message;
private final List data;
AutoValue_Warning(
String code,
@Nullable String message,
List data) {
if (code == null) {
throw new NullPointerException("Null code");
}
this.code = code;
this.message = message;
if (data == null) {
throw new NullPointerException("Null data");
}
this.data = data;
}
@Override
public String code() {
return code;
}
@Nullable
@Override
public String message() {
return message;
}
@Override
public List data() {
return data;
}
@Override
public String toString() {
return "Warning{"
+ "code=" + code + ", "
+ "message=" + message + ", "
+ "data=" + data
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Warning) {
Warning that = (Warning) o;
return (this.code.equals(that.code()))
&& ((this.message == null) ? (that.message() == null) : this.message.equals(that.message()))
&& (this.data.equals(that.data()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.code.hashCode();
h *= 1000003;
h ^= (message == null) ? 0 : this.message.hashCode();
h *= 1000003;
h ^= this.data.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy