com.pulumi.azure.appservice.outputs.LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode 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.appservice.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode {
/**
* @return The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
*
*/
private Integer count;
/**
* @return The time interval in the form `hh:mm:ss`.
*
*/
private String interval;
/**
* @return The path to which this rule status code applies.
*
*/
private @Nullable String path;
/**
* @return The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
*
*/
private String statusCodeRange;
/**
* @return The Request Sub Status of the Status Code.
*
*/
private @Nullable Integer subStatus;
/**
* @return The Win32 Status Code of the Request.
*
*/
private @Nullable Integer win32StatusCode;
private LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode() {}
/**
* @return The number of occurrences of the defined `status_code` in the specified `interval` on which to trigger this rule.
*
*/
public Integer count() {
return this.count;
}
/**
* @return The time interval in the form `hh:mm:ss`.
*
*/
public String interval() {
return this.interval;
}
/**
* @return The path to which this rule status code applies.
*
*/
public Optional path() {
return Optional.ofNullable(this.path);
}
/**
* @return The status code for this rule, accepts single status codes and status code ranges. e.g. `500` or `400-499`. Possible values are integers between `101` and `599`
*
*/
public String statusCodeRange() {
return this.statusCodeRange;
}
/**
* @return The Request Sub Status of the Status Code.
*
*/
public Optional subStatus() {
return Optional.ofNullable(this.subStatus);
}
/**
* @return The Win32 Status Code of the Request.
*
*/
public Optional win32StatusCode() {
return Optional.ofNullable(this.win32StatusCode);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer count;
private String interval;
private @Nullable String path;
private String statusCodeRange;
private @Nullable Integer subStatus;
private @Nullable Integer win32StatusCode;
public Builder() {}
public Builder(LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.interval = defaults.interval;
this.path = defaults.path;
this.statusCodeRange = defaults.statusCodeRange;
this.subStatus = defaults.subStatus;
this.win32StatusCode = defaults.win32StatusCode;
}
@CustomType.Setter
public Builder count(Integer count) {
if (count == null) {
throw new MissingRequiredPropertyException("LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode", "count");
}
this.count = count;
return this;
}
@CustomType.Setter
public Builder interval(String interval) {
if (interval == null) {
throw new MissingRequiredPropertyException("LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode", "interval");
}
this.interval = interval;
return this;
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
@CustomType.Setter
public Builder statusCodeRange(String statusCodeRange) {
if (statusCodeRange == null) {
throw new MissingRequiredPropertyException("LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode", "statusCodeRange");
}
this.statusCodeRange = statusCodeRange;
return this;
}
@CustomType.Setter
public Builder subStatus(@Nullable Integer subStatus) {
this.subStatus = subStatus;
return this;
}
@CustomType.Setter
public Builder win32StatusCode(@Nullable Integer win32StatusCode) {
this.win32StatusCode = win32StatusCode;
return this;
}
public LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode build() {
final var _resultValue = new LinuxWebAppSiteConfigAutoHealSettingTriggerStatusCode();
_resultValue.count = count;
_resultValue.interval = interval;
_resultValue.path = path;
_resultValue.statusCodeRange = statusCodeRange;
_resultValue.subStatus = subStatus;
_resultValue.win32StatusCode = win32StatusCode;
return _resultValue;
}
}
}