
org.jclouds.googlecomputeengine.domain.AutoValue_Operation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-compute-engine Show documentation
Show all versions of google-compute-engine Show documentation
jclouds components to access GoogleCompute
The newest version!
package org.jclouds.googlecomputeengine.domain;
import java.net.URI;
import java.util.Date;
import java.util.List;
import javax.annotation.processing.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Operation extends Operation {
private final String id;
private final Date creationTimestamp;
private final URI selfLink;
private final String name;
private final String description;
private final URI targetLink;
private final String targetId;
private final String clientOperationId;
private final Operation.Status status;
private final String statusMessage;
private final String user;
private final Integer progress;
private final Date insertTime;
private final Date startTime;
private final Date endTime;
private final Integer httpErrorStatusCode;
private final String httpErrorMessage;
private final String operationType;
private final Operation.Error error;
private final List warnings;
private final URI region;
private final URI zone;
AutoValue_Operation(
String id,
@Nullable Date creationTimestamp,
URI selfLink,
String name,
@Nullable String description,
URI targetLink,
@Nullable String targetId,
@Nullable String clientOperationId,
Operation.Status status,
@Nullable String statusMessage,
@Nullable String user,
@Nullable Integer progress,
Date insertTime,
@Nullable Date startTime,
@Nullable Date endTime,
@Nullable Integer httpErrorStatusCode,
@Nullable String httpErrorMessage,
String operationType,
Operation.Error error,
@Nullable List warnings,
@Nullable URI region,
@Nullable URI zone) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
this.creationTimestamp = creationTimestamp;
if (selfLink == null) {
throw new NullPointerException("Null selfLink");
}
this.selfLink = selfLink;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.description = description;
if (targetLink == null) {
throw new NullPointerException("Null targetLink");
}
this.targetLink = targetLink;
this.targetId = targetId;
this.clientOperationId = clientOperationId;
if (status == null) {
throw new NullPointerException("Null status");
}
this.status = status;
this.statusMessage = statusMessage;
this.user = user;
this.progress = progress;
if (insertTime == null) {
throw new NullPointerException("Null insertTime");
}
this.insertTime = insertTime;
this.startTime = startTime;
this.endTime = endTime;
this.httpErrorStatusCode = httpErrorStatusCode;
this.httpErrorMessage = httpErrorMessage;
if (operationType == null) {
throw new NullPointerException("Null operationType");
}
this.operationType = operationType;
if (error == null) {
throw new NullPointerException("Null error");
}
this.error = error;
this.warnings = warnings;
this.region = region;
this.zone = zone;
}
@Override
public String id() {
return id;
}
@Nullable
@Override
public Date creationTimestamp() {
return creationTimestamp;
}
@Override
public URI selfLink() {
return selfLink;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public URI targetLink() {
return targetLink;
}
@Nullable
@Override
public String targetId() {
return targetId;
}
@Nullable
@Override
public String clientOperationId() {
return clientOperationId;
}
@Override
public Operation.Status status() {
return status;
}
@Nullable
@Override
public String statusMessage() {
return statusMessage;
}
@Nullable
@Override
public String user() {
return user;
}
@Nullable
@Override
public Integer progress() {
return progress;
}
@Override
public Date insertTime() {
return insertTime;
}
@Nullable
@Override
public Date startTime() {
return startTime;
}
@Nullable
@Override
public Date endTime() {
return endTime;
}
@Nullable
@Override
public Integer httpErrorStatusCode() {
return httpErrorStatusCode;
}
@Nullable
@Override
public String httpErrorMessage() {
return httpErrorMessage;
}
@Override
public String operationType() {
return operationType;
}
@Override
public Operation.Error error() {
return error;
}
@Nullable
@Override
public List warnings() {
return warnings;
}
@Nullable
@Override
public URI region() {
return region;
}
@Nullable
@Override
public URI zone() {
return zone;
}
@Override
public String toString() {
return "Operation{"
+ "id=" + id + ", "
+ "creationTimestamp=" + creationTimestamp + ", "
+ "selfLink=" + selfLink + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "targetLink=" + targetLink + ", "
+ "targetId=" + targetId + ", "
+ "clientOperationId=" + clientOperationId + ", "
+ "status=" + status + ", "
+ "statusMessage=" + statusMessage + ", "
+ "user=" + user + ", "
+ "progress=" + progress + ", "
+ "insertTime=" + insertTime + ", "
+ "startTime=" + startTime + ", "
+ "endTime=" + endTime + ", "
+ "httpErrorStatusCode=" + httpErrorStatusCode + ", "
+ "httpErrorMessage=" + httpErrorMessage + ", "
+ "operationType=" + operationType + ", "
+ "error=" + error + ", "
+ "warnings=" + warnings + ", "
+ "region=" + region + ", "
+ "zone=" + zone
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Operation) {
Operation that = (Operation) o;
return (this.id.equals(that.id()))
&& ((this.creationTimestamp == null) ? (that.creationTimestamp() == null) : this.creationTimestamp.equals(that.creationTimestamp()))
&& (this.selfLink.equals(that.selfLink()))
&& (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.targetLink.equals(that.targetLink()))
&& ((this.targetId == null) ? (that.targetId() == null) : this.targetId.equals(that.targetId()))
&& ((this.clientOperationId == null) ? (that.clientOperationId() == null) : this.clientOperationId.equals(that.clientOperationId()))
&& (this.status.equals(that.status()))
&& ((this.statusMessage == null) ? (that.statusMessage() == null) : this.statusMessage.equals(that.statusMessage()))
&& ((this.user == null) ? (that.user() == null) : this.user.equals(that.user()))
&& ((this.progress == null) ? (that.progress() == null) : this.progress.equals(that.progress()))
&& (this.insertTime.equals(that.insertTime()))
&& ((this.startTime == null) ? (that.startTime() == null) : this.startTime.equals(that.startTime()))
&& ((this.endTime == null) ? (that.endTime() == null) : this.endTime.equals(that.endTime()))
&& ((this.httpErrorStatusCode == null) ? (that.httpErrorStatusCode() == null) : this.httpErrorStatusCode.equals(that.httpErrorStatusCode()))
&& ((this.httpErrorMessage == null) ? (that.httpErrorMessage() == null) : this.httpErrorMessage.equals(that.httpErrorMessage()))
&& (this.operationType.equals(that.operationType()))
&& (this.error.equals(that.error()))
&& ((this.warnings == null) ? (that.warnings() == null) : this.warnings.equals(that.warnings()))
&& ((this.region == null) ? (that.region() == null) : this.region.equals(that.region()))
&& ((this.zone == null) ? (that.zone() == null) : this.zone.equals(that.zone()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= (creationTimestamp == null) ? 0 : creationTimestamp.hashCode();
h$ *= 1000003;
h$ ^= selfLink.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= targetLink.hashCode();
h$ *= 1000003;
h$ ^= (targetId == null) ? 0 : targetId.hashCode();
h$ *= 1000003;
h$ ^= (clientOperationId == null) ? 0 : clientOperationId.hashCode();
h$ *= 1000003;
h$ ^= status.hashCode();
h$ *= 1000003;
h$ ^= (statusMessage == null) ? 0 : statusMessage.hashCode();
h$ *= 1000003;
h$ ^= (user == null) ? 0 : user.hashCode();
h$ *= 1000003;
h$ ^= (progress == null) ? 0 : progress.hashCode();
h$ *= 1000003;
h$ ^= insertTime.hashCode();
h$ *= 1000003;
h$ ^= (startTime == null) ? 0 : startTime.hashCode();
h$ *= 1000003;
h$ ^= (endTime == null) ? 0 : endTime.hashCode();
h$ *= 1000003;
h$ ^= (httpErrorStatusCode == null) ? 0 : httpErrorStatusCode.hashCode();
h$ *= 1000003;
h$ ^= (httpErrorMessage == null) ? 0 : httpErrorMessage.hashCode();
h$ *= 1000003;
h$ ^= operationType.hashCode();
h$ *= 1000003;
h$ ^= error.hashCode();
h$ *= 1000003;
h$ ^= (warnings == null) ? 0 : warnings.hashCode();
h$ *= 1000003;
h$ ^= (region == null) ? 0 : region.hashCode();
h$ *= 1000003;
h$ ^= (zone == null) ? 0 : zone.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy