Class NetworkingConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.NetworkingConfig
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class NetworkingConfig extends Object implements Serializable
NetworkingConfig represents the container's networking configuration for each of its interfaces Carries the networking configs specified in the `docker run` and `docker network connect` commands
See Also:
  • Field Details

  • Constructor Details

    • NetworkingConfig

      public NetworkingConfig()
  • Method Details

    • endpointsConfig

      public NetworkingConfig endpointsConfig(Map<String,EndpointSettings> endpointsConfig)
    • putEndpointsConfigItem

      public NetworkingConfig putEndpointsConfigItem(String key, EndpointSettings endpointsConfigItem)
    • getEndpointsConfig

      @Nullable @Valid public @Valid Map<String,EndpointSettings> getEndpointsConfig()
      Get endpointsConfig
      Returns:
      endpointsConfig
    • setEndpointsConfig

      public void setEndpointsConfig(Map<String,EndpointSettings> endpointsConfig)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to NetworkingConfig
    • fromJson

      public static NetworkingConfig fromJson(String jsonString) throws IOException
      Create an instance of NetworkingConfig given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of NetworkingConfig
      Throws:
      IOException - if the JSON string is invalid with respect to NetworkingConfig
    • toJson

      public String toJson()
      Convert an instance of NetworkingConfig to an JSON string
      Returns:
      JSON string