com.pulumi.googlenative.compute.beta.outputs.HTTP2HealthCheckResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.compute.beta.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class HTTP2HealthCheckResponse {
/**
* @return The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
*
*/
private String host;
/**
* @return The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
*
*/
private Integer port;
/**
* @return Not supported.
*
*/
private String portName;
/**
* @return Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
*
*/
private String portSpecification;
/**
* @return Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
*
*/
private String proxyHeader;
/**
* @return The request path of the HTTP/2 health check request. The default value is /.
*
*/
private String requestPath;
/**
* @return Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
*
*/
private String response;
private HTTP2HealthCheckResponse() {}
/**
* @return The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
*
*/
public String host() {
return this.host;
}
/**
* @return The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
*
*/
public Integer port() {
return this.port;
}
/**
* @return Not supported.
*
*/
public String portName() {
return this.portName;
}
/**
* @return Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports.
*
*/
public String portSpecification() {
return this.portSpecification;
}
/**
* @return Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
*
*/
public String proxyHeader() {
return this.proxyHeader;
}
/**
* @return The request path of the HTTP/2 health check request. The default value is /.
*
*/
public String requestPath() {
return this.requestPath;
}
/**
* @return Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
*
*/
public String response() {
return this.response;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HTTP2HealthCheckResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String host;
private Integer port;
private String portName;
private String portSpecification;
private String proxyHeader;
private String requestPath;
private String response;
public Builder() {}
public Builder(HTTP2HealthCheckResponse defaults) {
Objects.requireNonNull(defaults);
this.host = defaults.host;
this.port = defaults.port;
this.portName = defaults.portName;
this.portSpecification = defaults.portSpecification;
this.proxyHeader = defaults.proxyHeader;
this.requestPath = defaults.requestPath;
this.response = defaults.response;
}
@CustomType.Setter
public Builder host(String host) {
this.host = Objects.requireNonNull(host);
return this;
}
@CustomType.Setter
public Builder port(Integer port) {
this.port = Objects.requireNonNull(port);
return this;
}
@CustomType.Setter
public Builder portName(String portName) {
this.portName = Objects.requireNonNull(portName);
return this;
}
@CustomType.Setter
public Builder portSpecification(String portSpecification) {
this.portSpecification = Objects.requireNonNull(portSpecification);
return this;
}
@CustomType.Setter
public Builder proxyHeader(String proxyHeader) {
this.proxyHeader = Objects.requireNonNull(proxyHeader);
return this;
}
@CustomType.Setter
public Builder requestPath(String requestPath) {
this.requestPath = Objects.requireNonNull(requestPath);
return this;
}
@CustomType.Setter
public Builder response(String response) {
this.response = Objects.requireNonNull(response);
return this;
}
public HTTP2HealthCheckResponse build() {
final var o = new HTTP2HealthCheckResponse();
o.host = host;
o.port = port;
o.portName = portName;
o.portSpecification = portSpecification;
o.proxyHeader = proxyHeader;
o.requestPath = requestPath;
o.response = response;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy