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