
org.jclouds.aws.ec2.domain.AutoValue_InternetGatewayAttachment 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.aws.ec2.domain;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_InternetGatewayAttachment extends InternetGatewayAttachment {
private final InternetGatewayAttachment.State state;
private final String vpcId;
private AutoValue_InternetGatewayAttachment(
@Nullable InternetGatewayAttachment.State state,
@Nullable String vpcId) {
this.state = state;
this.vpcId = vpcId;
}
@Nullable
@Override
public InternetGatewayAttachment.State state() {
return state;
}
@Nullable
@Override
public String vpcId() {
return vpcId;
}
@Override
public String toString() {
return "InternetGatewayAttachment{"
+ "state=" + state + ", "
+ "vpcId=" + vpcId
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof InternetGatewayAttachment) {
InternetGatewayAttachment that = (InternetGatewayAttachment) o;
return ((this.state == null) ? (that.state() == null) : this.state.equals(that.state()))
&& ((this.vpcId == null) ? (that.vpcId() == null) : this.vpcId.equals(that.vpcId()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (state == null) ? 0 : this.state.hashCode();
h *= 1000003;
h ^= (vpcId == null) ? 0 : this.vpcId.hashCode();
return h;
}
static final class Builder extends InternetGatewayAttachment.Builder {
private InternetGatewayAttachment.State state;
private String vpcId;
Builder() {
}
@Override
public InternetGatewayAttachment.Builder state(@Nullable InternetGatewayAttachment.State state) {
this.state = state;
return this;
}
@Override
public InternetGatewayAttachment.Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
@Override
public InternetGatewayAttachment build() {
return new AutoValue_InternetGatewayAttachment(
this.state,
this.vpcId);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy