Class PerNetworkOptions

java.lang.Object
io.github.alersrt.pod4j.openapi.model.PerNetworkOptions

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class PerNetworkOptions extends Object
PerNetworkOptions
  • Field Details

  • Constructor Details

    • PerNetworkOptions

      public PerNetworkOptions()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to PerNetworkOptions
    • fromJson

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

      public PerNetworkOptions aliases(List<String> aliases)
    • addAliasesItem

      public PerNetworkOptions addAliasesItem(String aliasesItem)
    • getAliases

      @Nullable public List<String> getAliases()
      Aliases contains a list of names which the dns server should resolve to this container. Should only be set when DNSEnabled is true on the Network. If aliases are set but there is no dns support for this network the network interface implementation should ignore this and NOT error. Optional.
      Returns:
      aliases
    • setAliases

      public void setAliases(List<String> aliases)
    • interfaceName

      public PerNetworkOptions interfaceName(String interfaceName)
    • getInterfaceName

      @Nullable public String getInterfaceName()
      InterfaceName for this container. Required in the backend. Optional in the frontend. Will be filled with ethX (where X is a integer) when empty.
      Returns:
      interfaceName
    • setInterfaceName

      public void setInterfaceName(String interfaceName)
    • staticIps

      public PerNetworkOptions staticIps(List<String> staticIps)
    • addStaticIpsItem

      public PerNetworkOptions addStaticIpsItem(String staticIpsItem)
    • getStaticIps

      @Nullable public List<String> getStaticIps()
      StaticIPs for this container. Optional.
      Returns:
      staticIps
    • setStaticIps

      public void setStaticIps(List<String> staticIps)
    • staticMac

      public PerNetworkOptions staticMac(String staticMac)
    • getStaticMac

      @Nullable public String getStaticMac()
      StaticMac for this container. Optional.
      Returns:
      staticMac
    • setStaticMac

      public void setStaticMac(String staticMac)
    • 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
    • toJson

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