io.fabric8.maven.docker.access.NetworkCreateConfig Maven / Gradle / Ivy
package io.fabric8.maven.docker.access;
import org.json.JSONObject;
public class NetworkCreateConfig {
final JSONObject createConfig = new JSONObject();
final String name;
public NetworkCreateConfig(String name) {
this.name = name;
createConfig.put("Name", name);
}
public String getName() {
return name;
}
/**
* Get JSON which is used for creating a network
*
* @return string representation for JSON representing creating a network
*/
public String toJson() {
return createConfig.toString();
}
}