All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.maven.docker.access.NetworkCreateConfig Maven / Gradle / Ivy

There is a newer version: 0.45.0
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy