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 com.google.gson.JsonObject;

public class NetworkCreateConfig {
    final JsonObject createConfig = new JsonObject();
    final String name;

    public NetworkCreateConfig(String name) {
        this.name = name;
        createConfig.addProperty("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