
org.jclouds.googlecomputeengine.domain.AutoValue_Instance_Scheduling 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 javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Instance_Scheduling extends Instance.Scheduling {
private final Instance.Scheduling.OnHostMaintenance onHostMaintenance;
private final boolean automaticRestart;
private final boolean preemptible;
AutoValue_Instance_Scheduling(
Instance.Scheduling.OnHostMaintenance onHostMaintenance,
boolean automaticRestart,
boolean preemptible) {
if (onHostMaintenance == null) {
throw new NullPointerException("Null onHostMaintenance");
}
this.onHostMaintenance = onHostMaintenance;
this.automaticRestart = automaticRestart;
this.preemptible = preemptible;
}
@Override
public Instance.Scheduling.OnHostMaintenance onHostMaintenance() {
return onHostMaintenance;
}
@Override
public boolean automaticRestart() {
return automaticRestart;
}
@Override
public boolean preemptible() {
return preemptible;
}
@Override
public String toString() {
return "Scheduling{"
+ "onHostMaintenance=" + onHostMaintenance + ", "
+ "automaticRestart=" + automaticRestart + ", "
+ "preemptible=" + preemptible
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Instance.Scheduling) {
Instance.Scheduling that = (Instance.Scheduling) o;
return (this.onHostMaintenance.equals(that.onHostMaintenance()))
&& (this.automaticRestart == that.automaticRestart())
&& (this.preemptible == that.preemptible());
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.onHostMaintenance.hashCode();
h *= 1000003;
h ^= this.automaticRestart ? 1231 : 1237;
h *= 1000003;
h ^= this.preemptible ? 1231 : 1237;
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy