com.spotify.docker.client.messages.AutoValue_Device Maven / Gradle / Ivy
package com.spotify.docker.client.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Device extends Device {
private final String pathOnHost;
private final String pathInContainer;
private final String cgroupPermissions;
AutoValue_Device(
String pathOnHost,
String pathInContainer,
String cgroupPermissions) {
if (pathOnHost == null) {
throw new NullPointerException("Null pathOnHost");
}
this.pathOnHost = pathOnHost;
if (pathInContainer == null) {
throw new NullPointerException("Null pathInContainer");
}
this.pathInContainer = pathInContainer;
if (cgroupPermissions == null) {
throw new NullPointerException("Null cgroupPermissions");
}
this.cgroupPermissions = cgroupPermissions;
}
@JsonProperty(value = "PathOnHost")
@Override
public String pathOnHost() {
return pathOnHost;
}
@JsonProperty(value = "PathInContainer")
@Override
public String pathInContainer() {
return pathInContainer;
}
@JsonProperty(value = "CgroupPermissions")
@Override
public String cgroupPermissions() {
return cgroupPermissions;
}
@Override
public String toString() {
return "Device{"
+ "pathOnHost=" + pathOnHost + ", "
+ "pathInContainer=" + pathInContainer + ", "
+ "cgroupPermissions=" + cgroupPermissions
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Device) {
Device that = (Device) o;
return (this.pathOnHost.equals(that.pathOnHost()))
&& (this.pathInContainer.equals(that.pathInContainer()))
&& (this.cgroupPermissions.equals(that.cgroupPermissions()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.pathOnHost.hashCode();
h *= 1000003;
h ^= this.pathInContainer.hashCode();
h *= 1000003;
h ^= this.cgroupPermissions.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy