
org.jclouds.googlecomputeengine.domain.AutoValue_ForwardingRule 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 java.util.Date;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ForwardingRule extends ForwardingRule {
private final String id;
private final URI selfLink;
private final String name;
private final String description;
private final Date creationTimestamp;
private final URI region;
private final String ipAddress;
private final ForwardingRule.IPProtocol ipProtocol;
private final String portRange;
private final URI target;
AutoValue_ForwardingRule(
String id,
URI selfLink,
String name,
@Nullable String description,
Date creationTimestamp,
@Nullable URI region,
@Nullable String ipAddress,
ForwardingRule.IPProtocol ipProtocol,
@Nullable String portRange,
URI target) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
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 (creationTimestamp == null) {
throw new NullPointerException("Null creationTimestamp");
}
this.creationTimestamp = creationTimestamp;
this.region = region;
this.ipAddress = ipAddress;
if (ipProtocol == null) {
throw new NullPointerException("Null ipProtocol");
}
this.ipProtocol = ipProtocol;
this.portRange = portRange;
if (target == null) {
throw new NullPointerException("Null target");
}
this.target = target;
}
@Override
public String id() {
return id;
}
@Override
public URI selfLink() {
return selfLink;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public Date creationTimestamp() {
return creationTimestamp;
}
@Nullable
@Override
public URI region() {
return region;
}
@Nullable
@Override
public String ipAddress() {
return ipAddress;
}
@Override
public ForwardingRule.IPProtocol ipProtocol() {
return ipProtocol;
}
@Nullable
@Override
public String portRange() {
return portRange;
}
@Override
public URI target() {
return target;
}
@Override
public String toString() {
return "ForwardingRule{"
+ "id=" + id + ", "
+ "selfLink=" + selfLink + ", "
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "creationTimestamp=" + creationTimestamp + ", "
+ "region=" + region + ", "
+ "ipAddress=" + ipAddress + ", "
+ "ipProtocol=" + ipProtocol + ", "
+ "portRange=" + portRange + ", "
+ "target=" + target
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ForwardingRule) {
ForwardingRule that = (ForwardingRule) o;
return (this.id.equals(that.id()))
&& (this.selfLink.equals(that.selfLink()))
&& (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.creationTimestamp.equals(that.creationTimestamp()))
&& ((this.region == null) ? (that.region() == null) : this.region.equals(that.region()))
&& ((this.ipAddress == null) ? (that.ipAddress() == null) : this.ipAddress.equals(that.ipAddress()))
&& (this.ipProtocol.equals(that.ipProtocol()))
&& ((this.portRange == null) ? (that.portRange() == null) : this.portRange.equals(that.portRange()))
&& (this.target.equals(that.target()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.selfLink.hashCode();
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= this.creationTimestamp.hashCode();
h *= 1000003;
h ^= (region == null) ? 0 : this.region.hashCode();
h *= 1000003;
h ^= (ipAddress == null) ? 0 : this.ipAddress.hashCode();
h *= 1000003;
h ^= this.ipProtocol.hashCode();
h *= 1000003;
h ^= (portRange == null) ? 0 : this.portRange.hashCode();
h *= 1000003;
h ^= this.target.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy