org.graylog.security.shares.AutoValue_EntityShareRequest Maven / Gradle / Ivy
package org.graylog.security.shares;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
import java.util.Optional;
import javax.annotation.processing.Generated;
import org.graylog.grn.GRN;
import org.graylog.security.Capability;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EntityShareRequest extends EntityShareRequest {
private final Optional> selectedGranteeCapabilities;
AutoValue_EntityShareRequest(
Optional> selectedGranteeCapabilities) {
if (selectedGranteeCapabilities == null) {
throw new NullPointerException("Null selectedGranteeCapabilities");
}
this.selectedGranteeCapabilities = selectedGranteeCapabilities;
}
@JsonProperty("selected_grantee_capabilities")
@Override
public Optional> selectedGranteeCapabilities() {
return selectedGranteeCapabilities;
}
@Override
public String toString() {
return "EntityShareRequest{"
+ "selectedGranteeCapabilities=" + selectedGranteeCapabilities
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EntityShareRequest) {
EntityShareRequest that = (EntityShareRequest) o;
return this.selectedGranteeCapabilities.equals(that.selectedGranteeCapabilities());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= selectedGranteeCapabilities.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy