Class ApiextensionsV1ServiceReference

java.lang.Object
io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class ApiextensionsV1ServiceReference extends Object
ServiceReference holds a reference to Service.legacy.k8s.io
  • Field Details

  • Constructor Details

    • ApiextensionsV1ServiceReference

      public ApiextensionsV1ServiceReference()
  • Method Details

    • name

    • getName

      @Nonnull public String getName()
      name is the name of the service. Required
      Returns:
      name
    • setName

      public void setName(String name)
    • namespace

      public ApiextensionsV1ServiceReference namespace(String namespace)
    • getNamespace

      @Nonnull public String getNamespace()
      namespace is the namespace of the service. Required
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • path

    • getPath

      @Nullable public String getPath()
      path is an optional URL path at which the webhook will be contacted.
      Returns:
      path
    • setPath

      public void setPath(String path)
    • port

    • getPort

      @Nullable public Integer getPort()
      port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
      Returns:
      port
    • setPort

      public void setPort(Integer port)
    • 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 ApiextensionsV1ServiceReference
    • fromJson

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

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