package com.github.dockerjava.api.command;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
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 javax.annotation.CheckForNull;
/**
* Part of {@link InspectImageResponse}
*
* @author Kanstantsin Shautsou
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class GraphDriver {
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
@JsonProperty("Name")
private String name;
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
@JsonProperty("Data")
private GraphData data;
/**
* @see #data
*/
@CheckForNull
public GraphData getData() {
return data;
}
/**
* @see #data
*/
public GraphDriver withData(GraphData data) {
this.data = data;
return this;
}
/**
* @see #name
*/
@CheckForNull
public String getName() {
return name;
}
/**
* @see #name
*/
public GraphDriver withName(String name) {
this.name = name;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}