
com.pulumi.azurenative.app.outputs.ContainerAppProbeResponseHttpGet 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.azurenative.app.outputs;
import com.pulumi.azurenative.app.outputs.ContainerAppProbeResponseHttpHeaders;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerAppProbeResponseHttpGet {
/**
* @return Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
*/
private @Nullable String host;
/**
* @return Custom headers to set in the request. HTTP allows repeated headers.
*
*/
private @Nullable List httpHeaders;
/**
* @return Path to access on the HTTP server.
*
*/
private @Nullable String path;
/**
* @return Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
*/
private Integer port;
/**
* @return Scheme to use for connecting to the host. Defaults to HTTP.
*
*/
private @Nullable String scheme;
private ContainerAppProbeResponseHttpGet() {}
/**
* @return Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
*/
public Optional host() {
return Optional.ofNullable(this.host);
}
/**
* @return Custom headers to set in the request. HTTP allows repeated headers.
*
*/
public List httpHeaders() {
return this.httpHeaders == null ? List.of() : this.httpHeaders;
}
/**
* @return Path to access on the HTTP server.
*
*/
public Optional path() {
return Optional.ofNullable(this.path);
}
/**
* @return Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
*/
public Integer port() {
return this.port;
}
/**
* @return Scheme to use for connecting to the host. Defaults to HTTP.
*
*/
public Optional scheme() {
return Optional.ofNullable(this.scheme);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerAppProbeResponseHttpGet defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String host;
private @Nullable List httpHeaders;
private @Nullable String path;
private Integer port;
private @Nullable String scheme;
public Builder() {}
public Builder(ContainerAppProbeResponseHttpGet defaults) {
Objects.requireNonNull(defaults);
this.host = defaults.host;
this.httpHeaders = defaults.httpHeaders;
this.path = defaults.path;
this.port = defaults.port;
this.scheme = defaults.scheme;
}
@CustomType.Setter
public Builder host(@Nullable String host) {
this.host = host;
return this;
}
@CustomType.Setter
public Builder httpHeaders(@Nullable List httpHeaders) {
this.httpHeaders = httpHeaders;
return this;
}
public Builder httpHeaders(ContainerAppProbeResponseHttpHeaders... httpHeaders) {
return httpHeaders(List.of(httpHeaders));
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
@CustomType.Setter
public Builder port(Integer port) {
if (port == null) {
throw new MissingRequiredPropertyException("ContainerAppProbeResponseHttpGet", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder scheme(@Nullable String scheme) {
this.scheme = scheme;
return this;
}
public ContainerAppProbeResponseHttpGet build() {
final var _resultValue = new ContainerAppProbeResponseHttpGet();
_resultValue.host = host;
_resultValue.httpHeaders = httpHeaders;
_resultValue.path = path;
_resultValue.port = port;
_resultValue.scheme = scheme;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy