Class NetworkSettings

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

@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 NetworkSettings extends Object
NetworkSettings exposes the network settings in the api
  • Field Details

  • Constructor Details

    • NetworkSettings

      public NetworkSettings()
  • Method Details

    • bridge

      public NetworkSettings bridge(String bridge)
    • getBridge

      @Nullable public String getBridge()
      Get bridge
      Returns:
      bridge
    • setBridge

      public void setBridge(String bridge)
    • endpointID

      public NetworkSettings endpointID(String endpointID)
    • getEndpointID

      @Nullable public String getEndpointID()
      Get endpointID
      Returns:
      endpointID
    • setEndpointID

      public void setEndpointID(String endpointID)
    • gateway

      public NetworkSettings gateway(String gateway)
    • getGateway

      @Nullable public String getGateway()
      Get gateway
      Returns:
      gateway
    • setGateway

      public void setGateway(String gateway)
    • globalIPv6Address

      public NetworkSettings globalIPv6Address(String globalIPv6Address)
    • getGlobalIPv6Address

      @Nullable public String getGlobalIPv6Address()
      Get globalIPv6Address
      Returns:
      globalIPv6Address
    • setGlobalIPv6Address

      public void setGlobalIPv6Address(String globalIPv6Address)
    • globalIPv6PrefixLen

      public NetworkSettings globalIPv6PrefixLen(Long globalIPv6PrefixLen)
    • getGlobalIPv6PrefixLen

      @Nullable public Long getGlobalIPv6PrefixLen()
      Get globalIPv6PrefixLen
      Returns:
      globalIPv6PrefixLen
    • setGlobalIPv6PrefixLen

      public void setGlobalIPv6PrefixLen(Long globalIPv6PrefixLen)
    • hairpinMode

      public NetworkSettings hairpinMode(Boolean hairpinMode)
    • getHairpinMode

      @Nullable public Boolean getHairpinMode()
      HairpinMode specifies if hairpin NAT should be enabled on the virtual interface Deprecated: This field is never set and will be removed in a future release.
      Returns:
      hairpinMode
    • setHairpinMode

      public void setHairpinMode(Boolean hairpinMode)
    • ipAddress

      public NetworkSettings ipAddress(String ipAddress)
    • getIpAddress

      @Nullable public String getIpAddress()
      Get ipAddress
      Returns:
      ipAddress
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • ipPrefixLen

      public NetworkSettings ipPrefixLen(Long ipPrefixLen)
    • getIpPrefixLen

      @Nullable public Long getIpPrefixLen()
      Get ipPrefixLen
      Returns:
      ipPrefixLen
    • setIpPrefixLen

      public void setIpPrefixLen(Long ipPrefixLen)
    • ipv6Gateway

      public NetworkSettings ipv6Gateway(String ipv6Gateway)
    • getIpv6Gateway

      @Nullable public String getIpv6Gateway()
      Get ipv6Gateway
      Returns:
      ipv6Gateway
    • setIpv6Gateway

      public void setIpv6Gateway(String ipv6Gateway)
    • linkLocalIPv6Address

      public NetworkSettings linkLocalIPv6Address(String linkLocalIPv6Address)
    • getLinkLocalIPv6Address

      @Nullable public String getLinkLocalIPv6Address()
      LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix Deprecated: This field is never set and will be removed in a future release.
      Returns:
      linkLocalIPv6Address
    • setLinkLocalIPv6Address

      public void setLinkLocalIPv6Address(String linkLocalIPv6Address)
    • linkLocalIPv6PrefixLen

      public NetworkSettings linkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen)
    • getLinkLocalIPv6PrefixLen

      @Nullable public Long getLinkLocalIPv6PrefixLen()
      LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address Deprecated: This field is never set and will be removed in a future release.
      Returns:
      linkLocalIPv6PrefixLen
    • setLinkLocalIPv6PrefixLen

      public void setLinkLocalIPv6PrefixLen(Long linkLocalIPv6PrefixLen)
    • macAddress

      public NetworkSettings macAddress(String macAddress)
    • getMacAddress

      @Nullable public String getMacAddress()
      Get macAddress
      Returns:
      macAddress
    • setMacAddress

      public void setMacAddress(String macAddress)
    • networks

      public NetworkSettings networks(Map<String,EndpointSettings> networks)
    • putNetworksItem

      public NetworkSettings putNetworksItem(String key, EndpointSettings networksItem)
    • getNetworks

      @Nullable public Map<String,EndpointSettings> getNetworks()
      Get networks
      Returns:
      networks
    • setNetworks

      public void setNetworks(Map<String,EndpointSettings> networks)
    • ports

      public NetworkSettings ports(Map<String,List<PortBinding>> ports)
    • putPortsItem

      public NetworkSettings putPortsItem(String key, List<PortBinding> portsItem)
    • getPorts

      @Nullable public Map<String,List<PortBinding>> getPorts()
      PortMap is a collection of PortBinding indexed by Port
      Returns:
      ports
    • setPorts

      public void setPorts(Map<String,List<PortBinding>> ports)
    • sandboxID

      public NetworkSettings sandboxID(String sandboxID)
    • getSandboxID

      @Nullable public String getSandboxID()
      Get sandboxID
      Returns:
      sandboxID
    • setSandboxID

      public void setSandboxID(String sandboxID)
    • sandboxKey

      public NetworkSettings sandboxKey(String sandboxKey)
    • getSandboxKey

      @Nullable public String getSandboxKey()
      Get sandboxKey
      Returns:
      sandboxKey
    • setSandboxKey

      public void setSandboxKey(String sandboxKey)
    • secondaryIPAddresses

      public NetworkSettings secondaryIPAddresses(List<Address> secondaryIPAddresses)
    • addSecondaryIPAddressesItem

      public NetworkSettings addSecondaryIPAddressesItem(Address secondaryIPAddressesItem)
    • getSecondaryIPAddresses

      @Nullable public List<Address> getSecondaryIPAddresses()
      Get secondaryIPAddresses
      Returns:
      secondaryIPAddresses
    • setSecondaryIPAddresses

      public void setSecondaryIPAddresses(List<Address> secondaryIPAddresses)
    • secondaryIPv6Addresses

      public NetworkSettings secondaryIPv6Addresses(List<Address> secondaryIPv6Addresses)
    • addSecondaryIPv6AddressesItem

      public NetworkSettings addSecondaryIPv6AddressesItem(Address secondaryIPv6AddressesItem)
    • getSecondaryIPv6Addresses

      @Nullable public List<Address> getSecondaryIPv6Addresses()
      Get secondaryIPv6Addresses
      Returns:
      secondaryIPv6Addresses
    • setSecondaryIPv6Addresses

      public void setSecondaryIPv6Addresses(List<Address> secondaryIPv6Addresses)
    • 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 NetworkSettings
    • fromJson

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

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