com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerStartupProbe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.containerapp.outputs;
import com.pulumi.azure.containerapp.outputs.GetAppTemplateContainerStartupProbeHeader;
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;
@CustomType
public final class GetAppTemplateContainerStartupProbe {
/**
* @return The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
*
*/
private Integer failureCountThreshold;
/**
* @return A `header` block as detailed below.
*
*/
private List headers;
/**
* @return The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes.
*
*/
private String host;
/**
* @return How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`
*
*/
private Integer intervalSeconds;
/**
* @return The path in the container at which to mount this volume.
*
*/
private String path;
/**
* @return The port number on which to connect. Possible values are between `1` and `65535`.
*
*/
private Integer port;
/**
* @return The time in seconds after the container is sent the termination signal before the process if forcibly killed.
*
*/
private Integer terminationGracePeriodSeconds;
/**
* @return Time in seconds after which the probe times out. Possible values are in the range `1` - `240`. Defaults to `1`.
*
*/
private Integer timeout;
/**
* @return The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`. Defaults to `auto`
*
*/
private String transport;
private GetAppTemplateContainerStartupProbe() {}
/**
* @return The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
*
*/
public Integer failureCountThreshold() {
return this.failureCountThreshold;
}
/**
* @return A `header` block as detailed below.
*
*/
public List headers() {
return this.headers;
}
/**
* @return The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes.
*
*/
public String host() {
return this.host;
}
/**
* @return How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`
*
*/
public Integer intervalSeconds() {
return this.intervalSeconds;
}
/**
* @return The path in the container at which to mount this volume.
*
*/
public String path() {
return this.path;
}
/**
* @return The port number on which to connect. Possible values are between `1` and `65535`.
*
*/
public Integer port() {
return this.port;
}
/**
* @return The time in seconds after the container is sent the termination signal before the process if forcibly killed.
*
*/
public Integer terminationGracePeriodSeconds() {
return this.terminationGracePeriodSeconds;
}
/**
* @return Time in seconds after which the probe times out. Possible values are in the range `1` - `240`. Defaults to `1`.
*
*/
public Integer timeout() {
return this.timeout;
}
/**
* @return The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`. Defaults to `auto`
*
*/
public String transport() {
return this.transport;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAppTemplateContainerStartupProbe defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer failureCountThreshold;
private List headers;
private String host;
private Integer intervalSeconds;
private String path;
private Integer port;
private Integer terminationGracePeriodSeconds;
private Integer timeout;
private String transport;
public Builder() {}
public Builder(GetAppTemplateContainerStartupProbe defaults) {
Objects.requireNonNull(defaults);
this.failureCountThreshold = defaults.failureCountThreshold;
this.headers = defaults.headers;
this.host = defaults.host;
this.intervalSeconds = defaults.intervalSeconds;
this.path = defaults.path;
this.port = defaults.port;
this.terminationGracePeriodSeconds = defaults.terminationGracePeriodSeconds;
this.timeout = defaults.timeout;
this.transport = defaults.transport;
}
@CustomType.Setter
public Builder failureCountThreshold(Integer failureCountThreshold) {
if (failureCountThreshold == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "failureCountThreshold");
}
this.failureCountThreshold = failureCountThreshold;
return this;
}
@CustomType.Setter
public Builder headers(List headers) {
if (headers == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "headers");
}
this.headers = headers;
return this;
}
public Builder headers(GetAppTemplateContainerStartupProbeHeader... headers) {
return headers(List.of(headers));
}
@CustomType.Setter
public Builder host(String host) {
if (host == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "host");
}
this.host = host;
return this;
}
@CustomType.Setter
public Builder intervalSeconds(Integer intervalSeconds) {
if (intervalSeconds == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "intervalSeconds");
}
this.intervalSeconds = intervalSeconds;
return this;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "path");
}
this.path = path;
return this;
}
@CustomType.Setter
public Builder port(Integer port) {
if (port == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds) {
if (terminationGracePeriodSeconds == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "terminationGracePeriodSeconds");
}
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
return this;
}
@CustomType.Setter
public Builder timeout(Integer timeout) {
if (timeout == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "timeout");
}
this.timeout = timeout;
return this;
}
@CustomType.Setter
public Builder transport(String transport) {
if (transport == null) {
throw new MissingRequiredPropertyException("GetAppTemplateContainerStartupProbe", "transport");
}
this.transport = transport;
return this;
}
public GetAppTemplateContainerStartupProbe build() {
final var _resultValue = new GetAppTemplateContainerStartupProbe();
_resultValue.failureCountThreshold = failureCountThreshold;
_resultValue.headers = headers;
_resultValue.host = host;
_resultValue.intervalSeconds = intervalSeconds;
_resultValue.path = path;
_resultValue.port = port;
_resultValue.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
_resultValue.timeout = timeout;
_resultValue.transport = transport;
return _resultValue;
}
}
}