Class EndpointResource

java.lang.Object
io.github.alersrt.pod4j.openapi.model.EndpointResource
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class EndpointResource extends Object implements Serializable
EndpointResource contains network resources allocated and used for a container in a network.
See Also:
  • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object 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