blob: f94106cbf09d380e155ef023d756e54c3ebb5863 [file] [log] [blame]
package com.kpelykh.docker.client.model;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Configuration object for copy command.
* @author Victor Lyuboslavsky
*/
public class CopyConfig {
@JsonProperty("HostPath")
private String hostPath;
@JsonProperty("Resource")
private String resource;
/**
* Constructor.
*/
public CopyConfig() {
hostPath = ".";
}
/**
* Retrieves the 'resource' variable.
* @return the 'resource' variable value
*/
public String getResource() {
return resource;
}
/**
* Sets the 'resource' variable.
* @param resource the new 'resource' variable value to set
*/
public void setResource(String resource) {
this.resource = resource;
}
/**
* Retrieves the 'hostPath' variable.
* @return the 'hostPath' variable value
*/
public String getHostPath() {
return hostPath;
}
/**
* Sets the 'hostPath' variable.
* @param hostPath the new 'hostPath' variable value to set
*/
public void setHostPath(String hostPath) {
this.hostPath = hostPath;
}
@Override
public String toString() {
return "{\"HostPath\":\"" + hostPath + "\", \"Resource\":\"" + resource + "\"}";
}
}