com.github.dockerjava.api.model.BlkioWeightDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;
import static org.apache.commons.lang.builder.ToStringStyle.SHORT_PREFIX_STYLE;
public class BlkioWeightDevice implements Serializable {
public static final long serialVersionUID = 1L;
@JsonProperty("Path")
private String path;
@JsonProperty("Weight")
private Integer weight;
public String getPath() {
return path;
}
public BlkioWeightDevice withPath(String path) {
this.path = path;
return this;
}
public Integer getWeight() {
return weight;
}
public BlkioWeightDevice withWeight(Integer weight) {
this.weight = weight;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, SHORT_PREFIX_STYLE);
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}