
org.jclouds.googlecloudstorage.domain.templates.AutoValue_ObjectAccessControlsTemplate 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.googlecloudstorage.domain.templates;
import javax.annotation.Generated;
import org.jclouds.googlecloudstorage.domain.DomainResourceReferences;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ObjectAccessControlsTemplate extends ObjectAccessControlsTemplate {
private final String entity;
private final DomainResourceReferences.ObjectRole role;
AutoValue_ObjectAccessControlsTemplate(
String entity,
DomainResourceReferences.ObjectRole role) {
if (entity == null) {
throw new NullPointerException("Null entity");
}
this.entity = entity;
if (role == null) {
throw new NullPointerException("Null role");
}
this.role = role;
}
@Override
public String entity() {
return entity;
}
@Override
public DomainResourceReferences.ObjectRole role() {
return role;
}
@Override
public String toString() {
return "ObjectAccessControlsTemplate{"
+ "entity=" + entity + ", "
+ "role=" + role
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ObjectAccessControlsTemplate) {
ObjectAccessControlsTemplate that = (ObjectAccessControlsTemplate) o;
return (this.entity.equals(that.entity()))
&& (this.role.equals(that.role()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.entity.hashCode();
h *= 1000003;
h ^= this.role.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy