org.graylog2.shared.users.$AutoValue_ChangeUserRequest Maven / Gradle / Ivy
package org.graylog2.shared.users;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.graylog2.rest.models.users.requests.Startpage;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ChangeUserRequest extends ChangeUserRequest {
@Nullable
private final String email;
@Nullable
private final String firstName;
@Nullable
private final String lastName;
@Nullable
private final List permissions;
@Nullable
private final String timezone;
@Nullable
private final Startpage startpage;
@Nullable
private final Long sessionTimeoutMs;
@Nullable
private final List roles;
@Nullable
private final Boolean isServiceAccount;
$AutoValue_ChangeUserRequest(
@Nullable String email,
@Nullable String firstName,
@Nullable String lastName,
@Nullable List permissions,
@Nullable String timezone,
@Nullable Startpage startpage,
@Nullable Long sessionTimeoutMs,
@Nullable List roles,
@Nullable Boolean isServiceAccount) {
this.email = email;
this.firstName = firstName;
this.lastName = lastName;
this.permissions = permissions;
this.timezone = timezone;
this.startpage = startpage;
this.sessionTimeoutMs = sessionTimeoutMs;
this.roles = roles;
this.isServiceAccount = isServiceAccount;
}
@JsonProperty
@Nullable
@Override
public String email() {
return email;
}
@JsonProperty
@Nullable
@Override
public String firstName() {
return firstName;
}
@JsonProperty
@Nullable
@Override
public String lastName() {
return lastName;
}
@JsonProperty
@Nullable
@Override
public List permissions() {
return permissions;
}
@JsonProperty
@Nullable
@Override
public String timezone() {
return timezone;
}
@JsonProperty
@Nullable
@Override
public Startpage startpage() {
return startpage;
}
@JsonProperty
@Nullable
@Override
public Long sessionTimeoutMs() {
return sessionTimeoutMs;
}
@JsonProperty
@Nullable
@Override
public List roles() {
return roles;
}
@JsonProperty
@Nullable
@Override
public Boolean isServiceAccount() {
return isServiceAccount;
}
@Override
public String toString() {
return "ChangeUserRequest{"
+ "email=" + email + ", "
+ "firstName=" + firstName + ", "
+ "lastName=" + lastName + ", "
+ "permissions=" + permissions + ", "
+ "timezone=" + timezone + ", "
+ "startpage=" + startpage + ", "
+ "sessionTimeoutMs=" + sessionTimeoutMs + ", "
+ "roles=" + roles + ", "
+ "isServiceAccount=" + isServiceAccount
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ChangeUserRequest) {
ChangeUserRequest that = (ChangeUserRequest) o;
return (this.email == null ? that.email() == null : this.email.equals(that.email()))
&& (this.firstName == null ? that.firstName() == null : this.firstName.equals(that.firstName()))
&& (this.lastName == null ? that.lastName() == null : this.lastName.equals(that.lastName()))
&& (this.permissions == null ? that.permissions() == null : this.permissions.equals(that.permissions()))
&& (this.timezone == null ? that.timezone() == null : this.timezone.equals(that.timezone()))
&& (this.startpage == null ? that.startpage() == null : this.startpage.equals(that.startpage()))
&& (this.sessionTimeoutMs == null ? that.sessionTimeoutMs() == null : this.sessionTimeoutMs.equals(that.sessionTimeoutMs()))
&& (this.roles == null ? that.roles() == null : this.roles.equals(that.roles()))
&& (this.isServiceAccount == null ? that.isServiceAccount() == null : this.isServiceAccount.equals(that.isServiceAccount()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (email == null) ? 0 : email.hashCode();
h$ *= 1000003;
h$ ^= (firstName == null) ? 0 : firstName.hashCode();
h$ *= 1000003;
h$ ^= (lastName == null) ? 0 : lastName.hashCode();
h$ *= 1000003;
h$ ^= (permissions == null) ? 0 : permissions.hashCode();
h$ *= 1000003;
h$ ^= (timezone == null) ? 0 : timezone.hashCode();
h$ *= 1000003;
h$ ^= (startpage == null) ? 0 : startpage.hashCode();
h$ *= 1000003;
h$ ^= (sessionTimeoutMs == null) ? 0 : sessionTimeoutMs.hashCode();
h$ *= 1000003;
h$ ^= (roles == null) ? 0 : roles.hashCode();
h$ *= 1000003;
h$ ^= (isServiceAccount == null) ? 0 : isServiceAccount.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy