All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.HTTPGetAction Maven / Gradle / Ivy

The newest version!
package io.k8s.api.core.v1;

import java.lang.String;
import java.util.List;

/**
 * HTTPGetAction describes an action based on HTTP Get requests.
 */
public class HTTPGetAction {
  public String host;

  public List httpHeaders;

  public String path;

  public String port;

  public String scheme;

  /**
   * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
   */
  public HTTPGetAction host(String host) {
    this.host = host;
    return this;
  }

  /**
   * Custom headers to set in the request. HTTP allows repeated headers.
   */
  public HTTPGetAction httpHeaders(List httpHeaders) {
    this.httpHeaders = httpHeaders;
    return this;
  }

  /**
   * Path to access on the HTTP server.
   */
  public HTTPGetAction path(String path) {
    this.path = path;
    return this;
  }

  /**
   * 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.
   */
  public HTTPGetAction port(String port) {
    this.port = port;
    return this;
  }

  /**
   * Scheme to use for connecting to the host. Defaults to HTTP.
   */
  public HTTPGetAction scheme(String scheme) {
    this.scheme = scheme;
    return this;
  }

  public static HTTPGetAction hTTPGetAction() {
    return new HTTPGetAction();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy