Class V1TCPSocketAction

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1TCPSocketAction extends Object
TCPSocketAction describes an action based on opening a socket
  • Field Details

  • Constructor Details

    • V1TCPSocketAction

      public V1TCPSocketAction()
  • Method Details

    • host

      public V1TCPSocketAction host(String host)
    • getHost

      @Nullable public String getHost()
      Optional: Host name to connect to, defaults to the pod IP.
      Returns:
      host
    • setHost

      public void setHost(String host)
    • port

      public V1TCPSocketAction port(IntOrString port)
    • getPort

      public IntOrString getPort()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      port
    • setPort

      public void setPort(IntOrString 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