Class V1HTTPGetAction

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T21:37:40.170033Z[Etc/UTC]") public class V1HTTPGetAction extends Object
HTTPGetAction describes an action based on HTTP Get requests.
  • Field Details

  • Constructor Details

    • V1HTTPGetAction

      public V1HTTPGetAction()
  • Method Details

    • host

      public V1HTTPGetAction host(String host)
    • getHost

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

      public void setHost(String host)
    • httpHeaders

      public V1HTTPGetAction httpHeaders(List<V1HTTPHeader> httpHeaders)
    • addHttpHeadersItem

      public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem)
    • getHttpHeaders

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

      public void setHttpHeaders(List<V1HTTPHeader> httpHeaders)
    • path

      public V1HTTPGetAction path(String path)
    • getPath

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

      public void setPath(String path)
    • port

      public V1HTTPGetAction 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)
    • scheme

      public V1HTTPGetAction scheme(String scheme)
    • getScheme

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

      public void setScheme(String scheme)
    • 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