
org.jclouds.googlecloudstorage.domain.AutoValue_BucketAccessControls 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;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BucketAccessControls extends BucketAccessControls {
private final String kind;
private final String id;
private final String bucket;
private final String entity;
private final String entityId;
private final BucketAccessControls.Role role;
private final String email;
private final String domain;
private final ProjectTeam projectTeam;
AutoValue_BucketAccessControls(
String kind,
String id,
String bucket,
String entity,
@Nullable String entityId,
BucketAccessControls.Role role,
@Nullable String email,
@Nullable String domain,
@Nullable ProjectTeam projectTeam) {
if (kind == null) {
throw new NullPointerException("Null kind");
}
this.kind = kind;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (bucket == null) {
throw new NullPointerException("Null bucket");
}
this.bucket = bucket;
if (entity == null) {
throw new NullPointerException("Null entity");
}
this.entity = entity;
this.entityId = entityId;
if (role == null) {
throw new NullPointerException("Null role");
}
this.role = role;
this.email = email;
this.domain = domain;
this.projectTeam = projectTeam;
}
@Override
public String kind() {
return kind;
}
@Override
public String id() {
return id;
}
@Override
public String bucket() {
return bucket;
}
@Override
public String entity() {
return entity;
}
@Nullable
@Override
public String entityId() {
return entityId;
}
@Override
public BucketAccessControls.Role role() {
return role;
}
@Nullable
@Override
public String email() {
return email;
}
@Nullable
@Override
public String domain() {
return domain;
}
@Nullable
@Override
public ProjectTeam projectTeam() {
return projectTeam;
}
@Override
public String toString() {
return "BucketAccessControls{"
+ "kind=" + kind + ", "
+ "id=" + id + ", "
+ "bucket=" + bucket + ", "
+ "entity=" + entity + ", "
+ "entityId=" + entityId + ", "
+ "role=" + role + ", "
+ "email=" + email + ", "
+ "domain=" + domain + ", "
+ "projectTeam=" + projectTeam
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BucketAccessControls) {
BucketAccessControls that = (BucketAccessControls) o;
return (this.kind.equals(that.kind()))
&& (this.id.equals(that.id()))
&& (this.bucket.equals(that.bucket()))
&& (this.entity.equals(that.entity()))
&& ((this.entityId == null) ? (that.entityId() == null) : this.entityId.equals(that.entityId()))
&& (this.role.equals(that.role()))
&& ((this.email == null) ? (that.email() == null) : this.email.equals(that.email()))
&& ((this.domain == null) ? (that.domain() == null) : this.domain.equals(that.domain()))
&& ((this.projectTeam == null) ? (that.projectTeam() == null) : this.projectTeam.equals(that.projectTeam()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.kind.hashCode();
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.bucket.hashCode();
h *= 1000003;
h ^= this.entity.hashCode();
h *= 1000003;
h ^= (entityId == null) ? 0 : this.entityId.hashCode();
h *= 1000003;
h ^= this.role.hashCode();
h *= 1000003;
h ^= (email == null) ? 0 : this.email.hashCode();
h *= 1000003;
h ^= (domain == null) ? 0 : this.domain.hashCode();
h *= 1000003;
h ^= (projectTeam == null) ? 0 : this.projectTeam.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy