
org.jclouds.googlecomputeengine.domain.AutoValue_BackendService_Backend 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.net.URI;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BackendService_Backend extends BackendService.Backend {
private final String description;
private final URI group;
private final BackendService.Backend.BalancingModes balancingMode;
private final Float maxUtilization;
private final Integer maxRate;
private final Float maxRatePerInstance;
private final Float capacityScaler;
AutoValue_BackendService_Backend(
@Nullable String description,
URI group,
@Nullable BackendService.Backend.BalancingModes balancingMode,
@Nullable Float maxUtilization,
@Nullable Integer maxRate,
@Nullable Float maxRatePerInstance,
@Nullable Float capacityScaler) {
this.description = description;
if (group == null) {
throw new NullPointerException("Null group");
}
this.group = group;
this.balancingMode = balancingMode;
this.maxUtilization = maxUtilization;
this.maxRate = maxRate;
this.maxRatePerInstance = maxRatePerInstance;
this.capacityScaler = capacityScaler;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public URI group() {
return group;
}
@Nullable
@Override
public BackendService.Backend.BalancingModes balancingMode() {
return balancingMode;
}
@Nullable
@Override
public Float maxUtilization() {
return maxUtilization;
}
@Nullable
@Override
public Integer maxRate() {
return maxRate;
}
@Nullable
@Override
public Float maxRatePerInstance() {
return maxRatePerInstance;
}
@Nullable
@Override
public Float capacityScaler() {
return capacityScaler;
}
@Override
public String toString() {
return "Backend{"
+ "description=" + description + ", "
+ "group=" + group + ", "
+ "balancingMode=" + balancingMode + ", "
+ "maxUtilization=" + maxUtilization + ", "
+ "maxRate=" + maxRate + ", "
+ "maxRatePerInstance=" + maxRatePerInstance + ", "
+ "capacityScaler=" + capacityScaler
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BackendService.Backend) {
BackendService.Backend that = (BackendService.Backend) o;
return ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.group.equals(that.group()))
&& ((this.balancingMode == null) ? (that.balancingMode() == null) : this.balancingMode.equals(that.balancingMode()))
&& ((this.maxUtilization == null) ? (that.maxUtilization() == null) : this.maxUtilization.equals(that.maxUtilization()))
&& ((this.maxRate == null) ? (that.maxRate() == null) : this.maxRate.equals(that.maxRate()))
&& ((this.maxRatePerInstance == null) ? (that.maxRatePerInstance() == null) : this.maxRatePerInstance.equals(that.maxRatePerInstance()))
&& ((this.capacityScaler == null) ? (that.capacityScaler() == null) : this.capacityScaler.equals(that.capacityScaler()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= this.group.hashCode();
h *= 1000003;
h ^= (balancingMode == null) ? 0 : this.balancingMode.hashCode();
h *= 1000003;
h ^= (maxUtilization == null) ? 0 : this.maxUtilization.hashCode();
h *= 1000003;
h ^= (maxRate == null) ? 0 : this.maxRate.hashCode();
h *= 1000003;
h ^= (maxRatePerInstance == null) ? 0 : this.maxRatePerInstance.hashCode();
h *= 1000003;
h ^= (capacityScaler == null) ? 0 : this.capacityScaler.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy