Class NetworkCreateLibpod

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

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

  • Constructor Details

    • NetworkCreateLibpod

      public NetworkCreateLibpod()
  • Method Details

    • created

      public NetworkCreateLibpod created(OffsetDateTime created)
    • getCreated

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

      public void setCreated(OffsetDateTime created)
    • dnsEnabled

      public NetworkCreateLibpod 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 NetworkCreateLibpod 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 NetworkCreateLibpod id(String id)
    • getId

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

      public void setId(String id)
    • internal

      public NetworkCreateLibpod 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 NetworkCreateLibpod ipamOptions(Map<String,String> ipamOptions)
    • putIpamOptionsItem

      public NetworkCreateLibpod 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 NetworkCreateLibpod 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 NetworkCreateLibpod labels(Map<String,String> labels)
    • putLabelsItem

      public NetworkCreateLibpod 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 NetworkCreateLibpod name(String name)
    • getName

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

      public void setName(String name)
    • networkDnsServers

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

      public NetworkCreateLibpod 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 NetworkCreateLibpod 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 NetworkCreateLibpod options(Map<String,String> options)
    • putOptionsItem

      public NetworkCreateLibpod 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 NetworkCreateLibpod routes(List<Route> routes)
    • addRoutesItem

      public NetworkCreateLibpod addRoutesItem(Route routesItem)
    • getRoutes

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

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

      public NetworkCreateLibpod subnets(List<Subnet> subnets)
    • addSubnetsItem

      public NetworkCreateLibpod addSubnetsItem(Subnet subnetsItem)
    • getSubnets

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

      public void setSubnets(List<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
    • 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 NetworkCreateLibpod
    • fromJson

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

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