
org.jclouds.profitbricks.domain.AutoValue_ServiceFault_Details 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.profitbricks.domain;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ServiceFault_Details extends ServiceFault.Details {
private final ServiceFault.Details.FaultCode faultCode;
private final int httpCode;
private final String message;
private final int requestId;
private AutoValue_ServiceFault_Details(
ServiceFault.Details.FaultCode faultCode,
int httpCode,
String message,
int requestId) {
this.faultCode = faultCode;
this.httpCode = httpCode;
this.message = message;
this.requestId = requestId;
}
@Override
public ServiceFault.Details.FaultCode faultCode() {
return faultCode;
}
@Override
public int httpCode() {
return httpCode;
}
@Override
public String message() {
return message;
}
@Override
public int requestId() {
return requestId;
}
@Override
public String toString() {
return "Details{"
+ "faultCode=" + faultCode + ", "
+ "httpCode=" + httpCode + ", "
+ "message=" + message + ", "
+ "requestId=" + requestId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ServiceFault.Details) {
ServiceFault.Details that = (ServiceFault.Details) o;
return (this.faultCode.equals(that.faultCode()))
&& (this.httpCode == that.httpCode())
&& (this.message.equals(that.message()))
&& (this.requestId == that.requestId());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.faultCode.hashCode();
h *= 1000003;
h ^= this.httpCode;
h *= 1000003;
h ^= this.message.hashCode();
h *= 1000003;
h ^= this.requestId;
return h;
}
static final class Builder extends ServiceFault.Details.Builder {
private ServiceFault.Details.FaultCode faultCode;
private Integer httpCode;
private String message;
private Integer requestId;
Builder() {
}
@Override
public ServiceFault.Details.Builder faultCode(ServiceFault.Details.FaultCode faultCode) {
if (faultCode == null) {
throw new NullPointerException("Null faultCode");
}
this.faultCode = faultCode;
return this;
}
@Override
public ServiceFault.Details.Builder httpCode(int httpCode) {
this.httpCode = httpCode;
return this;
}
@Override
public ServiceFault.Details.Builder message(String message) {
if (message == null) {
throw new NullPointerException("Null message");
}
this.message = message;
return this;
}
@Override
public ServiceFault.Details.Builder requestId(int requestId) {
this.requestId = requestId;
return this;
}
@Override
public ServiceFault.Details build() {
String missing = "";
if (this.faultCode == null) {
missing += " faultCode";
}
if (this.httpCode == null) {
missing += " httpCode";
}
if (this.message == null) {
missing += " message";
}
if (this.requestId == null) {
missing += " requestId";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ServiceFault_Details(
this.faultCode,
this.httpCode,
this.message,
this.requestId);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy