Class Network

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

@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 Network extends Object
Network
  • Field Details

  • Constructor Details

    • Network

      public Network()
  • 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 Network
    • fromJson

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

      public Network created(OffsetDateTime created)
    • getCreated

      @Nullable @Valid public @Valid OffsetDateTime getCreated()
      Created contains the timestamp when this network was created.
      Returns:
      created
    • setCreated

      public void setCreated(OffsetDateTime created)
    • dnsEnabled

      public Network dnsEnabled(Boolean dnsEnabled)
    • getDnsEnabled

      @Nullable public Boolean getDnsEnabled()
      DNSEnabled is whether name resolution is active for container on this Network. Only supported with the bridge driver.
      Returns:
      dnsEnabled
    • setDnsEnabled

      public void setDnsEnabled(Boolean dnsEnabled)
    • driver

      public Network driver(String driver)
    • getDriver

      @Nullable public String getDriver()
      Driver for this Network, e.g. bridge, macvlan...
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • id

      public Network id(String id)
    • getId

      @Nullable public String getId()
      ID of the Network.
      Returns:
      id
    • setId

      public void setId(String id)
    • internal

      public Network internal(Boolean internal)
    • getInternal

      @Nullable public Boolean getInternal()
      Internal is whether the Network should not have external routes to public or other Networks.
      Returns:
      internal
    • setInternal

      public void setInternal(Boolean internal)
    • ipamOptions

      public Network ipamOptions(Map<String,String> ipamOptions)
    • putIpamOptionsItem

      public Network putIpamOptionsItem(String key, String ipamOptionsItem)
    • getIpamOptions

      @Nullable public Map<String,String> getIpamOptions()
      IPAMOptions contains options used for the ip assignment.
      Returns:
      ipamOptions
    • setIpamOptions

      public void setIpamOptions(Map<String,String> ipamOptions)
    • ipv6Enabled

      public Network ipv6Enabled(Boolean ipv6Enabled)
    • getIpv6Enabled

      @Nullable public Boolean getIpv6Enabled()
      IPv6Enabled if set to true an ipv6 subnet should be created for this net.
      Returns:
      ipv6Enabled
    • setIpv6Enabled

      public void setIpv6Enabled(Boolean ipv6Enabled)
    • labels

      public Network labels(Map<String,String> labels)
    • putLabelsItem

      public Network putLabelsItem(String key, String labelsItem)
    • getLabels

      @Nullable public Map<String,String> getLabels()
      Labels is a set of key-value labels that have been applied to the Network.
      Returns:
      labels
    • setLabels

      public void setLabels(Map<String,String> labels)
    • name

      public Network name(String name)
    • getName

      @Nullable public String getName()
      Name of the Network.
      Returns:
      name
    • setName

      public void setName(String name)
    • networkDnsServers

      public Network networkDnsServers(List<String> networkDnsServers)
    • addNetworkDnsServersItem

      public Network addNetworkDnsServersItem(String networkDnsServersItem)
    • getNetworkDnsServers

      @Nullable public List<String> getNetworkDnsServers()
      List of custom DNS server for podman's DNS resolver at network level, all the containers attached to this network will consider resolvers configured at network level.
      Returns:
      networkDnsServers
    • setNetworkDnsServers

      public void setNetworkDnsServers(List<String> networkDnsServers)
    • networkInterface

      public Network networkInterface(String networkInterface)
    • getNetworkInterface

      @Nullable public String getNetworkInterface()
      NetworkInterface is the network interface name on the host.
      Returns:
      networkInterface
    • setNetworkInterface

      public void setNetworkInterface(String networkInterface)
    • options

      public Network options(Map<String,String> options)
    • putOptionsItem

      public Network putOptionsItem(String key, String optionsItem)
    • getOptions

      @Nullable public Map<String,String> getOptions()
      Options is a set of key-value options that have been applied to the Network.
      Returns:
      options
    • setOptions

      public void setOptions(Map<String,String> options)
    • routes

      public Network routes(List<@Valid Route> routes)
    • addRoutesItem

      public Network addRoutesItem(Route routesItem)
    • getRoutes

      @Nullable @Valid public @Valid List<@Valid Route> getRoutes()
      Routes to use for this network.
      Returns:
      routes
    • setRoutes

      public void setRoutes(List<@Valid Route> routes)
    • subnets

      public Network subnets(List<@Valid Subnet> subnets)
    • addSubnetsItem

      public Network addSubnetsItem(Subnet subnetsItem)
    • getSubnets

      @Nullable @Valid public @Valid List<@Valid Subnet> getSubnets()
      Subnets to use for this network.
      Returns:
      subnets
    • setSubnets

      public void setSubnets(List<@Valid Subnet> subnets)
    • 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 Network to an JSON string
      Returns:
      JSON string