Class EndpointResource

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

@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 EndpointResource extends Object
EndpointResource contains network resources allocated and used for a container in a network.
  • Field Details

  • Constructor Details

    • EndpointResource

      public EndpointResource()
  • Method Details

    • endpointID

      public EndpointResource endpointID(String endpointID)
    • getEndpointID

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

      public void setEndpointID(String endpointID)
    • ipv4Address

      public EndpointResource ipv4Address(String ipv4Address)
    • getIpv4Address

      @Nullable public String getIpv4Address()
      Get ipv4Address
      Returns:
      ipv4Address
    • setIpv4Address

      public void setIpv4Address(String ipv4Address)
    • ipv6Address

      public EndpointResource ipv6Address(String ipv6Address)
    • getIpv6Address

      @Nullable public String getIpv6Address()
      Get ipv6Address
      Returns:
      ipv6Address
    • setIpv6Address

      public void setIpv6Address(String ipv6Address)
    • macAddress

      public EndpointResource macAddress(String macAddress)
    • getMacAddress

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

      public void setMacAddress(String macAddress)
    • name

      public EndpointResource name(String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(String name)
    • 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 EndpointResource
    • fromJson

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

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