
org.jclouds.b2.domain.AutoValue_B2Error 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.b2.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_B2Error extends B2Error {
private final String code;
private final String message;
private final int status;
AutoValue_B2Error(
String code,
String message,
int status) {
if (code == null) {
throw new NullPointerException("Null code");
}
this.code = code;
if (message == null) {
throw new NullPointerException("Null message");
}
this.message = message;
this.status = status;
}
@Override
public String code() {
return code;
}
@Override
public String message() {
return message;
}
@Override
public int status() {
return status;
}
@Override
public String toString() {
return "B2Error{"
+ "code=" + code + ", "
+ "message=" + message + ", "
+ "status=" + status
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof B2Error) {
B2Error that = (B2Error) o;
return (this.code.equals(that.code()))
&& (this.message.equals(that.message()))
&& (this.status == that.status());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.code.hashCode();
h *= 1000003;
h ^= this.message.hashCode();
h *= 1000003;
h ^= this.status;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy