Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions src/main/java/com/github/dockerjava/api/command/GraphDriver.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package com.github.dockerjava.api.command;

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}
*/
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 String data;


/**
* @see #data
*/
@CheckForNull
public String getData() {
return data;
}

/**
* @see #data
*/
public GraphDriver withData(String 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);
}
}
Loading