Class V1TCPSocketAction

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1TCPSocketAction

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1TCPSocketAction extends Object
TCPSocketAction describes an action based on opening a socket
  • Field Details

  • Constructor Details

    • V1TCPSocketAction

      public V1TCPSocketAction(String port)
  • Method Details

    • getPort

      public String 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:
      the port property value
    • setPort

      public void setPort(String port)
      Set the port property value
      Parameters:
      port - property value to set
    • port

      public V1TCPSocketAction port(String port)
      Set port in a chainable fashion.
      Returns:
      The same instance of V1TCPSocketAction for chaining.
    • getHost

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

      public void setHost(String host)
      Set the host property value
      Parameters:
      host - property value to set
    • host

      public V1TCPSocketAction host(String host)
      Set host in a chainable fashion.
      Returns:
      The same instance of V1TCPSocketAction for chaining.
    • 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