Class V1HTTPGetAction

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1HTTPGetAction extends Object
HTTPGetAction describes an action based on HTTP Get requests.
  • Field Details

  • Constructor Details

    • V1HTTPGetAction

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

      public String getHost()
      Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.
      Returns:
      the host property value
    • setHost

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

      public V1HTTPGetAction host(String host)
      Set host in a chainable fashion.
      Returns:
      The same instance of V1HTTPGetAction for chaining.
    • getHttpHeaders

      public List<@Valid V1HTTPHeader> getHttpHeaders()
      Custom headers to set in the request. HTTP allows repeated headers.
      Returns:
      the httpHeaders property value
    • setHttpHeaders

      public void setHttpHeaders(List<@Valid V1HTTPHeader> httpHeaders)
      Set the httpHeaders property value
      Parameters:
      httpHeaders - property value to set
    • httpHeaders

      public V1HTTPGetAction httpHeaders(List<@Valid V1HTTPHeader> httpHeaders)
      Set httpHeaders in a chainable fashion.
      Returns:
      The same instance of V1HTTPGetAction for chaining.
    • addhttpHeadersItem

      public V1HTTPGetAction addhttpHeadersItem(V1HTTPHeader httpHeadersItem)
      Add an item to the httpHeaders property in a chainable fashion.
      Returns:
      The same instance of V1HTTPGetAction for chaining.
    • getPath

      public String getPath()
      Path to access on the HTTP server.
      Returns:
      the path property value
    • setPath

      public void setPath(String path)
      Set the path property value
      Parameters:
      path - property value to set
    • path

      public V1HTTPGetAction path(String path)
      Set path in a chainable fashion.
      Returns:
      The same instance of V1HTTPGetAction for chaining.
    • getScheme

      public String getScheme()
      Scheme to use for connecting to the host. Defaults to HTTP.
      Returns:
      the scheme property value
    • setScheme

      public void setScheme(String scheme)
      Set the scheme property value
      Parameters:
      scheme - property value to set
    • scheme

      public V1HTTPGetAction scheme(String scheme)
      Set scheme in a chainable fashion.
      Returns:
      The same instance of V1HTTPGetAction 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